Jump to content
  • 0

Custom Weapon Crashes on Equip


Rivers

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   46
  • Joined:  12/04/13
  • Last Seen:  

Good day, I have some custom items that randomly crash myself and others on screen when it is worn. There is no error codes and I know for sure the item is added to the Data properly. Any idea what might be wrong? I'm running 20180620.

I edited the item DB
35100,Surtr_Bow,Surtr Bow,5,2500,,600,225,,12,4,0x00000800,7,2,34,1,4,1,5001,{},{},{}
AccName.lub
    [ACCESSORY_IDs.ACCESSORY_Shopping_List] = "_Surtr_Bow",

AccessoryID.lub

    [ACCESSORY_IDs.ACCESSORY_Shopping_List] = "_Surtr_Bow",

ItemInfo.lua/lub

    [35100] = {
        unidentifiedDisplayName = "Bow",
        unidentifiedResourceName = "보우",
        unidentifiedDescriptionName = { "Unknown Item, can be identified by using a ^6666CCMagnifier^000000." },
        identifiedDisplayName = "Surtr Bow",
        identifiedResourceName = "Surtr_Bow",
        identifiedDescriptionName = {
            "Surtr is a fire giant who leads his kin into battle against the Aesir and Vanir gods during Ragnarok, the destruction of the cosmos..",
            "All stats +2",
            "Inflict 25% more damage to Earth property.",
            "INT +8, Max HP +5%, Max SP+5%",
            "Increase damage by 10% when equiped with Fire Arrow",
            "Class:^6666CC Bow^000000",
            "Attack:^CC0000 225^000000",
            "Weight:^009900 1^000000",
            "Element: Fire",
            "Weapon Level:^009900 4^000000",
            "Level Requirement:^009900 1^000000",
            "Jobs:^6666CC Archer Class^000000",
        },
        slotCount = 4,
        ClassNum = 5001
    },

Edited by Rivers
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

When you equip you get error and your player with in your char range get error too ? I guess you have a problem with sprite 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  108
  • Reputation:   12
  • Joined:  06/19/12
  • Last Seen:  

Make sure you have put all the sprites intended for the item inside their respective class folders.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   46
  • Joined:  12/04/13
  • Last Seen:  

5 hours ago, Poring King said:

When you equip you get error and your player with in your char range get error too ? I guess you have a problem with sprite 

There is no error, it just kills the client and the clients around me.

 

59 minutes ago, Weistony said:

Make sure you have put all the sprites intended for the item inside their respective class folders.

They are all in there. I know it works because it worked for the first 93, it's just this particular weapon set I seem to be having a hard time with. ?

I'll check the sprite files again, make sure it's all correct, of course. Thanks guys for your help thus far.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

If I am right, the item_db VIEW ID column should be WEAPON ID not the view id of the weapon.

The rest is correct.

View: For normal items, defines a replacement view-sprite for the item (eg:
      Making apples look like apple juice). The special case are weapons
      and ammo where this value indicates the weapon-class of the item.

	For weapons, the types are:
		0: bare fist
		1: Daggers
		2: One-handed swords
		3: Two-handed swords
		4: One-handed spears
		5: Two-handed spears
		6: One-handed axes
		7: Two-handed axes
		8: Maces
		9: Unused
		10: Staves
		11: Bows
		12: Knuckles
		13: Musical Instruments
		14: Whips
		15: Books
		16: Katars
		17: Revolvers
		18: Rifles
		19: Gatling guns
		20: Shotguns
		21: Grenade launchers
		22: Fuuma Shurikens
		23: Two-handed staves
		24: Max Type
		25: Dual-wield Daggers
		26: Dual-wield Swords
		27: Dual-wield Axes
		28: Dagger + Sword
		29: Dagger + Axe
		30: Sword + Axe

 

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...