potinho
Intermediate OT User
I have a rune mana on my server. Her script is ok, their sales with the charges are ok but the rune does not show the charges in her description, I would like her to show them. can you help me? Tried to create a action to use but not worked.
Follow my mana rune system
spells.xml
Script LUA
Items.xml
Follow a print screen then show with no charges (but charges works)
Follow my mana rune system
spells.xml
XML:
<rune name="Mana Rune" id="2281" allowfaruse="1" charges="1" maglv="1" exhaustion="800" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/manarune.lua"/>
Script LUA
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
local level = getPlayerLevel(cid)
local magicl = getPlayerMagLevel(cid)
local min = ((level * 0.2) + (magicl * 2) + 50)
local max = ((level * 0.2) + (magicl * 2.5) + 75)
doCreatureAddMana(cid, math.random(min, max))
return doCombat(cid, combat, var)
end
Items.xml
XML:
<item id="2281" article="a" name="mana rune">
<attribute key="type" value="rune"/>
<attribute key="charges" value="1"/>
<attribute key="weight" value="52"/>
</item>
Follow a print screen then show with no charges (but charges works)
Attachments
-
manarune no charges.JPG28.1 KB · Views: 2 · VirusTotal