Black Box 3 Posted May 15, 2015 (edited) 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 { 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. Edited May 15, 2015 by Jolteo Quote Share this post Link to post Share on other sites
0 luis.seifert 10 Posted May 16, 2015 item_db2.conf : Slots: 1 iteminfo.lub : slotCount = 2 change both to 2. [Weapon_IDs.WEAPONTYPE_longsword] = Weapon_IDs.WPCLASS_WEAPONTYPE_SWORD change to [Weapon_IDs.WEAPONTYPE_longsword] = Weapon_IDs.WEAPONTYPE_SWORD 1 Black Box reacted to this Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted May 16, 2015 Maybe weapon/monster have some wav played upon victory/death? And you miss that was? Quote Share this post Link to post Share on other sites
0 Black Box 3 Posted May 16, 2015 (edited) Maybe weapon/monster have some wav played upon victory/death? And you miss that was? You are missing add some wav? What you suggest I try? Edited May 16, 2015 by Jolteo Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted May 16, 2015 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 { 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); ">}, { 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 ( change the value into 98 ) Script: <" bonus bAtk,pow(min(getrefine(),15),2); "> }, Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted May 16, 2015 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 { 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); ">}, { 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 ( change the value into 98 ) Script: <" bonus bAtk,pow(min(getrefine(),15),2); "> }, Noo. Not really , view for weapons are all clientside.Serverside view for weapon tell its type, whether its bow/sword/dagger/etc. Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted May 16, 2015 (edited) { 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 ( change the value into 98 ) Script: <" bonus bAtk,pow(min(getrefine(),15),2); "> }, Noo. Not really , view for weapons are all clientside. Serverside view for weapon tell its type, whether its bow/sword/dagger/etc. maybe the weapon itself that causing the sprite error, sometimes i experienced custom mob sprite error same as in custom weapon sprite Edited May 16, 2015 by Zhao Chow Quote Share this post Link to post Share on other sites
0 Black Box 3 Posted May 16, 2015 (edited) 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 { 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); ">}, { 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 ( change the value into 98 ) Script: <" bonus bAtk,pow(min(getrefine(),15),2); "> }, friend, no worked! something else to try? if you want to test the sprite: https://mega.co.nz/#!8xdkVZSD!e1OkEjSIABRZSfzBzVhkm8jAnF7nJJTObcxqhTVYMQM 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 { 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); ">}, { 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 ( change the value into 98 ) Script: <" bonus bAtk,pow(min(getrefine(),15),2); "> }, Noo. Not really , view for weapons are all clientside.Serverside view for weapon tell its type, whether its bow/sword/dagger/etc. something else to try? if you want to test the sprite: https://mega.co.nz/#!8xdkVZSD!e1OkEjSIABRZSfzBzVhkm8jAnF7nJJTObcxqhTVYMQM I will try with another weapon... Edited May 16, 2015 by Jolteo Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted May 16, 2015 i will test it later and guide you how to fix it 1 Black Box reacted to this Quote Share this post Link to post Share on other sites
0 Black Box 3 Posted May 16, 2015 i will test it later and guide you how to fix it thanks friend, i go wait. Quote Share this post Link to post Share on other sites
0 Black Box 3 Posted May 16, 2015 item_db2.conf : Slots: 1 iteminfo.lub : slotCount = 2 change both to 2. [Weapon_IDs.WEAPONTYPE_longsword] = Weapon_IDs.WPCLASS_WEAPONTYPE_SWORD change to [Weapon_IDs.WEAPONTYPE_longsword] = Weapon_IDs.WEAPONTYPE_SWORD thank so much, very nice, it's working. :) 1 luis.seifert reacted to this Quote Share this post Link to post Share on other sites
0 wengbenedict93 0 Posted May 24, 2015 Hello @ can i see your weapons directory? I am having trouble with this data/sprite/<job dependent folder>/<job dependent prefix>_<gender><weapon suffix>.spr on the custom weapons guide Quote Share this post Link to post Share on other sites
0 Black Box 3 Posted May 24, 2015 (edited) Hello @ can i see your weapons directory? I am having trouble with this data/sprite/<job dependent folder>/<job dependent prefix>_<gender><weapon suffix>.spr on the custom weapons guide It is thus! and weapontable.lub it is thus: WEAPONTYPE_longsword = 98 [Weapon_IDs.WEAPONTYPE_longsword] = "_longsword" [Weapon_IDs.WEAPONTYPE_longsword] = Weapon_IDs.WEAPONTYPE_SWORD Edited May 24, 2015 by Jolteo Quote Share this post Link to post Share on other sites
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.
Edited by JolteoShare this post
Link to post
Share on other sites