- Dołączył
- Maj 21, 2008
- Posty
- 4
- Liczba reakcji
- 1
Witam mam dla was skrypt edytowany prze zemnie.
Ten skrypt to drzwi levelowe. Mog? by? do levela xxxx albo od levela xxxx.
Robimy skrypt o dowolnej nazwie w np. doorlvl actions\scripts\doorlvl a w nim:
sktypt:
potem dodajemy w actions.XML
to doda?:
T?umaczenie:
-yyyy tu wpisa? uniqueid drzwi
-xxxx tu wpisa? wybrany level (level mo?e by? dowolny nawet do 999999)
->=/<= tu wybra? czy >= od levela xxxx , <= do levela xxxx
-"wybrany level" tu wpisujemy level wybrany w xxxx
Teraz w Map Edytor dodajemy drzwi i w Unique ID wpisujemy yyyy
ss:


I powinno by? OK
Ten skrypt to drzwi levelowe. Mog? by? do levela xxxx albo od levela xxxx.
Robimy skrypt o dowolnej nazwie w np. doorlvl actions\scripts\doorlvl a w nim:
sktypt:
function onUse(cid, item, frompos, item2, topos)
if item.uid == yyyy then
if getPlayerLevel(cid) >= xxxx then
doPlayerSendTextMessage(cid, 22, "Mozesz przejsc, bo masz "wybrany level" level.")
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,'Stan na przeciwko drzwi.')
return 1
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Nie mozesz przejsc, bo nie masz "wybrany level" level.')
end
return 1
else
return 0
end
end
potem dodajemy w actions.XML
to doda?:
<action uniqueid="yyyy" script="doorlvl.lua" />
T?umaczenie:
-yyyy tu wpisa? uniqueid drzwi
-xxxx tu wpisa? wybrany level (level mo?e by? dowolny nawet do 999999)
->=/<= tu wybra? czy >= od levela xxxx , <= do levela xxxx
-"wybrany level" tu wpisujemy level wybrany w xxxx
Teraz w Map Edytor dodajemy drzwi i w Unique ID wpisujemy yyyy
ss:


I powinno by? OK

Ostatnia edycja:
