Jump to content

How to Add custom weapons?


PewN

Recommended Posts


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

mga tol pa help naglalagay ako ng custom weapons pero everytime i click ko to nag eeror e2 ung ss

2cdd9v9.jpg

Edited by bVersatile
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  414
  • Reputation:   102
  • Joined:  11/13/11
  • Last Seen:  

Cleaned up your topic a bit.

The ID

Why the ID first? Because this is very important. You need to figure out ID before you can name sprites. Why? Because, each weapon has a RANGE of ID's that will work for them.

FUNFACT!: If you go out of the range, but correctly name/place files in right folder, you will see sprite when you stand. However, when you attack, YOU PUNCH.

This is why we need to choose a correct ID range!!! How do we do it?

Just open your item_db and find whatever weapon type you want to make. Example:

I want to make a custom bow. So, I go to item_db and find bow. I go to the last bow ID (mine is 1744). MAKE SURE you double check if that ID is in use or not.. Go up to the top of the file and search for the ID. if it is clear then you can make that your ID and add the rest of your things (name, price, etc).

After that, it is time for the sprites and folders.

The Sprite

First, you want Myzter's Sprite Name Generator. http://www.eathena.w...showtopic=40854

tool is easy to use. Just click the classes you want the weapon to be used by, and put in the ID that you decided to use. It will give you a list of all the correct folders and sprites you need to correctly name so make sure you copypasta all that!

Putting into the correct folders is IMPORTANT!!! Make sure everything is correct!!!

Other Client-side

well, after that, make sure you put the item in the other important tables:

-idnum2itemdesctable

-idnum2itemdisplaynametable

-idnum2itemresnametable

-num2itemdesctable

-num2itemdisplaynametable

-num2itemresnametable

And, then don't forget to give it an icon in /sprite/¾ÆÀÌÅÛ/, as well as an inventory icon and collection image in /texture/À¯ÀúÀÎÅÍÆäÀ̽º/item/ // /texture/À¯ÀúÀÎÅÍÆäÀ̽º/collection/.

After all that, repack your grf if needed, run your server, attack something, and you should see your brand new custom weapon!

F.A.Q

Q: My weapon is unknown item.

A: You messed something up in resnametable. It's not reading from it so it becomes unknown.

Q: My weapon sprite shows fine when standing, but when attacking, I am punching.

A: Choose correct ID. Look for weapons in the weapon range you want and choose the last available ID. if there's none available... well, tough luck.

Q: My weapon sprite isn't showing AT ALL!!

A: Make sure you named them correctly, and put them in right folders in the data folder.

Q: I still don't really understand weapon ranges. A: Well, there is a range of ID's settled for certain type of weapon. if you go out of that range then you end up punching. A weapon's ID range ends at the ID of the next weapon type. For example:

1739,Battle_Crossbow_,Battle Crossbow,4,0,,0,100,,5,0,0x000A0848,7.......etc

//1740#Nepentis_Bow#

//1741#Cursed_Dryer#

1742,Novice_Composite_Bow,Novice Composite Bow,4,1,,0,49,,5,0,0x000A.....etc

// Arrows

1750,Arrow,Arrow,10,1,,1,25,,,,0x000A1848,7,2,32768,,1,,1,{},{},{}

1751,Silver_Arrow,Silver Arrow,10,3,,2,30,,,,0x000A1848,7,2,.....etc

you see that Arrow's ID is 1750. That means, since Novice Composite Bow is 1742, you can make 7 more custom bows. (1743, 1744, 1745, 1746, 1747, 1748, 1479).

Some weapons don't have any open ID's:

1471,Hell_Fire,Hellfire,4,20,,3500,200,,3,0,0x00004082,7,2,.....etc

// 2-Handed Staffs

1472,Staff_Of_Soul,Soul Staff,4,20,,1400,25,,1,0,0x00810204,7....etc

1473,Wizardy_Staff,Wizardry Staff,4,20,,2400,120,,1,0,0x00810204,7,2,34,4....etc

// 2-Handed Spears

1474,Gae_Bolg,Gae Bolg,4,20,,2000,160,,3,0,0x00004082,7,2,34,.....etc

As you can see, 2-handed staves only had room for two, and after 1473 it immediately switches back to 2-handed spears.

Source: eAthena Wiki

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

×
×
  • Create New...