robimy plik crystal arrow.lua
function onUse(cid, item, frompos, item2, topos)
piece1pos = {x=921, y=1007, z=7, stackpos=1}
piece2pos = {x=922, y=1007, z=7, stackpos=1}
piece3pos = {x=923, y=1007, z=7, stackpos=1}
arrowpos = {x=922, y=1005, z=7, stackpos=1}
getpiece1 = getThingfromPos(piece1pos)
getpiece2 = getThingfromPos(piece2pos)
getpiece3 = getThingfromPos(piece3pos)
if item.uid == 6666 and item.itemid == 1945 and getpiece1.itemid == 2160 and getpiece2.itemid == 2544 and getpiece3.itemid == 2177 then
doRemoveItem(getpiece1.uid,100)
doRemoveItem(getpiece2.uid,1)
doRemoveItem(getpiece3.uid,1)
doCreateItem(2352,1,arrowpos)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 6666 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendTextMessage(cid,22,"Sorry, not possible.")
end
return 1
end
potem w action.xml
<action uniqueid="6666" script="crystal arrow.lua" />
Przed
http://img219.imageshack.us/my.php?image=przedtn5.jpg
Po
http://img219.imageshack.us/my.php?image=pogj3.jpg
uniqe id dĽwigni to 6666
a id 1945
no to na tyle mam nadzieję że się podoba ;p
quest oczywi¶cie na 8.1
Offline