PCLoginEvent.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // rAthena Special NPC
  2. // PCLoginEvent NPC (davidsiaw)
  3. //==============================================================================
  4. // How it works:
  5. // When a player logs in, the NPC will run as if he just clicked it. Which means
  6. // if the script is like this:
  7. //
  8. // [code]
  9. // prontera,0,0,0 script OnPCLoginEvent -1,{
  10. // mes "lmao";
  11. // close;
  12. // }
  13. // [/code]
  14. //
  15. // every player who logs in will receive a message 'lmao' in their face as soon
  16. // as they can see the map.
  17. //-----------------------------------------------------------------------------
  18. // Note:
  19. // 1) This NPC will only run if its name is 'PCLoginEvent'
  20. // 2) I made it invisible because you don't need to see it. Its an abstract NPC
  21. // 3) If you don't want it, simply delete it
  22. // 4) If you have more than one PCLoginEvent NPC, strange things will happen.
  23. // 5) You can put this script in ANY file.
  24. // 6) I put an end; there because that just makes it do nothing.
  25. // 7) Modify this script to your liking and give your players a surprise
  26. // 8) Remember: IT RUNS LIKE A NORMAL NPC. BUT THE ONLY WAY TO 'CLICK' IT IS BY
  27. // LOGGING ON
  28. // 9) There are 2 ways to use this - check the examples below!
  29. //
  30. // The 1st type -- with 'event_script_type' set to 0
  31. //
  32. prontera,0,0,0 script OnPCLoginEvent -1,{
  33. end;
  34. }
  35. //
  36. // The 2nd type -- with 'event_script_type' set to 1
  37. //
  38. prontera,155,175,0 script An NPC 46,{
  39. close;
  40. OnPCLoginEvent:
  41. // this part will run
  42. close;
  43. }
  44. prontera,156,176,0 script Another NPC 46,{
  45. close;
  46. OnPCLoginEvent:
  47. // this part runs AS WELL
  48. close;
  49. }