• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Monsters always active

Watchdog87

Member
Joined
Mar 2, 2014
Messages
30
Solutions
1
Reaction score
5
Hello!

I have two requests:

  1. Monsters should be active at all times.
  2. Monsters should attack each other.
    1. Monsters should attack only certain monsters.
  3. Monsters should ignore player until player attacks monster.
 
the number 3. its easy (change it to 0)
Code:
    <flag hostile="1"/>
This will not work.

Topic:

1.
Creaturescript:
Code:
function onThink(cid, interval)
     if isMonster(cid) == then then
          local rand = math.random(0,3)
          doMoveCreature(cid, rand)
     end
     return true
end

You have to register it to all monsters. For it use this code:
http://otland.net/threads/creaturee...ster-and-players-in-creatureevent-xml.134003/
Or do it by adding:
Code:
<script>
    <event name="event_name">
</script>
To every monster's XML file.

2.
This code:
http://otland.net/threads/summon-auto-attacking-monster-1-0.211199/

It requires this too:
http://otland.net/threads/creaturee...ster-and-players-in-creatureevent-xml.134003/

You can edit which mosnters should be attacked.

3.
Two ways:

A)
http://otland.net/threads/passive-monsters.162749/

B)
http://otland.net/threads/passive-monsters-experience-per-attack.110254/
 
Last edited:
Monsters will not be active at all times because the server is designed to set them in an idle state to conserve CPU resources. You would have to edit the source code to stop that from happening.
 
Back
Top