Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main
- {
- questname "PK Quest 1"
- version 1.0
- }
- State Begin
- {
- desc "Talk to PK Master"
- action AddNpcText(37, "Hello [c-name], i am the PK master. I can give you the better gears which can be used in PK.");
- action AddNpcText(37, "Would you like to get it?");
- action AddNpcInput(37, 1, "Ocfourse");
- action AddNpcInput(37, 2, "No, Thanks");
- rule InputNpc(1) goto Sure
- rule InputNpc(2) goto Reset
- }
- State Reset
- {
- action Reset();
- }
- State Sure
- {
- desc "Selection"
- action AddNpcText(37, "Okay, Choose your gender");
- action AddNpcInput(37, 1, "Male");
- action AddNpcInput(37, 2, "Female");
- rule InputNpc(1) goto Check
- rule InputNpc(2) goto Check
- }
- State Check
- {
- desc "Checking Gender"
- rule IsGender(1) goto Male
- rule IsGender(0) goto Female
- }
- State Male
- {
- desc "Talk to PK Master"
- action AddNpcText(37, "You have Selected Priest Robes Quest, To get this armor you will have to kill 200 Humans.");
- action AddNpcText(37, "Would you like to Proceed?.");
- action AddNpcInput(37, 1, "Yes");
- action AddNpcInput(37, 2, "No");
- rule InputNpc(1) goto Priest
- rule InputNpc(2) goto Reset
- }
- State Priest
- {
- desc "Kill 200 Humans"
- action AddNpcText(37, "Kill 200 Human Beings to receive Priest Robes");
- rule KilledPlayers(200) goto Killed2k
- }
- State Killed2k
- {
- desc "Talk to PK Master"
- action SetCoord(188,8,15);
- action AddNpcText(37, "Congratulations!!! You have Killed 200 Players, Here's Your Reward.");
- action AddNpcText(37, "Warning!! Do not try to use this armor except in PK. You can Leave pk by using cure potion.");
- rule TalkedToNpc(37) goto GivePriest
- }
- State GivePriest
- {
- action GiveItem(139,1);
- action GiveItem(13,1);
- rule GotItems(13,1) goto WearPriest
- }
- State WearPriest
- {
- desc "Talk to PK Master"
- action AddNpcText(37, "Wear the Armor");
- rule IsWearing(139) goto WorePriest
- rule LeaveMap(188) goto WarpBack
- }
- State WarpBack
- {
- action SetCoord(188,10,7);
- rule EnterMap(188) goto WearPriest
- }
- State WorePriest
- {
- desc "Use Cure Potion"
- action AddNpcText(37, "Use Cure Potion to leave");
- action SetCoord(245,100,70);
- rule LeaveMap(245) goto Leave
- rule UsedItem(13, 1) goto Aeven
- }
- State Leave
- {
- desc "Use Cure Potion to Leave"
- action AddNpcText(37, "Use Cure Potion");
- action SetCoord(245,101,84);
- rule LeaveMap(245) goto WorePriest
- rule UsedItem(13, 1) goto Aeven
- }
- State Aeven
- {
- desc "Talk to PK Master"
- action AddNpcText(37, "Welcome Back");
- action SetCoord(5,45,42);
- rule TalkedToNpc(37) goto GivePriest
- }
- State Female
- {
- desc "Talk to PK Master"
- action AddNpcText(37, "You have Selected Holy Robes Quest, To get this armor you will have to kill 200 Humans.");
- action AddNpcText(37, "Would you like to Proceed?.");
- action AddNpcInput(37, 1, "Yes");
- action AddNpcInput(37, 2, "No");
- rule InputNpc(1) goto Holly
- rule InputNpc(2) goto Reset
- }
- State Holly
- {
- desc "Kill 200 Humans"
- action AddNpcText(37, "Kill 200 Human Beings to receive Holy Robes");
- rule KilledPlayers(200) goto KilledF2k
- }
- State KilledF2k
- {
- desc "Talk to PK Master"
- action SetCoord(188,8,15);
- action AddNpcText(37, "Congratulations!!! You have Killed 200 Players, Here's Your Reward.");
- action AddNpcText(37, "Warning!! Do not try to use this armor except in PK. You can Leave pk by using cure potion.");
- rule TalkedToNpc(37) goto GiveHolly
- }
- State GiveHolly
- {
- action GiveItem(149,1);
- action GiveItem(13,1);
- rule GotItems(13,1) goto WearHoly
- }
- State WearHoly
- {
- desc "Talk to PK Master"
- action AddNpcText(37, "Wear the Armor");
- rule IsWearing(149) goto WoreHoly
- rule LeaveMap(188) goto WarpFBack
- }
- State WarpFBack
- {
- action SetCoord(188,10,7);
- rule EnterMap(188) goto WearHoly
- }
- State WoreHoly
- {
- desc "Use Cure Potion"
- action AddNpcText(37, "Use Cure Potion to leave");
- action SetCoord(245,100,70);
- rule LeaveMap(245) goto LeaveF
- rule UsedItem(13, 1) goto AevenF
- }
- State LeaveF
- {
- desc "Use Cure Potion to Leave"
- action AddNpcText(37, "Use Cure Potion");
- action SetCoord(245,101,84);
- rule LeaveMap(245) goto WoreHoly
- rule UsedItem(13, 1) goto AevenF
- }
- State AevenF
- {
- desc "Talk to PK Master"
- action AddNpcText(37, "Welcome Back");
- action SetCoord(5,45,42);
- rule TalkedToNpc(37) goto GiveHolly
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement