Jump to content
  • 0
Sign in to follow this  
Get Backers

itemdb_readdb: Invalid format (Script column) in line 111

Question

Hello, anyone can help me I added a map 06_guild01 06_guild02 06_guild03 06_guild04 06_guild05 06_guild06 06_guild07 and 06guild_08 to the dead branch script but an error appears in map-server

[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!"; },{},{}
 

Edited by Get Backers

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

First, this probably belongs in Support, NOT requests...

 

setarray [email protected]$, "dbroom1", "dbroom2", "dbroom3";

if (inarray( [email protected]$, strcharinfo(3) )) { 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!"; },{},{}

might make debugging a bit easier to see

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

same

Edited by Chasewalk

Share this post


Link to post
Share on other sites
  • 0

Hi sorry for the very late reply can u send me a whole script for working thanks happy new year!!

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!"; },{},{}

Share this post


Link to post
Share on other sites
  • 0
....{ 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!"; } },{},{} 

by default, script column could only support up to 1000 characters.

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

Sign in to follow this  

×
×
  • Create New...

Important Information

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