pastebin - collaborative debugging tool
rathena.kpaste.net RSS


npctalk2
Posted by Anonymous on Fri 1st Jun 2012 07:51
raw | new post

  1. Index: src/map/script.c
  2. ===================================================================
  3. --- src/map/script.c    (revision 16195)
  4. +++ src/map/script.c    (working copy)
  5. @@ -12229,6 +12229,21 @@
  6.         return 0;
  7.  }
  8.  
  9. +BUILDIN_FUNC(npctalk2)
  10. +{
  11. +       const char* str;
  12. +
  13. +       struct npc_data* nd = (struct npc_data *)map_id2bl(st->oid);
  14. +       str = script_getstr(st,2);
  15. +
  16. +       if(nd)
  17. +       {
  18. +               clif_message(&nd->bl, str);
  19. +       }
  20. +
  21. +       return 0;
  22. +}
  23. +
  24.  // change npc walkspeed [Valaris]
  25.  BUILDIN_FUNC(npcspeed)
  26.  {
  27. @@ -16518,6 +16533,7 @@
  28.         BUILDIN_DEF(movenpc,"sii?"), // [MouseJstr]
  29.         BUILDIN_DEF(message,"ss"), // [MouseJstr]
  30.         BUILDIN_DEF(npctalk,"s"), // [Valaris]
  31. +       BUILDIN_DEF(npctalk2,"s"),
  32.         BUILDIN_DEF(mobcount,"ss"),
  33.         BUILDIN_DEF(getlook,"i"),
  34.         BUILDIN_DEF(getsavepoint,"i"),

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at