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

Potions... :(

lol94

Loler
Joined
Dec 23, 2008
Messages
764
Reaction score
55
Location
Mexico
can somebody tellme how have infinite potions? manas, healths, berserker pots, mastermind pots...

OR... helpme to create a mana rune please :)
 
there ya go

if you want to make outher potions unlimited then just remove this line.
PHP:
		doRemoveItem(item.uid)

PHP:
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10 * 60 * 1000) -- 10 minutes
setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, 3)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, -10)

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

	if(not isSorcerer(itemEx.uid) and not isDruid(itemEx.uid)) then
		doCreatureSay(itemEx.uid, "Only sorcerers and druids may drink this fluid.", TALKTYPE_ORANGE_1)
		return true
	end

	if(doAddCondition(itemEx.uid, condition)) then
		doSendMagicEffect(getCreaturePosition(itemEx.uid), CONST_ME_MAGIC_RED)
		doCreatureSay(itemEx.uid, "You feel smarter.", TALKTYPE_ORANGE_1)
	end

	return true
end
 
Back
Top