Forum Zostalo Stworzone By Pomagać Ludzią W Grze Tibia Ots
Wchodzimy w data/actions/scripts
Tworzymy notatnik
Wpisujemy w nim:
function onUse(cid, item, frompos, item2, topos)
local mlvl = getPlayerMagLevel(cid)
local lvl = getPlayerLevel(cid)
local addmana = math.random(8, lvl) * 30 + 185 - 8*30
if mlvl >= 4 then
if lvl >= 10 then
doPlayerSay(cid,'Uaa Daje Kopa Zawsze'.. addmana ..' Many.',16)
doPlayerAddMana(cid, addmana)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,'Ty Gnojku Masz Za Maly MLev!!!')
end
else
doSendMagicEffect(frompos,3)
doPlayerSendCancel(cid,'Manarune Nie Sa Dla Ciebie Za Maly Lev...')
end
return 1
end
Przechodzimy w data/actions/actions.xml
Dopisujemy pod: -- Bread making buy me--
<action itemid="2260" script="manarune.lua" />
Czerwony = Id Manaruny
Offline