Tibiabc - Wszelkie prawa zastrzeżone
Skrypt:
Robimy skrypt lua, w folderze actions o nazwie manarune.lua i wklejamy do niego to:
function onUse(cid, item, frompos, item2, topos) local levels = {7,20,30,40,50,60,70,80,90,100,150,200,250,300,350,400,500} local mana = {100,200,300,400,500,600,700,800,900,1000,1500,2000,2500,3000,3500,4000,4500,5000} local player_level = getPlayerLevel(cid) for i=1, #levels do if (player_level >= levels[i]) then doPlayerAddMana(cid, mana[i]) doSendAnimatedText(getPlayerPosition(cid),"+" .. mana[i] .."",35) end end end
Teraz wchodzimy w actions.xml i dopisujemy:
<action itemid="2275" script="manarune.lua" />
@Mana runka daje +100 manny wiecej do 10lvl, np:
Lvl:
10 - 100
50 - 500
100 - 1000
150 - 1500
200 -2000
Offline