Jump to content
  • 0

Emote in other NPC


danielps

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   18
  • Joined:  10/09/14
  • Last Seen:  

Hi,

Have a npc called "Gm Dice", and i used this script bellow in a older rathena version and it works nice, and in the new rathena version it says "expectec ;"

emotion .@dado+57,0,"Gm Dice";

I call emotion in a script to be used in another one. what changed in rathena? How do i fix it?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

https://github.com/rathena/rathena/commit/ea88ea50546fd140bda875056f83a60b6b0bef96

This PR change the emoticons constant name to match emoticonlist from client side.
Note: the previous emoticons names are now deprecated.

Additionnally emotion and unitemote scripts commands are being merged together to the new format
-> emotion <emotion number>{,<target>};
Where target use the target Game ID (GID) of the unit (npc, pet, character etc..).

* unitemote is now deprecated.
emotion .@dado+57,0,"Gm Dice";

is now :

emotion (.@dado+57), getnpcid(0,"Gm Dice");

You can run https://github.com/rathena/rathena/blob/master/tools/convert_emotions.py to convert your script.

  • MVP 1
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  174
  • Reputation:   18
  • Joined:  10/09/14
  • Last Seen:  

17 hours ago, Capuche said:

https://github.com/rathena/rathena/commit/ea88ea50546fd140bda875056f83a60b6b0bef96


This PR change the emoticons constant name to match emoticonlist from client side.
Note: the previous emoticons names are now deprecated.

Additionnally emotion and unitemote scripts commands are being merged together to the new format
-> emotion <emotion number>{,<target>};
Where target use the target Game ID (GID) of the unit (npc, pet, character etc..).

* unitemote is now deprecated.

emotion .@dado+57,0,"Gm Dice";

is now :


emotion (.@dado+57), getnpcid(0,"Gm Dice");

You can run https://github.com/rathena/rathena/blob/master/tools/convert_emotions.py to convert your script.

No need a program to convert, i can do it by myself ^^
Just didn't know that it has changed ^^
Thanks a lot a like!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

On 1/19/2018 at 4:04 AM, Capuche said:

https://github.com/rathena/rathena/commit/ea88ea50546fd140bda875056f83a60b6b0bef96


This PR change the emoticons constant name to match emoticonlist from client side.
Note: the previous emoticons names are now deprecated.

Additionnally emotion and unitemote scripts commands are being merged together to the new format
-> emotion <emotion number>{,<target>};
Where target use the target Game ID (GID) of the unit (npc, pet, character etc..).

* unitemote is now deprecated.

emotion .@dado+57,0,"Gm Dice";

is now :


emotion (.@dado+57), getnpcid(0,"Gm Dice");

You can run https://github.com/rathena/rathena/blob/master/tools/convert_emotions.py to convert your script.

image.png.22fc0556b1f3b9ce147eeb6a20b6087e.png

what to do?

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   45
  • Joined:  08/14/12
  • Last Seen:  

use python3 instead of python2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...