Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Game;
- using Game.Character;
- using System;
- using System.Collections.Generic;
- public class Script : NpcScript {
- public Npc npc;
- public void Load(Npc npc) {
- this.npc = npc;
- }
- public void End()
- {
- }
- public void Run(cPlayer c, byte State, byte Answer, string txtAnswer, int intAnswer) {
- if (State == 0) {
- 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.");
- State = 1;
- }
- else if (State == 1) {
- npc.AskYesNo("Oh! thats a #t4110000#! If you give that to me I'll let you in the Internet Cafe. What do you say?");
- npc.EndNpc();
- }
- else if (Answer == 1) {
- npc.SendOK("yes");
- npc.EndNpc();
- }
- else if (Answer == 0) {
- npc.SendOK("no");
- npc.EndNpc();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement