Forum Zostalo Stworzone By Pomagać Ludzią W Grze Tibia Ots
Wchodzimy w data/actions/actions.xml
Pod -- Bread making buy me--
Wpisujemy
<action itemid="2270" script="manarune.lua" />
Następnie przechodzimy w data/actions/scripts
Tworzymy notatnik
Wpisujemy w nim:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 4 then
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(cid,22,"Coraz wiecej many masz moj kochany ")
doPlayerAddMana(cid, 790)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"Your magic is not strong enough to wield this power.")
end
return 1
end
Zapisujemy jako manarune.xml
Czerwony = ilość dodawanej many
Offline