Jump to content
  • 0

itemdb_readdb: Invalid format (Script column) in line 111


Get Backers

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.02
  • Content Count:  70
  • Reputation:   0
  • Joined:  11/23/20
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

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

 

setarray .@maps$, "dbroom1", "dbroom2", "dbroom3";

if (inarray( .@maps$, 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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  94
  • Reputation:   0
  • Joined:  10/17/20
  • Last Seen:  

same

Edited by Chasewalk
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.02
  • Content Count:  70
  • Reputation:   0
  • Joined:  11/23/20
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

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

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

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