|
- TibiaFans! Forum Prawdziwego Tibijczyka http://www.tibiafans.pun.pl/index.php - Skrypty XML.LUA http://www.tibiafans.pun.pl/viewforum.php?id=5 - [8.1][Actions] Dźwignia - znikanie ścian http://www.tibiafans.pun.pl/viewtopic.php?id=124 |
| Xylio - 2008-05-20 16:41:17 |
Objaśnię prosty, przydatny skrypt. Kod:<action uniqueid="3001" script="dzwignia1.lua" /> w data/actions/scripts/ dodajemy "dzwignia1.lua" Kod:function onUse(cid, item, frompos, item2, topos)
gatepos = {x=1093, y=963, z=7, stackpos=1}
getgate = getThingfromPos(gatepos)
if item.uid == 3001 and item.itemid == 1945 and getgate.itemid == 3361 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 3001 and item.itemid == 1946
and getgate.itemid == 0 then
doCreateItem(3361,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
endGatepos to współrzędne ściany, która ma zniknać (zmieńcie sobie) |