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

stage uhrune

Daaslund

New Member
Joined
Dec 13, 2010
Messages
41
Reaction score
1
can someone give me a script for a stge uhrune with this stages!

[{1,35}] = {150,150},
[{51,100}] = {150,250},
[{101,250}] = {250,400},
[{251,350}] = {400,600},
[{450,550}] = {600,750},
[{551,650}] = {750,1000},
[{650,math.huge}] = {1000,1300}

and were shuld i put it? in witch folder?
 
Lua:
local t = {
	[{1,35}] = {150,150},
	[{51,100}] = {150,250},
	[{101,250}] = {250,400},
	[{251,350}] = {400,600},
	[{450,550}] = {600,750},
	[{551,650}] = {750,1000},
	[{650,math.huge}] = {1000,1300}
}
 
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 1000)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, EXHAUST_HEAL)
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if hasCondition(cid, CONDITION_EXHAUST, EXHAUST_HEAL) then
		return doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
	elseif not isPlayer(itemEx.uid) then
		return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
	end
 
	local lvl = getPlayerLevel(cid)
	for k, v in pairs(t) do
		if lvl >= k[1] and lvl <= k[2] then
			doPlayerAddHealth(itemEx.uid,math.random(v[1], v[2]))
			doSendMagicEffect(toPosition, CONST_ME_MAGIC_BLUE)
			doAddCondition(cid, exhaust)
			doSendAnimatedText(toPosition, 'Healing!', math.random(255))
			return true
		end
	end
end
 
Thx summ but the thing is the rune is not working, we did the
Code:
<action itemid="2263" event="script" value="stageduh.lua"/>
thingy aswell but the rune is still not working....
 
Back
Top