Jump to content

Recommended Posts

Posted

quiero meter armas custom con el exe 2013 08 07 pero no me permite, cargo todo en las carpetas correspondientes y le coloco una id disponible pero al usar el arma aparece el arco normal no el arco custom, si alguien sae como que me de un ejemplo de un arma ya implemenetada, con todon la info del iteminfo.lua/lub

Ranger_famele.bmp

Ranger_famele.bmp

Posted

Tienes que asignarle al sprite un ["ClassNum"] = y añadirlo a los lub y por supuesto al itemInfo.lub

 

aparte de añadirlo en el db del emulador.

Como curiosidad Si sustituyes un sprite por ejemplo renombrandolo directamente no te funcionará, tienes que cargar ese sprite en el editor y guardarlo con el nuevo nombre.

  • Upvote 1
Posted

si agrege al iteminfo.lub/lua con su respectivo ID (1700) tambien al emulador pero encontre encontre esto

 

Weapon Sprite Solution (For New Clients)

For new clients the view id system is also applicable to client. To add a custom weapon you need to first edit a file called weapontable.lub in your data folder

data/luafiles514/lua files/datainfo/weapontable.lub

I will be adding Oriental_Sword which will be a 1-Handed sword. Open weapontable.lub. First you will see a table called Weapon_IDs. Take note of the first 30 values in this table - these are the only available Weapon types in the client right now.

Anyways go to the last entry which should be for Wizardy Staff = 97. You can use a view id after that like shown below

 WEAPONTYPE_Oriental_Sword = 98,

Come down and you see the next table called WeaponNameTable. Here is where you add your sprite name suffix.
What do i mean by that? Its the last part in your weapon sprite & act file. Before it used to be _<Item ID>.

data/sprite/<job dependent folder>/<job dependent prefix>_<gender><weapon suffix>.spr

OK Back to topic. so I add my entry like shown below.

[Weapon_IDs.WEAPONTYPE_Oriental_Sword] = "_Oriental"

Lastly come down further in weapontable.lub and you see the last table called Expansion_Weapon_IDs.
Remember the 30 types i told you to take note of ? here we assign one of those to our custom (like a mapping or connection).
Since mine is a 1-Handed Sword I specify it like below.

[Weapon_IDs.WEAPONTYPE_Oriental_Sword] = Weapon_IDs.WPCLASS_WEAPONTYPE_SWORD 

Now for the most important part. For our client to actually pick up all these details we need to provide the view id which we used in Weapon_IDs table as the ClassNum value in ItemInfo.lua. Check the ItemInfo.lub format shown above for details.

With this your weapon sprite will become visible while attacking.

 

http://rathena.org/wiki/Custom_Items

 

 

segun esa info hay que modificar el wepontable.lua

  • 1 month later...

Join the conversation

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

Guest
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...