Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. using Game;
  2. using Game.Character;
  3. using System;
  4. using System.Collections.Generic;
  5.  
  6. public class Script : NpcScript {
  7. public Npc npc;
  8.  
  9. public void Load(Npc npc) {
  10. this.npc = npc;
  11. }
  12.  
  13. public void End()
  14. {
  15.  
  16. }
  17.  
  18. public void Run(cPlayer c, byte State, byte Answer, string txtAnswer, int intAnswer) {
  19. if (State == 0) {
  20. npc.SendNext("Hey, hey ... I don't think you're logging on from the internet cafe. You can't enter this place if you are logging on from home ... I'll tell you what, if you bring me a #t4110000# I'll let you go in regardless if you are at home or at an internet cafe.");
  21. State = 1;
  22. }
  23. else if (State == 1) {
  24. npc.AskYesNo("Oh! thats a #t4110000#! If you give that to me I'll let you in the Internet Cafe. What do you say?");
  25. npc.EndNpc();
  26. }
  27. else if (Answer == 1) {
  28. npc.SendOK("yes");
  29. npc.EndNpc();
  30. }
  31. else if (Answer == 0) {
  32. npc.SendOK("no");
  33. npc.EndNpc();
  34. }
  35.  
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement