Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_YELLOW_RINGS)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doPlayerAddMana(cid, 1700)<------Ile ma dawac many
return doCombat(cid, combat, var)
end
II.
Na koncu w [SIZE="3"]data/spells.xml[/SIZE] dodajesz linijke
[code]
<rune name="Mana Rune" id="2276" allowfaruse="1" charges="5" lvl="8" exhaustion="200" maglv="3" aggressive="0" needtarget="1" blocktype="solid" script="manarune.lua"/>
Mysle ze pomoglem. Pozdrawiam!!:up::up:
function onCastSpell(cid, item, frompos, item2, topos)
local levels = {10,20,30,40,50,60,70,80,90,100}
local mana = {200,300,400,500,600,700,800,900,1000,2000}
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
<rune name="Mana Rune" id="2298" charges="50" needtarget="0" maglv="5" exhaustion="2000" enabled="1" allowfaruse="1" script="manarune.lua">
<item id="2298" article="a" name="spell rune">
<attribute key="weight" value="120"/>
<item id="2298" article="a" name="mana rune">
<attribute key="runeSpellName" value="adevo vita vis"/>
<attribute key="weight" value="120"/>
</item>
Z Tnet zaczerpane