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

When player die then monster dissapear, need help.

witmar

New Member
Joined
Oct 21, 2008
Messages
248
Reaction score
0
Location
Poland, Dębica
Hello,
last time i made firewalkers boots quest in my server. I have almost the all scripts but i need script which work like that:

When players die in special area then monster dissapear from area.

I offer rep++ for help.
 
i can help you but i dont test it, you can create a teleport acces to the room of the phyttus the rotten -for ex.-
teleport can contain the aid = xxxx and can use the movement

this teleport will take you to the room, and the actionid = xxxx
can do this,

<movevent type="StepIn" actionid="8888" event="script" value="test.lua"/>

and now make a new file called test.lua
and paste this

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if(not isPlayer(cid)) then
return true
end

local NorthWestRoomX = 1000
local NorthEastRoomX = 1020
local NorthWestRoomY = 1500
local SouthWestRoomY = 1520


for areax = NorthWestRoomX, NorthEastRoomX do
for areay = NorthWestRoomY, SouthWestRoomY do
areatiles = {x=areax, y=areay, z=7, stackpos=253}
areaplayers = getThingfromPos(areatiles).uid
if(not isPlayer(areaplayers)) then
return doRemoveCreature(areaplayers)
end
end
end
end


this means if the player step in the teleport to bring him to the toom of the phyttus the rootten room, it will remove all creatures in the room, you can modify all script as you wish.
 
Back
Top