Roth
Active User
- Joined
- Oct 9, 2010
- Messages
- 71
- Reaction score
- 6
Od razu przejd? do sedna sprawy
Skrypt testowany na silniku Aries 0.4.0.
Skrypt wklejamy do:
Tworzymy plik o nazwie:
i Wklejamy to:
UWAGA!
Gdy zetniemy drzewko w bp pojawi si? deska. Je?eli nie chcesz ?eby zosta?a dodawana wystarczy usun??:
Teraz do pliku:
Dodajemy:
Pozdrawiam Roth
Skrypt testowany na silniku Aries 0.4.0.
Skrypt wklejamy do:
Code:
OTS / data / actions / scripts/
Code:
drzewka.lua
Code:
function onUse(cid, item, frompos, item2, topos)
if item2.itemid == 2700 then
doPlayerAddItem(cid,5901,1)
doTransformItem(item2.uid,2710)
elseif item2.itemid == 2705 then
doPlayerAddItem(cid,5901,1)
doTransformItem(item2.uid,2717)
elseif item2.itemid == 2707 then
doPlayerAddItem(cid,5901,1)
doTransformItem(item2.uid,2720)
elseif item2.itemid == 2708 then
doPlayerAddItem(cid,5901,1)
doTransformItem(item2.uid,2718)
elseif item2.itemid == 7024 then
doPlayerAddItem(cid,5901,1)
doTransformItem(item2.uid,2717)
elseif item2.itemid == 2699 then
doPlayerAddItem(cid,5953,1)
doTransformItem(item2.uid,2702)
end
return 1
end
Gdy zetniemy drzewko w bp pojawi si? deska. Je?eli nie chcesz ?eby zosta?a dodawana wystarczy usun??:
Code:
doPlayerAddItem(cid,5953,1)
Code:
OTS / data / actions / action.xml
Code:
<action itemid="id item, dzi?ki kt?remu bedzie mo?na zcina? drzewo" script="drzewka.lua"/>
Pozdrawiam Roth