• 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 Question very important for all

domelxp

Member
Joined
Mar 1, 2010
Messages
243
Reaction score
5
hello all otlanders ! i have question maybe somone know how solution for my question ... so

how to disable knight to use ultimate health potion on druid
and druid great mana potion on knight

i use rev 3884
somone know ?
thx
 
Lua:
if (item.itemid == 7590 and isDruid(cid) and isKnight(itemEx.uid)) or (item.itemid == 8473 and isKnight(cid) and isDruid(itemEx.uid)) then
	return false
end
 
but where i must put this
Code:
if (item.itemid == 7590 and isDruid(cid) and isKnight(itemEx.uid)) or (item.itemid == 8473 and isKnight(cid) and isDruid(itemEx.uid)) then
	return false
end
potions.lua?
 
above
Lua:
--
	if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then
		doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
		return true
	end
 
Code:
if (item.itemid == 7590 and isDruid(cid) and isKnight(itemEx.uid)) or (item.itemid == 8473 and isKnight(cid) and isDruid(itemEx.uid)) then
	return false
end
after this druid cant use gmp on druid...
 
Back
Top