Black Box
New member
I followed this tutorial:
http://herc.ws/wiki/index.php?title=Custom_weapons&diff=974&oldid=973#Example
But, when I attack a monster with custom weapon gives error in client.
At this time the weapon appears, but soon after comes the crash.
See my settings:
item_db2.conf
iteminfo.lub
Sprite:
weapontable.lub
The sprites are inserted correctly. Just missing this part of the crash because the rest is working.
http://herc.ws/wiki/index.php?title=Custom_weapons&diff=974&oldid=973#Example
But, when I attack a monster with custom weapon gives error in client.
At this time the weapon appears, but soon after comes the crash.
See my settings:
item_db2.conf
{ Id: 13456 AegisName: "longsword" Name: "Long Sword" Type: 4 Buy: 20 Weight: 1350 Atk: 135 Range: 1 Slots: 1 Job: 0x000654E2 Loc: 2 WeaponLv: 4 EquipLv: 5 View: 2 Script: <" bonus bAtk,pow(min(getrefine(),15),2); ">},
iteminfo.lub
[13456] = { unidentifiedDisplayName = "Long Sword", unidentifiedResourceName = "longsword", unidentifiedDescriptionName = { "test.", "test" }, identifiedDisplayName = "Long Sword", identifiedResourceName = "longsword", identifiedDescriptionName = { "test.", "test" }, slotCount = 2, ClassNum = 98 },
Sprite:
weapontable.lub
WEAPONTYPE_longsword = 98 [Weapon_IDs.WEAPONTYPE_longsword] = "_longsword" [Weapon_IDs.WEAPONTYPE_longsword] = Weapon_IDs.WPCLASS_WEAPONTYPE_SWORD
The sprites are inserted correctly. Just missing this part of the crash because the rest is working.
Last edited by a moderator: