Jump to content
  • 0

help me to check what's wrong with my script


Question

10 answers to this question

Recommended Posts

Posted

im getting this error if i use mobcount

[Error]: Loading NPC file: npc/newerth/mvp.txt

script error on npc/newerth/mvp.txt line 364

parse_callfunc: not enough arguments, expected ','

362 : {

363 : if (getmapxy($@mapname$,@mapx,@mapy,0) != 0) goto M_End;

* 364 : if (mobcount($@mapname$')') goto l_nos;

Posted (edited)
[Error]: Loading NPC file: npc/newerth/mvp.txt

script error on npc/newerth/mvp.txt line 364

parse_callfunc: not enough arguments, expected ','

362 : {

363 : if (getmapxy($@mapname$,@mapx,@mapy,0) != 0) goto M_End;

* 364 : if (mobcount($@mapname$')') goto l_nos;

It's because you are using the command wrong. The syntax is:

mobcount("<map name>","<event label>")

Read the documentation in /trunk/doc/script_commands.txt or on the wiki page: mobcount.

Edited by Brian
Posted

yes..it is a script command...perhap it is dropped after update..xD

correct me if i am wrong hahaa

*getmapmobs("<map name>")

This function will return the total count of monsters currently located on the
specified map. If the map name is given as "this", the map the invoking
character is on will be used. If the map is not found, or the invoker is not a
character while the map is "this", it will return -1.


anyway..use mobcount would be better than using getmapmobs

Posted

well ... i seriously have no idea how to use " mobcount " ... unless u can do me one from my script with the mobcount command ... i've tried using mobcount and event label ... but im receiving others errors @@

Posted

[Error]: Loading NPC file: npc/newerth/mvp.txt

script error on npc/newerth/mvp.txt line 15

parse_line: need ';'

10 : warp .@MapList$[ ( (( .@Room * 10 ) - 10 ) + .@Selected ) ],104,97;

11 : end;

12 :

13 : OnInit:

14 : set .MapLists$[0],

* 15 : "mvp01"','"mvp02","mvp03","mvp04","mvp05","mvp06","mvp07","mvp08","mvp09","mvp10", // Room 01 - 10

16 : "mvp11","mvp12","mvp13","mvp14","mvp15","mvp16","mvp17","mvp18","mvp19","mvp20", // Room 11 - 20

17 : "mvp21","mvp22","mvp23","mvp24","mvp25","mvp26","mvp27","mvp28","mvp29","mvp30"; // Room 21 - 30

18 : end;

19 : }

20 :

[Error]: npc_event: event not found [summoner#10::OnSummoned]

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