Jump to content

Monster Defense


Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   217
  • Joined:  11/22/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  491
  • Reputation:   19
  • Joined:  11/19/11
  • Last Seen:  

nice release master /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

you have to add this into your emulator

http://pastebin.com/raw.php?i=EBWgqEpr

it is included inside the file attached by Goddameit....

put it inside here..

trunk/src/map/script.c

and make sure you recompile..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   217
  • Joined:  11/22/11
  • Last Seen:  

error @ my server..

...

copy from eA

http://pastebin.com/download.php?i=jucrEFeT

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

another problem..

BLOCK_SIZE <-- getmapmobs

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   217
  • Joined:  11/22/11
  • Last Seen:  

God can u fix the problem for rathena?

#7

another problem..

BLOCK_SIZE <-- getmapmobs

BLOCK_SIZE = 8

Edited by goddameit
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

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
Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  390
  • Reputation:   27
  • Joined:  07/12/12
  • Last Seen:  

can someone help me finding the "source code"??

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

infinity looping

i still don't get this game's goal @_@

Edited by Kichi
Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  21
  • Reputation:   0
  • Joined:  02/16/12
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  220
  • Reputation:   251
  • Joined:  04/08/13
  • Last Seen:  

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

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

×
×
  • Create New...