Recommended Posts

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 [email protected]_amount[0],10,12,13,15,20;

Set wave monster : --->1002

for(set [email protected],1;[email protected]<=4;set [email protected],[email protected]+1)
{
 for(set [email protected],0;[email protected]<[email protected]_amount[.level-1];set [email protected],[email protected]+1)
  callSub OnSpawn,[email protected],[email protected],1002;
}

  • Upvote 3

Share this post


Link to post
Share on other sites

error @ my server..

Defense Mob Event.txt

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

DefMob Event Walk.txt

set [email protected],getmapmobs("guild_vs1"); <-- line 54

Share this post


Link to post
Share on other sites

yah i already add that. XD the problem is "getmapmobs" <-- rathena dont have that script, im using the latest svn..

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

God can u fix the problem for rathena?

#7

another problem..

BLOCK_SIZE <-- getmapmobs

BLOCK_SIZE = 8

Edited by goddameit

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

infinity looping

i still don't get this game's goal @[email protected]

Edited by Kichi

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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  :(

Share this post


Link to post
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
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.

Loading...