Jump to content
  • 0

how can random monster summon only the area selected


hakuren

Question


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

hello again im trying to create a npc that summon only area heres the picture of the map and the area of summon

post-631-0-23022900-1339064765_thumb.gif

is there a npc command or any tricks that allows only the red one area of the picture can summon mobs? help me if this is possible please....

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

from rAthena documentation folder

*monster "<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>{,"<event label>"};

*areamonster "<map name>",<x1>,<y1>,<x2>,<y2>,"<name to show>",<mob id>,<amount>{,"<event label>"};

This command will spawn a monster on the specified coordinates on the specified

map. If the script is invoked by a character, a special map name, "this", will

be recognized to mean the name of the map the invoking character is located at.

This command works fine in the item scripts.

The same command arguments mean the same things as described above in the

beginning of this document when talking about permanent monster spawns. Monsters

spawned in this manner will not respawn upon being killed.

Unlike the permanent monster spawns, if the mob id is -1, a random monster will

be picked from the entire database according to the rules configured in the

server for dead branches. This will work for all other kinds of non-permanent

monster spawns.

The only very special thing about this command is an event label, which is an

optional parameter. This label is written like '<NPC object name>::<label name>'

and upon the monster being killed, it will execute the script inside of the

specified NPC object starting from the label given. The RID of the player

attached at this execution will be the RID of the killing character.

The Event field can be used alternatively to specify other mob properties. Use

2 to specify that the mob should be small, 4 for big monsters, and 8 for

special ai mobs (which by default attack other monsters instead of players).

You can add these, so using 10 will spawn small monsters that attack other

mobs (if you specify both 2 and 4, the small version takes priority).

monster "place",60,100,"Poring",1002,1,"NPCNAME::OnLabel";

The coordinates of 0,0 will spawn the monster on a random place on the map.

The 'areamonster' command works much like the 'monster' command and is not

significantly different, but spawns the monsters within a square defined by

x1/y1-x2/y2.

Link to comment
Share on other sites


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

woo it works the areamonster thing is cool thank you clydelion ^_^ you help me alot ^_^

Edited by hakuren
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
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...