Crash in Custom Weapon

Black Box

New member
Messages
42
Points
0
Location
In a distant land.
Emulator
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.

2dbosvl.png


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:

1zxw0w7.png

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:
Maybe weapon/monster have some wav played upon victory/death? And you miss that was?

 
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.

2dbosvl.png


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);

">

},

 
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. 
2dbosvl.png
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.

 
 {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

 
Last edited by a moderator:
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.

2dbosvl.png


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!
default_sad.png


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. 
2dbosvl.png
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...

 
Last edited by a moderator:
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
 
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

 
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!

1zxw0w7.png


and weapontable.lub it is thus:

Code:
WEAPONTYPE_longsword = 98 [Weapon_IDs.WEAPONTYPE_longsword] = "_longsword" [Weapon_IDs.WEAPONTYPE_longsword] = Weapon_IDs.WEAPONTYPE_SWORD
 
Last edited by a moderator:
Back
Top