local config = {
{x=1911,y=1154,z=7},
{x=1913,y=1154,z=7},
{x=1915,y=1154,z=7},
{x=1917,y=1154,z=7},
{x=1919,y=1154,z=7},
{x=1921,y=1154,z=7},
{x=1923,y=1154,z=7},
{x=1925,y=1154,z=7}
}
function onStepIn(cid, item, pos, frompos, topos)
for i = 1, #config do
local posit = config[i]
posit.stackpos = STACKPOS_TOP_CREATURE
if not(isCreature(getThingFromPos(posit).uid)) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Miejsce numer '..i..' nale?y do Ciebie.')
return doTeleportThing(cid, posit)
else
if i == #config then
return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Wszystkie miejsca s? zaj?te.'), doTeleportThing(cid, frompos)
end
end
end
return true
end