Dastgir 1246 Posted October 24, 2013 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? Quote Share this post Link to post Share on other sites
1 Neo-Mind 264 Posted October 24, 2013 i thought weapons didnt have limit for new clients hmm. what all files did you update for getting the weapon. Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted October 24, 2013 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 Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted October 24, 2013 (edited) 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 October 24, 2013 by quesoph Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted October 24, 2013 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 IDsSource: 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? Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted October 24, 2013 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. Quote Share this post Link to post Share on other sites
0 Weiss 3 Posted October 24, 2013 A great release from NeoMind will allow you to use higher IDs: http://rathena.org/board/topic/84439-wdgremoveweaponidlimits-plugin/ Quote Share this post Link to post Share on other sites
0 Neo-Mind 264 Posted October 25, 2013 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. Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted October 25, 2013 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. Quote Share this post Link to post Share on other sites
0 Neo-Mind 264 Posted October 26, 2013 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. 1 Dastgir reacted to this Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted October 29, 2013 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. 1 gidzdlcrz reacted to this Quote Share this post Link to post Share on other sites
0 moraru 1 Posted October 21, 2014 Only manage to add bows.... and only if use bows id range. 2013/08 client. Quote Share this post Link to post Share on other sites
0 jaiko23 1 Posted July 24, 2015 (edited) Hi Sir @@Neo i got a problem here.. 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 2012 client any idea where did i went wrong? tried this too . . . Nevermind, i guess it is the sprite error >.< or can someone try my sprite? Edited July 24, 2015 by jaiko23 Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted July 24, 2015 @@jaiko23 did your client reads weaponid.lua? Quote Share this post Link to post Share on other sites
0 jaiko23 1 Posted July 24, 2015 (edited) Dorcus.rar it reads weaponid.lub Dorcus.rar Edited July 24, 2015 by jaiko23 Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted July 25, 2015 Dorcus.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. Quote Share this post Link to post Share on other sites
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