Jump to content
  • 0

npc equip item


Kawita

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.02
  • Content Count:  13
  • Reputation:   0
  • Joined:  06/11/23
  • Last Seen:  

hello good! I am creating a race system when you start the game for the first time, when you select a race it gives you a series of items and other characteristics, but I would like one of those items in particular to equip you directly without going to the inventory, that is, in In this case, they are some wings that I would like to equip directly without having to go to the inventory and double click on them.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

5 hours ago, Kawita said:

hello good! I am creating a race system when you start the game for the first time, when you select a race it gives you a series of items and other characteristics, but I would like one of those items in particular to equip you directly without going to the inventory, that is, in In this case, they are some wings that I would like to equip directly without having to go to the inventory and double click on them.

You should look in the script documentation to solve such problems yourself first. You can find it here: https://github.com/rathena/rathena/blob/master/doc/script_commands.txt
There you can find the following:

*equip <item id>{,<char_id>};
*autoequip <item id>,<option>;

These commands are to equip a equipment on the attached character.
The equip function will equip the item ID given when the player has
this item in his/her inventory, while the autoequip function will
equip the given item ID when this is looted. The option parameter of
the autoequip is 1 or 0, 1 to turn it on, and 0 to turn it off.

Examples:

//This will equip a 1104 (falchion) on the character if this is in the inventory.
	equip 1104;

//The invoked character will now automatically equip a falchion when it's looted.
	autoequip 1104,1;

//The invoked character will no longer automatically equip a falchion.
	autoequip 1104,0;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.02
  • Content Count:  13
  • Reputation:   0
  • Joined:  06/11/23
  • Last Seen:  

On 23/10/2023 at 4:17, Winterfox said:

Primero debe consultar la documentación del script para resolver estos problemas usted mismo. Puede encontrarlo aquí:  https://github.com/rathena/rathena/blob/master/doc/script_commands.txt
Allí puede encontrar lo siguiente:

  




 

I'm sorry, before consulting, check the file, obviously I skipped it and didn't see it and I always take it as a last resort to ask questions here, thank you very much!

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...