Jump to content
  • 0

item_db errors on cards


Question

Posted

I'm receiving these errors when loading the map server and I'm not sure what the problem is.

script error on item_db line 1853
    parse_callfunc: not enough arguments, expected ','
* 1853 : bonus3 bAddEff,Eff_Stun,500';' bonus3 bAddEff,Eff_Curse,500; bonus3 bAddEff,Eff_Silence,500; bonus3 bAddEff,Eff_Poison,500; bonus3 bAddEff,Eff_Bleeding,500; bonus3 bAutoSpell,"NPC_CRITICALWOUND",2,50;
[Error]:
script error on item_db line 1942
    parse_line: expected ';'
* 1942 : bonus bIgnoreMDefRace,RC_DemiHuman','20; bonus bIgnoreMDefRace,RC_Player,20;

12 answers to this question

Recommended Posts

  • 0
Posted
They are slightly modified cards

4276;"Lord_Of_Death_Card";"Lord of The Dead Card";6;20;0;10;0;0;0;0;0;0;0;2;0;0;0;0;"bonus3 bAddEff,Eff_Stun,500; bonus3 bAddEff,Eff_Curse,500; bonus3 bAddEff,Eff_Silence,500; bonus3 bAddEff,Eff_Poison,500; bonus3 bAddEff,Eff_Bleeding,500; bonus3 bAutoSpell,""NPC_CRITICALWOUND"",2,50;";"";""
4365;"B_Katrinn_Card";"High Wizard Card";6;20;0;10;0;0;0;0;0;0;0;769;0;0;0;0;"bonus bIgnoreMDefRace,RC_DemiHuman,20; bonus bIgnoreMDefRace,RC_Player,20;";"";""

 

  • 0
Posted (edited)
wow you broke them good ;) please take note.
// Structure of Database:
// ID,AegisName,Name,Type,Buy,Sell,Weight,ATK[:MATK],DEF,Range,Slots,Job,Class,Gender,Loc,wLV,eLV[:maxLevel],Refineable,View,{ Script },{ OnEquip_Script },{ OnUnequip_Script }
//
4276,Lord_Of_Death_Card,Lord of The Dead Card,6,20,0,10,0,0,0,0,0,0,0,2,0,0,0,0,{ bonus3 bAddEff,Eff_Stun,500; bonus3 bAddEff,Eff_Curse,500; bonus3 bAddEff,Eff_Silence,500; bonus3 bAddEff,Eff_Poison,500; bonus3 bAddEff,Eff_Bleeding,500; bonus3 bAutoSpell,NPC_CRITICALWOUND,2,50; ),{},{}
4365,B_Katrinn_Card,High Wizard Card,6,20,0,10,0,0,0,0,0,0,0,769,0,0,0,0,{ bonus bIgnoreMDefRace,RC_DemiHuman,20; bonus bIgnoreMDefRace,RC_Player,20;},{},{}

 

Edited by srhmike
  • 0
Posted

I'm pretty new to this. I just exported the sql db into a csv file and copied it over to show you, so the formatting might look weird. As far as I know, they look exactly as you've shown. 

bonus3 bAddEff,Eff_Stun,500; bonus3 bAddEff,Eff_Curse,500; bonus3 bAddEff,Eff_Silence,500; bonus3 bAddEff,Eff_Poison,500; bonus3 bAddEff,Eff_Bleeding,500; bonus3 bAutoSpell,"NPC_CRITICALWOUND",2,50;

Error one expects a comma where the semicolon is after Eff_Stun,500 


bonus bIgnoreMDefRace,RC_DemiHuman,20; bonus bIgnoreMDefRace,RC_Player,20;

Error two expects a semicolon where the comma is after RC_DemiHuman

 

I've changed quite a few card effects and item effects already, but only these two give me errors

  • 0
Posted (edited)
bonus2 bIgnoreMdefRaceRate,RC_DemiHuman,25;

change the 5 to 20 for you custom.

bonus2 bAddEff,Eff_Stun,500

Try those, the difference for the first one is bonus2 instead of bonus

and the second one is bonus2 instead of 3.
Thats just me copying off other items.

Nevermind, I found other ones that matched.

Could you show me the actual lines out of your item db?

Edited by srhmike
  • 0
Posted
script error on item_db line 1853
    parse_callfunc: not enough arguments, expected ','
* 1853 : bonus3 bAddEff,Eff_Stun,500';' bonus3 bAddEff,Eff_Curse,500; bonus3 bAddEff,Eff_Silence,500; bonus3 bAddEff,Eff_Poison,500; bonus3 bAddEff,Eff_Bleeding,500; bonus3 bAutoSpell,"NPC_CRITICALWOUND",2,50;
[Error]:
script error on item_db line 1942
    parse_line: expected ';'
* 1942 : bonus bIgnoreMDefRace,RC_DemiHuman','20; bonus bIgnoreMDefRace,RC_Player,20; 

Thats stating it wants a " ; " after the 500 on Eff_Stun

and it wants a " , " after demihuman

I think it mixed up your errors, because even in the syntax highlighting, you can see where it wants it.  check it out.

  • 0
Posted (edited)

That's why I'm confused. Those lines are correct. I have a ";" after the 500 and a "," after demihuman.

I'm using mysql for the itemdb. Here are the two lines copied out of it.

'4276', 'Lord_Of_Death_Card', 'Lord of The Dead Card', '6', '20', NULL, '10', NULL, NULL, NULL, '0', NULL, NULL, NULL, '2', NULL, NULL, NULL, NULL, 'bonus3 bAddEff,Eff_Stun,500; bonus3 bAddEff,Eff_Curse,500; bonus3 bAddEff,Eff_Silence,500; bonus3 bAddEff,Eff_Poison,500; bonus3 bAddEff,Eff_Bleeding,500; bonus3 bAutoSpell,\"NPC_CRITICALWOUND\",2,50;', NULL, NULL

'4365', 'B_Katrinn_Card', 'High Wizard Card', '6', '20', NULL, '10', NULL, NULL, NULL, '0', NULL, NULL, NULL, '769', NULL, NULL, NULL, NULL, 'bonus bIgnoreMDefRace,RC_DemiHuman,20; bonus bIgnoreMDefRace,RC_Player,20;', NULL, NULL

Edited by pikachue
  • 0
Posted (edited)

Hm yes. I fixed that part of it. Still getting the same errors, though. Thanks for the help regardless!

I figured out the error with the lord of the dead card. I'd removed all of the atf_short so it could be used with long range attacks as well, but it requires changing the bonus3 to bonus 2 in order to do so.

Aaaand I know why I'm also getting the error on the high wizard card. For some reason I thought the script meant I could ignore a flat amount of mdef. It actually just completely ignores mdef so no number was needed.

Edited by pikachue
  • 0
Posted (edited)
(4365,'B_Katrinn_Card','High Wizard Card',6,20,NULL,10,NULL,NULL,NULL,0,NULL,NULL,NULL,769,NULL,NULL,NULL,NULL,'bonus bIgnoreMDefRace,RC_DemiHuman,20; bonus bIgnoreMDefRace,RC_Player,20;',NULL,NULL);

(4276,'Lord_Of_Death_Card','Lord of The Dead Card',6,20,NULL,10,NULL,NULL,NULL,0,NULL,NULL,NULL,2,NULL,NULL,NULL,NULL,'bonus3 bAddEff,Eff_Stun,500; bonus3 bAddEff,Eff_Curse,500; bonus3 bAddEff,Eff_Silence,500; bonus3 bAddEff,Eff_Poison,500; bonus3 bAddEff,Eff_Bleeding,500; bonus3 bAutoSpell,\"NPC_CRITICALWOUND\",2,50;',NULL,NULL);

Try those.

If that doesnt fix it, then I have no clue.

\"NPC_CRITICALWOUND\"

I think thats weird. Like its commented out or something.

Id try taking it out.

Edited by srhmike

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