• 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!

StepIn summon monster... help.

Piltrafa

Active Member
Joined
Nov 10, 2010
Messages
654
Reaction score
29
Hello, its possible that when you step on x sqm it summon "x" monsters after "x" time?

Thanks,
repped.
 
Is it this also possible?
onstepout

addEvent(doRemoveCreature(getThingFromPos(position).uid,60*1000)
Or how is it like?
 
LUA:
addEvent(function(pos) local v=getTopCreature(pos).uid return isCreature(v) and doRemoveCreature(v) end, 60*1000, position)
 
Can anyone make all script? I dind't understand to much about lua scripter.

Anyway good work, still wait to anyone help me with a full script, both repped.
 
Last edited:
data/movements/scripts/monst.lua
LUA:
local pos = {x=EDIT, y=EDIT, z=EDIT}
function onStepIn(cid, item, pos)
addEvent(doCreateMonster,6*10,"Demon", pos)
return true
end

data/movements/movements.xml
XML:
<movevent type="StepIn" uniqueid="25567" event="script" value="monst.lua"/>

Put 25567 in the tile at RME and you're done
 

Similar threads

Replies
2
Views
268
Back
Top