Jump to content
  • 0

itemdb_readdb: Invalid format (Script column) in line 111


Question

Posted

Hello, anyone how to fix this error thank you!!

[Error]: itemdb_readdb: Invalid format (Script column) in line 111 of "db/pre-re/item_db.txt" (item with id 604), skipping.
[Error]: itemdb_readdb: Insufficient columns in line 112 of "db/pre-re/item_db.txt" (item with id 0), skipping.


604,Branch_Of_Dead_Tree,Dead Branch,2,50,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ if( strcharinfo(3) == "dbroom1" || strcharinfo(3) == "dbroom2" || strcharinfo(3) == "dbroom3" || strcharinfo(3) == "dbroom4" || strcharinfo(3) == "dbroom5" || strcharinfo(3) == "dbroom6" || strcharinfo(3) == "dbroom7" || strcharinfo(3) == "dbroom8" || strcharinfo(3) == "dbroom9" || strcharinfo(3) == "dbroom10" || strcharinfo(3) == "dbroom11" || strcharinfo(3) == "dbroom12" || strcharinfo(3) == "dbroom13" || strcharinfo(3) == "dbroom14" || strcharinfo(3) == "dbroom15" || strcharinfo(3) == "dbroom16" || strcharinfo(3) == "dbroom17" || strcharinfo(3) == "dbroom18" || strcharinfo(3) == "dbroom19" || strcharinfo(3) == "dbroom20" || strcharinfo(3) == "06guild_01" || strcharinfo(3) == "06guild_02" || strcharinfo(3) == "06guild_03" || strcharinfo(3) == "06guild_04" || strcharinfo(3) == "06guild_05" || strcharinfo(3) == "06guild_06" || strcharinfo(3) == "06guild_07" || strcharinfo(3) == "06guild_08" ) { delitem 604,1; monster "this",-1,-1,"--ja--",-1,1,""; } else dispbottom "This item cannot be used within this are. please use the db room!"; },{},{}

5 answers to this question

Recommended Posts

  • 1
Posted

It's nice to use function for this but with just 2 comparable string.. you can just use the compare function like this

604,Branch_Of_Dead_Tree,Dead Branch,2,50,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ if( compare(strcharinfo(3),"dbroom") || compare(strcharinfo(3),"06guild_")) { delitem 604,1; monster "this",-1,-1,"--ja--",-1,1,""; } else dispbottom "This item cannot be used within this are. please use the db room!"; },{},{}

 

  • Upvote 1
  • 0
Posted
18 minutes ago, Get Backers said:

not solved sorry ahaha! i can't use bloody branch on map  06_guild01 to 06_guild08

It's working perfectly fine on my side.. you should edit the compare string with your maps.. As you said it was " strcharinfo(3) == "06guild_08 " but you are referring to "06_"..
also it's dead branch edit not bloody branch.

  • 0
Posted

Sorry Haruka Mayumi EHEHE! by the way thank you so much problem solved dead branch and bloody branch!

604,Branch_Of_Dead_Tree,Dead Branch,2,50,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ if( compare(strcharinfo(3),"dbroom") || compare(strcharinfo(3),"06guild_")) { delitem 604,1; monster "this",-1,-1,"--ja--",-1,1,""; } else dispbottom "This item cannot be used within this are. please use the db room!"; },{},{}


12103,Bloody_Dead_Branch,Bloody Branch,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ if( compare(strcharinfo(3),"dbroom") || compare(strcharinfo(3),"06guild_")) { delitem 12103,1; monster "this",-1,-1,"--ja--",-3,1,""; } else dispbottom "This item cannot be used within this are. please use the db room!"; },{},{}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...