Jump to content
  • 0
Dastgir

weapon sprite.

Question

How can i make weapon sprite to work with 20130807, when i equip weapon, char attacks from hand, (maybe bcoz itemid is high,) so my question is, is there any way to increase the weapon id limit?

Share this post


Link to post
Share on other sites

15 answers to this question

Recommended Posts

  • 0

 its working for me for the same client (although it crashed after showing the sprite - but i think it was an issue with the sprite i used).

You need to edit weapontable.lua 
 
1) In Weapon_IDs table add your entry. for e.g. i added Oriental Sword (last entry was for Wizardy Staff which is 97. so i used 98. 
this is also the classNum value you need to specify in ItemInfo.lua
 
WEAPONTYPE_Oriental_Sword = 98,  

 

2) Next in WeaponNameTable add your sprite suffix.
[Weapon_IDs.WEAPONTYPE_Oriental_Sword] = "_Oriental"  

 

3) Next in Expansion_Weapon_IDs map the custom to a weapon type . mine was a 1-H sword so
[Weapon_IDs.WEAPONTYPE_Oriental_Sword] = Weapon_IDs.WPCLASS_WEAPONTYPE_SWORD 

 

as for view id in item db it is like what is said in the wiki (0-30); i dont think client even checks that value.

Share this post


Link to post
Share on other sites
  • 1

i thought weapons didnt have limit for new clients hmm. what all files did you update for getting the weapon.

Share this post


Link to post
Share on other sites
  • 0

First i only modified iteminfo, and checked if it worked, but no luck,

Then i also tried to edit weapontable in datainfo, still cannot make it work,

Anyone confirm this? My weapon id is around 20000 and some are on 30000

Share this post


Link to post
Share on other sites
  • 0

Maybe you need to use specific weapon id range?

 

 

-, Daggers: does not have free IDs. I have to test this one-, Katars: Starts on ID 1250. Has 35 free IDs-, 1-Handed Sword: Starts on ID 1101. Only has 2 Free IDs (in svn 4025)-, 2-Handed Sword: Starts on ID 1151. Has 30 free IDs-, 1-Handed Axe: Starts on ID 1301. Has 43 free IDs-, 2-Handed Axe: Starts on ID 1351. Has 32 free IDs-, 1-Handed Spears: Starts on ID 1401. Has 34 free IDs-, 2-Handed Spears: Starts on ID 1451. Has no free IDs-, 2-Handed Staffs: same as before-, Maces: Starts on ID 1501. Has 19 free IDs-, Books: Starts on 1550. Has only 2 IDs.-, Staffs: Starts on ID 1601. Has 79 free IDs-, Bows: Starts on ID 1724. Has 26 free IDs-, Knuckles: Starts on ID 1801. Has 95 free IDs-, Instruments: Starts on ID 1901. Has 32 free IDs-, Whips: Starts on ID 1950. Has 130 free IDs

Source: http://herc.ws/wiki/Custom_Items#Weapon_Sprite_Solution_.28temporary.29

 

@edit

Note: If you are using ItemInfo.lub to specify item information then this method is no longer required .

/sry

Edited by quesoph

Share this post


Link to post
Share on other sites
  • 0

Maybe you need to use specific weapon id range?

 

 

 

-, Daggers: does not have free IDs. I have to test this one-, Katars: Starts on ID 1250. Has 35 free IDs-, 1-Handed Sword: Starts on ID 1101. Only has 2 Free IDs (in svn 4025)-, 2-Handed Sword: Starts on ID 1151. Has 30 free IDs-, 1-Handed Axe: Starts on ID 1301. Has 43 free IDs-, 2-Handed Axe: Starts on ID 1351. Has 32 free IDs-, 1-Handed Spears: Starts on ID 1401. Has 34 free IDs-, 2-Handed Spears: Starts on ID 1451. Has no free IDs-, 2-Handed Staffs: same as before-, Maces: Starts on ID 1501. Has 19 free IDs-, Books: Starts on 1550. Has only 2 IDs.-, Staffs: Starts on ID 1601. Has 79 free IDs-, Bows: Starts on ID 1724. Has 26 free IDs-, Knuckles: Starts on ID 1801. Has 95 free IDs-, Instruments: Starts on ID 1901. Has 32 free IDs-, Whips: Starts on ID 1950. Has 130 free IDs
Source: http://herc.ws/wiki/Custom_Items#Weapon_Sprite_Solution_.28temporary.29

 

@edit

Note: If you are using ItemInfo.lub to specify item information then this method is no longer required .

/sry
So using free slot will help or i cannot add custom weapon on new client?

Share this post


Link to post
Share on other sites
  • 0

Using free slot will help ofcourse. I am using 2012 client tho.

Afaik when you add custom item and it doesnt show weap sprite when you attack, you need to use this free slot.

Share this post


Link to post
Share on other sites
  • 0

that was made for clients which didnt use iteminfo.lua (since post that i didnt see any hardcoded checking). ill try adding a custom weapon when i get home today.

Share this post


Link to post
Share on other sites
  • 0

that was made for clients which didnt use iteminfo.lua (since post that i didnt see any hardcoded checking). ill try adding a custom weapon when i get home today.

Try higher id and please let me know the results.

Share this post


Link to post
Share on other sites
  • 0

 

 its working for me for the same client (although it crashed after showing the sprite - but i think it was an issue with the sprite i used).

You need to edit weapontable.lua 
 
1) In Weapon_IDs table add your entry. for e.g. i added Oriental Sword (last entry was for Wizardy Staff which is 97. so i used 98. 
this is also the classNum value you need to specify in ItemInfo.lua
 
WEAPONTYPE_Oriental_Sword = 98,  

 

2) Next in WeaponNameTable add your sprite suffix.
[Weapon_IDs.WEAPONTYPE_Oriental_Sword] = "_Oriental"  

 

3) Next in Expansion_Weapon_IDs map the custom to a weapon type . mine was a 1-H sword so
[Weapon_IDs.WEAPONTYPE_Oriental_Sword] = Weapon_IDs.WPCLASS_WEAPONTYPE_SWORD 

 

as for view id in item db it is like what is said in the wiki (0-30); i dont think client even checks that value.

My problem was I was not assigning that this properly

 

[Weapon_IDs.WEAPONTYPE_Oriental_Sword] = Weapon_IDs.WPCLASS_WEAPONTYPE_SWORD 

I was assigning it by

[Weapon_IDs.WEAPONTYPE_Oriental_Sword] = Weapon_IDs.WEAPONTYPE_Oriental_Sword

Thanks.

Share this post


Link to post
Share on other sites
  • 0

Hi Sir @@Neo

 

i got a problem here..

 

post-10011-0-82242900-1437730904_thumb.jpg

 

post-10011-0-88117300-1437730907_thumb.jpg

 

post-10011-0-63835100-1437730916_thumb.jpg

 

also added this already

 

WEAPONTYPE_dorcuus = 99

[Weapon_IDs.WEAPONTYPE_dorcuus] = "_1830"

[Weapon_IDs.WEAPONTYPE_dorcuus] = Weapon_IDs.WEAPONTYPE_KNUKLE

 

 

.. i can see my item properly in my inventory,, but when i click it, always got error... sprite is good, already used it before on 2012arrow-10x10.png client

 

any idea where did i went wrong?

 



post-10011-0-66738600-1437733824_thumb.jpg

 

tried this too

 

 

.

.

.

 

 

 

Nevermind, i guess it is the sprite error >.< or can someone try my sprite?

Edited by jaiko23

Share this post


Link to post
Share on other sites
  • 0

attachicon.gifDorcus.rar

it reads weaponid.lub

Mind telling where you put drop sprite and other sprite? With the name?(I guess you didn't changed to correct name or maybe didn't put them in correct folder)

 

The male/female are weapon sprites.

drop.spr/.act is drop sprites (see wiki for its folder) and should be renamed as per set in ResName,

Similarly item/collection.bmp should be renamed according to ResName and put to correct folder in texture.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.