• 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, removecreature (Help)

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,858
Reaction score
96
Location
Brazil
I need a script that:
1. When stepin player get teleport to a room and create a monster inside this room if have storage.(If player haven't storage he back to 'fromposition').
2. After 10mins IF player is in room yet he get teleported to a position.
3. Player can't enter if other player inside room.
4. If monster is alive inside he must be removed. (Maybe other player dead inside).

PS.:player must have storage to getin.

I made this script but it's not working.
Lua:
function onStepIn(cid, item, pos, fromPos)

	if isPlayer(cid) and getCreatureStorage(cid, 65911) < 0 then 
			doTeleportThing(cid, {x=32442, y=31993, z=9})
                        doCreateMonster('The Horned Fox', {x=32440, y=31996, z=9})
                        setPlayerStorageValue(cid,75911,1)
			doCreatureSay(cid, "You have ten minutes to kill and loot this boss, else you will lose that chance and will be kicked out.", TALKTYPE_ORANGE_1)
		else
			doTeleportThing(cid, fromPosition, CONST_ME_NONE)
		end
	end


	if isPlayer(cid) and getCreatureStorage(cid, 75911) == 1 then 
			doCreatureSay(cid, "You already entered this room before.", TALKTYPE_ORANGE_1)
end
end
end
 
Last edited:
Back
Top