Matis415
Active User
- Dołączył
- Październik 6, 2008
- Posty
- 81
- Liczba reakcji
- 4
Witam chcia?bym zaprezentowa? m?j 1 Skrypt
Na dzwignie co daje jab?ko
I jak by kto? m?g? mnie troszk? poduczy? skryptowania Action 
lubiejablka.lua
Action.xml



lubiejablka.lua
Kod:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 then
doPlayerGiveItem(cid, 2674, 1)
doPlayerSendTextMessage(cid, 19, 'Dostales Jablko')
doTransformItem(item.uid,item.itemid+1)
elseif item.itemid == 1946 then
doPlayerGiveItem(cid, 1674, 1)
doPlayerSendTextMessage(cid, 19, 'Dostales Jablko')
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return TRUE
end
Action.xml
Kod:
<action uniqueid="2566" script="lubiejablka.lua" />