I have added them to the first post.
Last edited:
NOTE: if you use a server with a lower version based on a client 9+ version, Then use the runes for client 9+ and remove the line with doPlayerSendTextMessage.
local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000) -- time in seconds x1000
function onUse(cid, item, fromPosition, itemEx, toPosition)
local manamax = getPlayerMaxMana(cid)
local min = 3 -- this means 3% minimum healing
local max = 5 -- this means 5% maximum healing
local mana_add = math.random((manamax * (min/100)), (manamax * (max/100)))
if(getCreatureCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE) then
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
return doPlayerSendCancel(cid, "You are exhausted")
end
doPlayerAddMana(cid, mana_add)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
doAddCondition(cid, exhaust)
return true
end
[06/02/2013 19:05:49] [Error - Action Interface]
[06/02/2013 19:05:49] data/actions/scripts/healthrune.lua:onUse
[06/02/2013 19:05:49] Description:
[06/02/2013 19:05:49] (luaDoAddCondition) Condition not found
[9:18:11.182] >> Running Database Manager
[9:18:11.559] > No tables were optimized.
[9:18:11.561] >> Loading items (OTB)
[9:18:11.594] >> Loading items (XML)
[9:18:11.885] >> Loading groups
[9:18:11.887] >> Loading vocations
[9:18:11.890] >> Loading outfits
[9:18:11.896] >> Loading mounts
[9:18:11.899] >> Loading chat channels
[9:18:11.903] >> Loading script systems
[9:18:11.971] > Loading weapons... done.
[9:18:11.975] > Preparing weapons... done.
[9:18:12.799] > Loading spells... done.
[9:18:13.181] > Loading actions...
[9:18:13.183] [Error - Test Interface]
[9:18:13.185] data/actions/scripts/liquids/manarune.lua
[9:18:13.189] Description:
[9:18:13.191] (LuaInterface::luaCreateConditionObject) Condition not found
[9:18:13.195] [Error - Test Interface]
[9:18:13.197] data/actions/scripts/liquids/manarune.lua
[9:18:13.200] Description:
[9:18:13.202] (LuaInterface::luaSetConditionParam) Condition not found
[9:18:13.207] [Error - Action Interface]
[9:18:13.210] data/actions/scripts/liquids/manarune.lua
[9:18:13.213] Description:
[9:18:13.216] (LuaInterface::luaCreateConditionObject) Condition not found
[9:18:13.220] [Error - Action Interface]
[9:18:13.224] data/actions/scripts/liquids/manarune.lua
[9:18:13.227] Description:
[9:18:13.229] (LuaInterface::luaSetConditionParam) Condition not found
[9:18:13.320] done.
[9:18:13.741] > Loading talkactions... done.
[9:18:15.101] > Loading movements... done.
[9:18:15.211] > Loading creaturescripts... done.
[9:18:15.264] > Loading globalscripts... done.
[9:18:15.266] >> Loading mods...
[9:18:15.275] > Loading buypremium_command.xml... done.
[9:18:15.287] > Loading change-gold.xml... done.
[9:18:15.297] > Loading changender_command.xml... done.
[9:18:15.304] > Loading custommonsters.xml... done.
[9:18:15.357] > Loading customspells.xml... done.
[9:18:15.368] > Loading firstitems.xml... done.
[9:18:15.370] > 6 mods were loaded.
[9:18:15.373] >> Loading experience stages
[9:18:15.375] >> Loading quests
[9:18:15.379] >> Loading monsters
[9:18:15.877] >> Loading npcs
[9:18:15.880] >> Loading raids
[9:18:15.882] >> Loading map and spawns...
[9:18:15.929] > Map size: 2048x2048.
[9:18:15.930] > Map descriptions:
[9:18:15.932] "Saved with Remere's Map Editor 2.2"
[9:18:15.935] "No map description available."
[9:18:16.181] > Loading time: 0.296 seconds.
[9:18:16.266] > Parsing time: 0.083 seconds.
[9:18:16.511] > Synchronization time: 0.242 seconds.
[9:18:16.516] > Unserialization time: 0.001 seconds.
[9:18:16.519] >> Checking world type... Open PvP
[9:18:16.522] >> Starting to dominate the world... done.
[9:18:16.526] >> Initializing game state and binding services...
[9:18:17.220] > Global IP address(es): 217.140.184.211
[9:18:17.224] > Local IP address(es): 192.168.0.158
[9:18:17.230] > Bound ports: 7171 7172
[9:18:17.234] >> Everything smells good, server is starting up...
[9:18:18.237] >> AfghanOt server Online!
Mana runes should work the same as mana potions and should be in actions same as potions. If you add mana heal scripts as runes in spells, people won't be able to heal mana when using other runes/spells.you've got it all wrong,actions doesn't work you have to add to spells man, you need to add the rune to spells
[16/08/2013 12:35:08] [Error - Spell Interface]
[16/08/2013 12:35:08] data/spells/scripts/healing/palyrune.lua
[16/08/2013 12:35:08] Description:
[16/08/2013 12:35:08] (luaCreateConditionObject) Condition not found
[16/08/2013 12:35:08] [Error - Spell Interface]
[16/08/2013 12:35:08] data/spells/scripts/healing/palyrune.lua
[16/08/2013 12:35:08] Description:
[16/08/2013 12:35:08] (luaSetConditionParam) Condition not found
[16/08/2013 12:35:08] [Warning - Event::loadScript] Event onCastSpell not found (data/spells/scripts/healing/palyrune.lua)
[16/08/2013 12:49:31] [Error - Action Interface]
[16/08/2013 12:49:31] data/actions/scripts/palyrune.lua
[16/08/2013 12:49:31] Description:
[16/08/2013 12:49:31] (luaCreateConditionObject) Condition not found
[16/08/2013 12:49:31] [Error - Action Interface]
[16/08/2013 12:49:31] data/actions/scripts/palyrune.lua
[16/08/2013 12:49:31] Description:
[16/08/2013 12:49:31] (luaSetConditionParam) Condition not found
local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000) -- time in seconds x1000
function onUse(cid, item, fromPosition, itemEx, toPosition)
local hpmax, manamax = getCreatureMaxHealth(cid), getPlayerMaxMana(cid)
local minhp, maxhp = 8, 10 -- this means 3% minimum hp healing and 5% maximum hp healing
local minmana, maxmana = 7, 8 -- this means 3% minimum mana healing and 5% maximum mana healing
local hp_add, mana_add = math.random((hpmax * (minhp/100)), (hpmax * (maxhp/100))), math.random((manamax * (minmana/100)), (manamax * (maxmana/100)))
if(getCreatureCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE) then
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
doPlayerSendCancel(cid, "You are exhausted")
return true
end
doCreatureAddHealth(cid, hp_add)
doPlayerAddMana(cid, mana_add)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE, "+"..math.floor(hp_add).." health and +"..math.floor(mana_add).." mana", getCreaturePosition(cid), hp_add, TEXTCOLOR_GREEN)
doAddCondition(cid, exhaust)
return true
end