Bramka Premium

Status
Zamknięty.

meritus335

Active User
Zarejestrowany
Dołączył
Sierpień 6, 2010
Posty
55
Liczba reakcji
2
Prosz? o skrypt na bramk? premium pod 8.1 :ops:
(?eby przejs? przez ni? potrzebny jest PACC.)
 
Odp: Bramka Premium

do??czam sie do pro?by

ale prosze by to by?a kratka przez ktora moze przejsc tylko pacc
 
Odp: Bramka Premium

paccdoor.lua
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.actionid == 7000 and isPremium(cid) then
local 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,'Stand in front of the door.')
end

doTeleportThing(cid,pos)
end
end
teraz w actions.xml dodajemy
PHP:
<action itemid="xxxx" script="paccdoor.lua" />  ((xxxx-id drzwi))
Skrypt znaleziony na www.tibia11.pun
A dok?adniej KLIK
 
Status
Zamknięty.
Back
Do góry