• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action mana rune [only "8.54"]

andrewss

Nice Member
Joined
Jun 12, 2010
Messages
122
Reaction score
1
Location
E G Y P T
i will show mana rune you can put it in donators if not low exp it's very good mana rune it's heal 300k it's only for tibia 8.54
let's go script it's so easy to work

open data/actions/liquids add manarune.lua
Code:
local MIN = 300000
local MAX = 300000
local EMPTY_POTION = 2298

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 200))

function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end

if hasCondition(cid, CONDITION_EXHAUST_HEAL) == true then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end



if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end

doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "donator manarune... ", TALKTYPE_ORANGE_1)
doTransformItem(item.uid, EMPTY_POTION)
return TRUE
end

now we are finished manarune.lua
now open data/actions/action.xml
Code:
      <action itemid="2298" event="script" value="liquids/manarune.lua"/>

if it's not work for you say to me
gratz now you have manarune
good luck
 
90% to this one who scripted the liquids folder scripts on tfs ...

u only changed the id, and how much gain hp/mana.
 
local EMPTY_POTION = 2298

?? its a mana rune..
 
Just a single word for you... FAIL
basically, a manarune made with even 7.92 will work on a 8.54... if you know how to change the "do" or "get" values... I got the mine since my server was 7.92 lol
 
Back
Top