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

Potion

Soul

New Member
Joined
Jul 25, 2008
Messages
93
Reaction score
4
Location
Mexico~
I need a potion to put in my Server

Called Donator Potion

Features:
-Infinite
-Heals x mana & x health
-With Exhausted.
-You can use in PZ
-You can use in other chars.


Id of the Donator Potion (ID:7488)

Ill Rep.
Regards Mike
 
this is my mana rune. edit the health thing yourself xd
LUA:
local t = {
	min = 10000,
	max = 12500,
	text = "Mana (:",
	effect = CONST_ME_MAGIC_BLUE
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isPlayer(itemEx.uid) then
		doPlayerAddMana(itemEx.uid, math.random(t.min, t.max))
		doCreatureSay(itemEx.uid, t.text, TALKTYPE_ORANGE_1)
		doSendMagicEffect(toPosition, t.effect)
	else
		doPlayerSendCancel(cid, "You can only use this rune on players.")
	end
	return true
end
 
still new to scripting, so not sure if this will work.. post errors if it does
Code:
local cfg = {
	healthAmount = 100,
	manaAmount = 100,
	effect = CONST_ME_MAGIC_BLUE
	}

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

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if(hasCondition(cid, CONDITION_EXHAUST)) then
		return doPlayerSendCancel(cid, "You\'re exahusted.")
	else
		doPlayerAddMana(cid, cfg.manaAmount)
		doPlayerAddHealth(cid, cfg.healthAmount)
		doAddCondition(cid, exhaust)
		end
	return true
end
 
Last edited:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if os.time() >= getPlayerStorageValue(cid, 23113) + 1 then
		return doPlayerAddMana(cid, math.random(500, 1000)) and doPlayerAddHeatlh(cid, math.random(500, 1000)) and doCreatureSay(cid, "Aaaah...", TALKTYPE_MONSTER) and setPlayerStorageValue(cid, 23113, os.time())
	else
		return doPlayerSendCancel(cid, "You are exhausted.")
	end
	return true
end
 
Back
Top