Jump to content
  • 0

Left click on items crashes my client? (custom edited items)


Barbarosa

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  02/07/13
  • Last Seen:  

Hello

I recently added new custom items (Acid bottle, poison bottle, condenced white potion, Grenade bottle and few others) mainly all those items are for a BG supplier. I linked them well, I renamed and added everything to the idnum2desctable.txt and linked the sprites and it all works good, I can right click on the new item and it shows the sprite/picture and correct details. The only problem now is when I left click on it i crash immediately (Even though I did add the script in my item_db.txt) I'm not sure where the problem is, maybe the view item number?

Here is what i added in my item_db.txt for those items 

 


30000,BG_Acid_Bottle,BG Acid Bottle,3,200,,10,,,,,,,,,,,,,{},{},{}
30001,BG_Fire_Bottle,BG Bottle Grenade,3,200,,10,,,,,,,,,,,,,{},{},{}
30002,BG_White_Slim_Potion,BG Condensed White Potion,0,1650,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(325,405),0; },{},{}
30006,BG_Blue_Potion,BG Blue Potion,0,5000,,150,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal 0,rand(40,60); },{},{}
30008,BG_Poison_Bottle,BG Poison Bottle,2,5000,,100,,,,,0xFFFFFFFF,7,2,,,,,,{ if(Class == Job_Assassin_Cross || Class == Job_Guillotine_Cross || Class == Job_Guillotine_Cross_T) { sc_start SC_DPoison,60000,0; sc_start SC_ASPDPOTION3,60000,9; } else percentheal -100,-100; },{},{}
 
They are exact match to the original items however I changed the first three elements (ID,AegisName,Name)

What am i missing here?
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  08/17/12
  • Last Seen:  

Max item db : 30000 , change the value into 20000 or 25000 or > 30000

 

Check again on item : idnum2itemdesctable,idnum2itemdisplaynametable,idnum2itemresnametable

 

and remember the name file , example bgacidbot , put 20000#bgacidbot# on idnum2itemresnametable ( or the original acid bottle 20000#¿°»êº´# )

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  02/07/13
  • Last Seen:  

Okay I will try the max db item and should I change it to over 30,000 ? if my max db is 20,000 and my item number is 30,000 i should make the item db max over 30,000

And the idnum2itemdesctable,idnum2itemdisplaynametable,idnum2itemresnametable are correct, i can see the sprite and i can right click on it with the correct description however left clicking crashes. I'll try making the resnametable to the original acid bottle and do some tests. Thanks !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

where is the view ID ? (i cant see u put on item_db)

where is the accname.lua ? ( done ? 

 

 

FYI, max db will max 35000 i think,.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  02/07/13
  • Last Seen:  

hmm I didnt do anything to accname.lua I thought that accname.lua for only accessory items? and the ones i put for my custom items are copy paste from item_db 

for example i copy and pasted acid bottle and replaced the (id number, aegisname, name)

And to clarify here are more information

 

idnum2itemdesctable

 

30000#
A bottle holding a highly corrosive acid. USED IN BG ONLY
^ffffff_^000000
Weight :^777777 1^000000
#
 
30001#
A bottle containing a flammable liquid. USED IN BG ONLY
^ffffff_^000000
Weight :^777777 1^000000
#
 
30002#
A condensed White Potion. USED IN BG ONLY
^ffffff_^000000
Weight :^777777 5^000000
#

 
idnum2itemdisplaynametable
 

 
30000#BG_Acid_Bottle#
30001#BG_Grenade_Bottle#
30002#BG_Condensed_White_Potion#
 

 
idnum2itemresnametable
 

 

30000#BGAcidBottle#
30001#BGGrenadeBottle#
30002#BGCondensedWhitePotion#
 


And the names match to the collection texture and sprite textures.
 
Edited by Barbarosa
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

But I prefer to add custom items on 'item_db2.txt'

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

adding the item into item_db or item_db2 is the same....it wont caused error ....or client crash usually..

the stuff that usually caused client crash is the clientside file...like...adding the custom item incorrectly ... fail to get sprite id...wrong sprite id...and etc...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  244
  • Reputation:   11
  • Joined:  09/02/12
  • Last Seen:  

sometimes it happen when you missed something inside ¾ÆÀÌÅÛ folder, this is for the drag and drop folder

Edited by naaaan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  08/17/12
  • Last Seen:  

my suggestion don't use over 30000 item id , or you can find the diff file first to do it , try to make it 20000 , and make sure using ShinsDiffPatcher and WDGIncreaseHeadgearViewID = 30000

 

and try again the custom item :D

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