• 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!

Manarune Requested

Cronox give the xml script to and tell me where to put the script.. in data/spells/script or Data/action/script?
data/actions/scripts/manarune.lua
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if isPlayer(itemEx.uid) == TRUE then
        local level, mlevel = getPlayerLevel(cid), getPlayerMagLevel(cid)
        local mana_minimum = level * 2 + mlevel * 1 - 50
        local mana_maximum = level * 3 + mlevel * 1

        doPlayerAddMana(cid, math.random(mana_minimum, mana_maximum))
        doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
        doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
        doRemoveItem(item.uid, 1)
    else
        doPlayerSendDefaultCancel(cid, RETURNVALUE_CANONLYUSETHISRUNEONCREATURES)
    end
    return TRUE
end

data/actions/actions.xml
Code:
<action itemid="2275" event="script" value="manarune.lua"/>

That is cronoxhere's manarune...

Try to set this and you will know how to do it heal more or lower:
Code:
        local mana_minimum = level * 2 + mlevel * 1 - 50
        local mana_maximum = level * 3 + mlevel * 1

rep if I helped :)
 
Im sorry i think you guys missunderstod my request, i know how to fix a manarune but i need the one in the ss becouse i like its effects so its just the effects i was after:p
 
I said that this is noob script :(
Lua:
local exhaust = createConditionObject(CONDITION_EXHAUST)
		setConditionParam(exhaust, CONDITION_PARAM_TICKS, 2000)
function onUse(cid, item, frompos, itemEx, topos)
 p = getCreaturePosition(cid)
local posfire = {x=p.x-3, y=p.y-3, z=p.z}
local posfire2 = {x=p.x+3, y=p.y+3, z=p.z}
local posice = {x=p.x+3, y=p.y-3, z=p.z}
local posice2 = {x=p.x-3, y=p.y+3, z=p.z}
level = getPlayerLevel(cid)
mlevel = getPlayerMagLevel(cid)
voc = getPlayerVocation(cid)
rand = 0
template = {min = (((level * 4) + (mlevel * 2)) / 1.2) , max =(((level * 4) + (mlevel * 3)) / 1.1)}
	if(isPlayer(itemEx.uid) == false) then
	return true
	end
	if not hasCondition(cid, CONDITION_EXHAUST) then
		rand = math.random(template.min, template.max)
		doCreatureAddMana(cid, rand)
		doSendMagicEffect(getPlayerPosition(cid),14)
		 
		doSendDistanceShoot(p,posfire,3)
		doSendDistanceShoot(p,posfire2,3)
		
		doSendDistanceShoot(p,posice,28)
		doSendDistanceShoot(p,posice2,28)
		doAddCondition(cid, exhaust)
	else
	doPlayerSendCancel(cid,"You are exhausted.")
	end
return true
end
 
Last edited:
wesoly136 your script didnt work but Cykotitan i have a script that have dosenddistanceshoot~ but its a talkaction and i cant change it or the effect to spells so please cant u fix it to me?

I Rep++



use function doSendDistanceShoot(fromPos, toPos, type) to send the effect around the player :p
 
Back
Top