Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function get_rightmenu(npc, player) {
  2.     return ["warp out",];
  3. }
  4.  
  5. function on_click(npc, player) {
  6.     if (performer.quest_hasCompletedQuest("Bandit Raiders")){
  7.         npc.sendMessageToPlayer(player,"You have helped us protect the town against the Bandit Raiders. Good job. Right click me to warp out.");
  8.     } else {
  9.         npc.sendMessageToPlayer(player,"Ah, good another able bodied person. We need some help to defend here. All the towns folk are hiding in the general store.");
  10.     }
  11. }
  12.  
  13. function on_rightmenu(npc, player, menu) {
  14.     if( menu == "warp out" ) {
  15.         player.warpToOtherMap("island0,3,0",26*16,78*16);
  16.     }
  17. }
  18.  
  19. function on_load(npc){
  20.     npc.addIcon("data/sprite/misc/sheets/chatnpc.png");
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement