Jump to content

Recommended Posts

Posted

Idea : http://j.mp/SA5jEh

[media=]

[/media]

This script need to add source code before using,

all information is in file.

Monster Defense.rar

How to start this event ? create a party and click npc.

Reward : no.

Set each wave monster amount :

setarray .@lv_amount[0],10,12,13,15,20;

Set wave monster : --->1002

for(set .@i,1;.@i<=4;set .@i,.@i+1)
{
 for(set .@j,0;.@j<.@lv_amount[.level-1];set .@j,.@j+1)
  callSub OnSpawn,.@i,.@j,1002;
}

  • Upvote 3
Posted

error @ my server..

Defense Mob Event.txt

if(getmapmobs("guild_vs1")==1) <-- line 58

DefMob Event Walk.txt

set .@n,getmapmobs("guild_vs1"); <-- line 54

Posted

Change getmapmob with mobcount.. :)

It's the counterpart script of getmapmob in rathena.. :)

---------------------------------------
*mobcount("<map name>","<event label>")
This function will count all the monsters on the specified map that have a given
event label and return the number or 0 if it can't find any. Naturally, only
monsters spawned with 'monster' and 'areamonster' script commands can have non-empty
event label.
If you pass this function an empty string for the event label, it will return
the total count of monster without event label, including permanently spawning monsters.
With the dynamic mobs system enabled, where mobs are not kept
in memory for maps with no actual people playing on them, this will return a 0
for any such map.
If the event label is given as "all", all monsters will be counted, regardless of
having any event label attached.
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.
---------------------------------------

  • 2 weeks later...
Posted (edited)

i got error

[Error]: run_script: infinity loop !

[Debug]: Source (NPC): DefMob_Event_Walk at guild_vs1 (0,0)

[Error]: run_script: infinity loop !

[Debug]: Source (NPC): DefMob_Event_Walk at guild_vs1 (0,0)

Edited by hakuren
  • 4 weeks later...
  • 2 months later...
  • 3 months later...
Posted

HI pls could any one help?

If i make setarray .@lv_amount[0],10,12,13,15,20; i have got an error Ifinitu loop

if i make setarray .@lv_amount[0],2,2,2,2,2; it is working well...

How to fix  it?

  • 2 weeks later...
Posted

i got error

 

[Error]: run_script: infinity loop !

[Debug]: Source (NPC): DefMob_Event_Walk at guild_vs1 (0,0)

[Error]: run_script: infinity loop !

[Debug]: Source (NPC): DefMob_Event_Walk at guild_vs1 (0,0)

 

I have the same error, I'm using 3ceam

 

Help pls  :(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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