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

Spell Drunk Rune

Slave Ots

LUA Newbie™
Joined
Jan 19, 2012
Messages
114
Reaction score
32
Location
/goto Slave Ots
hello
i found this script but i done who made it. but i just decided to share it
it use on players. like sd or paralyze runes

Code:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 5000)
 
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_CRAPS)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POISON)
 
local condition = createConditionObject(CONDITION_DRUNK)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, condition)
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
		if not hasCondition(cid, CONDITION_EXHAUST) then 
			local target = getCreatureTarget(cid)
			if target ~= 0 then
				doAddCondition(cid, exhaust)
				doCombat(cid, combat, numberToVariant(target))
				doRemoveItem(item.uid, 1)
			else
				doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUCANONLYUSEITONCREATURES)
			end
		else
			doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
	end
	return true
end
king regards
slave ots
 
Last edited:
and add it in spell.xml
Code:
<rune name="Ruleta" id="2282" allowfaruse="1" charges="25" mana="1" lvl="1" maglv="1" exhaustion="4000" blocktype="solid" script="intoxicatetarget.lua"/>

and is not affected to play Rune
 
Back
Top