Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_rightmenu(npc, player) {
- return ["warp out",];
- }
- function on_click(npc, player) {
- if (performer.quest_hasCompletedQuest("Bandit Raiders")){
- npc.sendMessageToPlayer(player,"You have helped us protect the town against the Bandit Raiders. Good job. Right click me to warp out.");
- } else {
- 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.");
- }
- }
- function on_rightmenu(npc, player, menu) {
- if( menu == "warp out" ) {
- player.warpToOtherMap("island0,3,0",26*16,78*16);
- }
- }
- function on_load(npc){
- npc.addIcon("data/sprite/misc/sheets/chatnpc.png");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement