Wchodzisz w folder scripts, tworzysz plik tekstowy nazwa.lua (musisz mie? w??czone domy?lne ustawianie znanych rozszerze?, ?eby nie zosta?o "nazwa.lua.txt")<action uniqueid="12345" event="script" value="NAZWA.lua"/>
zapisujesz, i wszystko ?miga, nie da si? tego bardziej ?opatologicznie wyt?umaczy?, pozdro!function onUse(cid, item, frompos, item2, topos)
if item.uid == 12345 then
if getPlayerStorageValue(cid,12345) == -1 then
doPlayerSendTextMessage(cid,25,"You have found a NAZWA ITEMU.")
doPlayerAddItem(cid,ID PRZEDMIOTU,1)
setPlayerStorageValue(cid,12345,1)
else
doPlayerSendTextMessage(cid,25,"The is empty.")
end
end
return TRUE
end
<action itemid="1740;1747-1749" event="script" value="skrzynki.lua"/>