npc_live_dialogues.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //by Lupus.
  2. // *** Usage of Global_Functions.txt (you can translate Global_Functions.txt function messages)
  3. // Here's a polite wolf NPC ^_- Luppy
  4. // learn how to make your NPC more alive.
  5. // PS don't use it as a normal NPC in your server. It's exploitable 8)
  6. prontera,167,177,5 script Luppy 1107,{
  7. mes "[Luppy]";
  8. //say random greeting from Global_Functions.txt
  9. mes callfunc("F_Hi");
  10. //say a compliment according to player's gender
  11. //1st string is for FEMALE, 2nd for MALE
  12. mes callfunc("F_Sex","What a beautiful lady!","What a handsome man!");
  13. //add some random greeting and goodbye into the menu
  14. menu callfunc("F_Hi"),-, callfunc("F_Bye"),M_BYE;
  15. mes "[Luppy]";
  16. //give a random prize from set list of items
  17. if(@gotstuff){
  18. //again, say stuff according to player's gender
  19. mes "I like "+callfunc("F_Sex","smiling ladies!","bloody pirates!");
  20. //show one of 3 emotion from the list (we added ,1 to show emotion over PLAYER's head)
  21. emotion callfunc("F_RandMes",3,e_scissors,e_kis,e_pat),1;
  22. close;
  23. }
  24. //we set a temp var to give present just once. Player can get more by RE-entering the server
  25. set @gotstuff,1;
  26. //get item Id from the list of presents: Apple, Mastela Fruit, Yggdrasil Seed or Orange Juice
  27. set @itemIDfromList, callfunc("F_RandMes",4,512,522,608,620);
  28. //again, say stuff according to player's gender
  29. mes "Hey, "+callfunc("F_Sex","sister!","brother!")+" I have "+getitemname(@itemIDfromList)+" for you!";
  30. //get the item from the list
  31. getitem @itemIDfromList,1;
  32. close;
  33. M_BYE:
  34. mes "[Luppy]";
  35. //add some random goodbye from Global_Functions.txt
  36. mes callfunc("F_Bye");
  37. close;
  38. }
  39. //Please, be more creative. Or else this li'l wolfy would eat you up!