Jump to content
  • 0

Mob with Spawn Time


Question

1 answer to this question

Recommended Posts

Posted

<map name>,<x1>,<y1>,<x2>,<y2> TAB monster TAB <monster name> TAB <mob id>,<amount>,<delay1>,<delay2>,<event>{,<mob size>,<mob ai>}

map name: Name of the map. Use /where along with the following coordinates 

x1: X axis coordinates. It start from the left side of the map, and the higher it gets, the more it gets closer to the right side of the map. 

y1: Y axis coordinates. It start from the bottom, and the higher it gets, the more it gets closer to the top of the map. 

x2: X axis coordinates. It start from the left side of the map, and the higher it gets, the more it gets closer to the right side of the map. 

y2: Y axis coordinates. It start from the bottom, and the higher it gets, the more it gets closer to the top of the map. 

These 4 coordinates will make a spawn area where the mob will spawn, however it won't limit its movement, so lets say you put 120,150 on the first pair, and 130,160 pair- That's a 10x10 cell area where the mob will spawn randomly. 

If you want the mob to spawn at a random point, use 0 for all the coordinates. 

monster name: The name of the mob you want to be shown (using --ja-- in place of a name will display the "Japanese Name" from your database). 

You can specify a custom level to use for the mob different from the one of the database by adjoining the level after the name with a comma. eg: "Poring,50" for a name will spawn a monster with name Poring and level 50. 

mob id: The ID of your mob. 

amount: How many mobs you want to be spawned. 

delay1: Minimum amount of time before a monster respawns. 

delay2: Maximum amount of time before a monster respawns. 

delay1 and delay2 are used to define the time it takes for a monster to respawn; in milliseconds. Normal mobs usually have 0 (Instant Respawn), while MVPs have 7200000 (2 hours). If delay2 is greater than delay 1, the mob won't respawn until the map server restarts. 

event: Script event to be executed when the mob is killed. The event must be in the form "NPCName::OnEventName" to execute, and the event name label should start with "On". As with all events, if the NPC is an on-touch NPC, the player who triggers the script must be within 'trigger' range for the event to work. 

size: Optional. Size can be 0 (medium), 1 (small), or 2 (big). 

ai: Optional. AI can be 0 (default), 1 (attack/friendly), 2 (sphere), 3 (flora), or 4 (zanzou).

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