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

Lua lua problem

survivor

New Member
Joined
Mar 20, 2008
Messages
89
Reaction score
4
hi,

got this script but it is not working properly. It does the exhaust but it doesn't poff or send a cancel message.. Anyone who can fix it for me?

I'm using TFS 1.0

Code:
function onCastSpell(cid, var)
if getCreatureCondition(cid, CONDITION_EXHAUST) == TRUE then
  doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
  doPlayerSendCancel(cid, "You are exhausted")
  return TRUE
end
doAddCondition(cid, exhaust)

+ for some reason it doesn't use any mana.. anyone kow how that is possible?

Code:
  <instant group="support" spellid="200" name="Super Haste" words="utani hur mort" lvl="80" mana="150" prem="1" aggressive="0" selftarget="1" exhaustion="25000" groupcooldown="2000" needlearn="0" script="attack/CV DK haste.lua">
     <vocation name="Death Knight"/>
   </instant>

thanks in advance,
 
Back
Top