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

Good Manarune Script For Biginner[liquids]

Acrenactive

★Designer★
Joined
Mar 21, 2013
Messages
224
Reaction score
55
Location
Los Angels L.A
Biginners Tutorial; Manarune Script

This Work trust me.

OBS! This script is not made by me

Acrenactive\data\actions

Go now in Action.xml and add this.

HTML:
<action itemid="2270" event="script" value="liquids/manarune.lua"/>

Create manarune.lua

HTML:
local MIN = 130
local MAX = 230
local EMPTY_POTION = 7636

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

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, "Ohh...", TALKTYPE_ORANGE_1)

	return TRUE
end
manarune.png
 
Last edited:
Back
Top