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

Pytius The Rotten Teleport

Cebulka02

New Member
Joined
Jan 5, 2008
Messages
56
Reaction score
0
local from = {x=32558, y=31396, z=15}
local to = {x=32573, y=31415, z=15}

local time = 1 -- Seconds

local monsters = {
{{x=32567, y=31405, z=15}, 'Pythius The Rotten'}
}

local players = {
{{x=32551, y=31378, z=15}, {x=32563, y=31406, z=15}}
}

local level = 100

local statue_pos = {x = 32567, y = 31405, z = 15}

function onUse(cid, item, fromPosition, itemEx, toPosition)
local t = {}
if item.itemid == 1304 then
for i = 1, #players do
t = getTopCreature(players[1]).uid
if getPlayerLevel(cid) < level then
return doCreatureSay(cid, 'You need level ' .. level .. ' to do this quest.', TALKTYPE_ORANGE_1, false, cid)
end
end
for i = 1, #t do
doTeleportThing(t, players[2])
doSendMagicEffect(players[1], CONST_ME_TELEPORT)
doCreatureSay(cid, 'Oh no is a Beware! Prepare your mind Pythius will be come in any moment!.', TALKTYPE_ORANGE_1, false, cid)
end
addEvent(Potwory1, 5 * 1000)
else
for x = from.x, to.x do
for y = from.y, to.y do
local v = getTopCreature({x=x, y=y, z=from.z}).uid
if isPlayer(v) then
return doCreatureSay(cid, 'There is already a player in the battle room.', TALKTYPE_ORANGE_1, false, cid)
elseif isMonster(v) then
table.insert(t, v)
end
end
end
for i = 1, #t do
doRemoveCreature(t)
end
end

return doTransformItem(item.uid, item.itemid == 1304 and 1304 or 1304)
end

function Potwory1()
doCreateMonster('Pythius The Rotten', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
return true
end

It wont work good on 0.3.7. It teleport player to room, resp monster but anyone else can too click on stone, enter to room or respawn 99999x pytius for other player. If u can fix it thanks
 
Last edited:
Back
Top