Anyone can help me Add Custom Weapon

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
I have followed on how to add the custom weapon here

https://herc.ws/wiki/Custom_Items#Weapon_Sprite_Solution_.28Renewal_Clients_.3C.3D_2012-04-10a_.26_Main_Clients_.3C.3D_2012-07-10a.29

My problem here the weapon is not showing its sprite.

I put the sprite to data/sprite/¾ÆÀÌÅÛ/

then created iteminfo and item_dbs the weapon. The weapon works fines the dropped, when equipped.

Just when attack the weapon is the normal sprite view. How can I make the show its own custom sprite?
Adding Custom Weapon needs the Following..

data/luafiles514/lua files/datainfo/weapontable.lub
Something like this, check each code where to place it

WEAPONTYPE_Custom_Weapon = 110
[Weapon_IDs.WEAPONTYPE_Banryu] = "_32000"
[Weapon_IDs.WEAPONTYPE_Custom_Weapon] = Weapon_IDs.WEAPONTYPE_SWORD


Then in your item_db2.conf

{
Id: 32000
AegisName: "Custom_Weapon"
Name: "Custom Weapon"
Type: "IT_WEAPON"
Buy: 20
Weight: 1000
Atk: 150
Range: 1
Loc: 2
Slots: 4
WeaponLv: 4
Subtype: "W_1HSWORD"
Job: {
Knight: true
}
Refine: true
Script: <"">
},


Then in iteminfo.lua

[32000] = {
unidentifiedDisplayName = "Custom Weapon",
unidentifiedResourceName = "Custom_Weapon",
unidentifiedDescriptionName = {
"Unidentified item, can be identified with [Magnifier].",
},
identifiedDisplayName = "Custom Weapon",
identifiedResourceName = "Custom_Weapon",
identifiedDescriptionName = { "" },
slotCount = 4,
ClassNum = 110
},


ofcourse your sprite should be same name with what you put in weapontable.lub

 
Last edited by a moderator:
Adding Custom Weapon needs the Following..

data/luafiles514/lua files/datainfo/weapontable.lub
Something like this, check each code where to place it

WEAPONTYPE_Custom_Weapon = 110
[Weapon_IDs.WEAPONTYPE_Banryu] = "_32000"
[Weapon_IDs.WEAPONTYPE_Custom_Weapon] = Weapon_IDs.WEAPONTYPE_SWORD

WEAPONTYPE_Custom_Weapon = 110
[Weapon_IDs.WEAPONTYPE_Banryu] = "_32000"
[Weapon_IDs.WEAPONTYPE_Custom_Weapon] = Weapon_IDs.WEAPONTYPE_SWORD


Then in your item_db2.conf

{
Id: 32000
AegisName: "Custom_Weapon"
Name: "Custom Weapon"
Type: "IT_WEAPON"
Buy: 20
Weight: 1000
Atk: 150
Range: 1
Loc: 2
Slots: 4
WeaponLv: 4
Subtype: "W_1HSWORD"
Job: {
Knight: true
}
Refine: true
Script: <"">
},

{
Id: 32000
AegisName: "Custom_Weapon"
Name: "Custom Weapon"
Type: "IT_WEAPON"
Buy: 20
Weight: 1000
Atk: 150
Range: 1
Loc: 2
Slots: 4
WeaponLv: 4
Subtype: "W_1HSWORD"
Job: {
Knight: true
}
Refine: true
Script: <"">
},


Then in iteminfo.lua

[32000] = {
unidentifiedDisplayName = "Custom Weapon",
unidentifiedResourceName = "Custom_Weapon",
unidentifiedDescriptionName = {
"Unidentified item, can be identified with [Magnifier].",
},
identifiedDisplayName = "Custom Weapon",
identifiedResourceName = "Custom_Weapon",
identifiedDescriptionName = { "" },
slotCount = 4,
ClassNum = 110
},

[32000] = {
unidentifiedDisplayName = "Custom Weapon",
unidentifiedResourceName = "Custom_Weapon",
unidentifiedDescriptionName = {
"Unidentified item, can be identified with [Magnifier].",
},
identifiedDisplayName = "Custom Weapon",
identifiedResourceName = "Custom_Weapon",
identifiedDescriptionName = { "" },
slotCount = 4,
ClassNum = 110
},


ofcourse your sprite should be same name with what you put in weapontable.lub
Hi! Im confused with this

WEAPONTYPE_Custom_Weapon = 110

[Weapon_IDs.WEAPONTYPE_Banryu] = "_32000"

which one is the sprite name there?

If I have spritename like hellrevolver.spr/act

can you give me example using hellrevolver?

 
Hi! Im confused with this

WEAPONTYPE_Custom_Weapon = 110

[Weapon_IDs.WEAPONTYPE_Banryu] = "_32000"

which one is the sprite name there?

If I have spritename like hellrevolver.spr/act

can you give me example using hellrevolver?
Change all the custom_weapon name int ohellrevolver

it must be like this
[Weapon_IDs.WEAPONTYPE_hellrevolver] = "_32000"

WEAPONTYPE_hellrevolver = 110

the 32000 is the item ID number

 
Maybe I am wrong, but I think you are missing the sprites that are responsible for attacking.

Download SPR Conview and check out the sprites.
With actOR you can adjust/change the sprites if necessary.

http://ratemyserver.net/index.php?page=download_tool

Hope this helps. Otherwise, contact Haziel 
He is very friendly and trustworthy.
I only have the sprite files from ¾ÆÀÌÅÛ folder, am I missing something? Sorry i dont know about adding weapons sprites 😕

 
Back
Top