Nie tylko o tibii...
Wchodzisz w actions\scripts tworzysz plik paccdoors.lua i wklejasz to:
Spoiler:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5454 then
if isPremium(cid) then
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Musisz stanac przed drzwiami.')
return 1
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Musisz miec pacca zeby przejsc przez te drzwi.')
end
return 1
else
return 0
end
end
Potem w actions.xml wklejasz to:
Spoiler:
<action uniqueid="5454" script="paccdoors.lua" />
Potem wchodzisz w map editor i dajesz drzwi action uniqueid=5454
Nie mam pojęcia na jakich silnikach będzie działac
Offline