Jump to content
  • 0
Black Box

Crash in Custom Weapon

Question

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.

Edited by Jolteo

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Maybe weapon/monster have some wav played upon victory/death? And you miss that was?

Share this post


Link to post
Share on other sites
  • 0

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 by Jolteo

Share this post


Link to post
Share on other sites
  • 0

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

">

},

Share this post


Link to post
Share on other sites
  • 0

 

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.

Share this post


Link to post
Share on other sites
  • 0

 

 {

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 by Zhao Chow

Share this post


Link to post
Share on other sites
  • 0

 

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! :(

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...

Edited by Jolteo

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0

 

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. :) :) :)

Share this post


Link to post
Share on other sites
  • 0

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:

 

 

WEAPONTYPE_longsword = 98 [Weapon_IDs.WEAPONTYPE_longsword] = "_longsword" [Weapon_IDs.WEAPONTYPE_longsword] = Weapon_IDs.WEAPONTYPE_SWORD
Edited by Jolteo

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.