Jump to content
  • 0

Costume itens problem


SovietBR

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  20
  • Reputation:   1
  • Joined:  12/10/22
  • Last Seen:  

Hi, I've been trying for a while to put costume items on my server, just add the equipments already in the vanilla game but convert then to a costume equippment.
I've followed several guides and other posts here on the forum but all without success, can anyone help me? I've already change the lines from the scripts individually and also tried to replace my files for those in the link ( https://github.com/secretdataz/rathena/pull/8/files#diff-86550e728eea96e59b8b50cb2473deace36dd00ed2207efb903932b88a0db2cd ), but I end it up with the same error.
I also tried add the costume itens individualy, kindda works, but when I change in the .lua, nothing changes and I end it up with a unknow Item, alsoit will take too long to change one by one like Tero teaches in the "Headgear to Costume Headgear Trader".
If someone can help me to make the costume npc to work or share with me a item_db_equip and a itemInfo.lua with all the costumes variations of the vanillas head gears, I would be really grateful.
Thanks in advance.

I'm using 2019-06-05fRagexe_patched, on Pre-Renewal.

Captura de tela 2024-06-23 230128.png

screenrathenaPRE020.jpg

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   131
  • Joined:  10/01/22
  • Last Seen:  

The vast majority of the headgears in the game should already have costume equivalents in renewal's item-db, you can simply copy these into pre-re's item-db if your server is pre-re and they will work.  Similarly, these ones should already be present in iteminfo.lua.

It is only necessary to add them manually for the handful of headgears that aren't already there.  If you're getting "unknown item", check that the id number in the lua matches the id number of the item in the item-db.  For example, slotted jacket is id number 2304, so the entry in the lua file must be [2304].  If you're adding new items to the item-db, make sure the id numbers in both locations match up.

For that script error you're getting, it's complaining that it doesn't recognize the "costume" function.  I'm not familiar with that code (it's not from my implementation), but it would need to be declared in script.hpp and script.cpp so scripts can use it.

Edited by Tero
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  20
  • Reputation:   1
  • Joined:  12/10/22
  • Last Seen:  

Damn, I hadn't thought about getting or reading the Reneaw files to see how Costume was there, I replaced my files with them and it worked, 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...