• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Soul Rune

Scurzo

New Member
Joined
Aug 23, 2008
Messages
66
Reaction score
0
I need a rune that adds 10 soul each time used for Mystic Spirit
But I dont know how to do it
It would be nice if someone helps me
 
soulrune.lua
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	        doPlayerAddSoul(cid, 10)
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREAREA)
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_BIGCLOUDS)
		doRemoveItem(item.uid, 1)
	return true
end

remove the dosendmagiceffect if you dont want to use them

go to actions.xml and add

Lua:
<action itemid="XXXX" event="script" value="soulrune.lua"/>
 
Last edited:
Code:
function onUse (cid, item, fromPosition, itemEx, toPosition)
  if isPlayer(itemEx.uid) then
    doPlayerAddSoul(cid,10)
    doRemoveItem(item.uid, 1)
  end
  return true
end

ACTIONS. Place this script in actions and put the id of the rune in actions.xml ;p

edit: too late ^^
 
you need this to read the config for exactions


Lua:
local exhaust =  createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
 
--and--

doAddCondition(cid, exhaust)
 
Last edited:
Lua:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
                doPlayerAddSoul(cid, 10)
                doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREAREA)
                doSendMagicEffect(getPlayerPosition(cid), CONST_ME_BIGCLOUDS)
                doAddCondition(cid, exhaust)
                doRemoveItem(item.uid, 1)
        return true
end

try this its abit edited from my original post this might work
 
Back
Top