Jump to content
  • 0

What is the error all about?


karazu

Question


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

What is the error in my script?


I added this Script in the Custom Battle ground of Goddammit
 

 

    if(.point[1]>.point[2])
    {
        Announce "[Battle Ground]:Team A Win!",0;
        getitem $@bg_id_a,<item id>,<qty>;
    }else if(.point[2]>.point[1])
    {
        Announce "[Battle Ground]:Team B Win!",0;
        getitem $@bg_id_b,<item id>,<qty>;
    }else
    {
        Announce "[Battle Ground]:Draw!",0;
        getitem $@bg_id_a,<item id>,<qty>;
        getitem $@bg_id_b,<item id>,<qty>;
    }
 



what is exaclty the error?


This is in the MAP DB
 

 

 

[Error]: 
script error on npc/custom/MYNPC/CustomBattle.txt line 109
    parse_simpleexpr: unexpected character
   104 :     end;
   105 : OnTimer190000:
   106 :     if(.point[1]>.point[2])
   107 :     {
   108 :         Announce "[Battle Ground]:Team A Win!",0;
*  109 :         getitem $@bg_id_a,'<'item id>,<qty>;
   110 :     }else if(.point[2]>.point[1])
   111 :     {
   112 :         Announce "[Battle Ground]:Team B Win!",0;
   113 :         getitem $@bg_id_b,<item id>,<qty>;
   114 :     }else
[Info]: Done loading '14800' NPCs:
 
 

 



 



ops i forgot to put an item sorry!



still exist
 

 

[Error]: 
script error on npc/custom/MYNPC/CustomBattle.txt line 85
    parse_simpleexpr: unexpected character
    80 :     end;
    81 : OnTimer60000:
    82 :     if(.point[1]>.point[2])
    83 :     {
    84 :         Announce "[Battle Ground]:Team A Win!",0;
*   85 :         getitem $@bg_id_a,'<'605>,<1>;
    86 :     }else if(.point[2]>.point[1])
    87 :     {
    88 :         Announce "[Battle Ground]:Team B Win!",0;
    89 :         getitem $@bg_id_b,<605>,<1>;
    90 :     }else
 

 



for got to remove 

 

<   >
 


NO more error! HURAY



New topic
 

 

http://rathena.org/board/topic/88645-custom-battle-ground-by-goddammit-not-properly-working/
 
Edited by karazu
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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