roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
Hi, im using tfs 1.2 for 8.6 and have this bug.
If i write 'exiva' and press enter, player only sai it like a msg. Same if i use 'exura sio' and press enter, player only say it life a message.
I want if player say 'exiva' or 'exura sio', it appears some message ("This player are not online.")
my exura sio:
If i write 'exiva' and press enter, player only sai it like a msg. Same if i use 'exura sio' and press enter, player only say it life a message.
I want if player say 'exiva' or 'exura sio', it appears some message ("This player are not online.")
my exura sio:
XML:
<instant group="healing" spellid="84" name="Heal Friend" words="exura sio" level="18" mana="120" premium="1" aggressive="0" blockwalls="1" needtarget="1" playernameparam="1" params="1" cooldown="1000" groupcooldown="1000" needlearn="0" script="healing/heal_friend.lua">
<vocation name="Druid" />
<vocation name="Elder Druid" />
</instant>
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
function onGetFormulaValues(player, level, magicLevel)
local min = (level / 5) + (magicLevel * 6.3) + 45
local max = (level / 5) + (magicLevel * 14.4) + 90
return min, max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant)
if creature:isPlayer() and variant:getNumber() == creature:getId() then
creature:sendCancelMessage("You can't cast this spell on yourself.")
creature:getPosition():sendMagicEffect(CONST_ME_POFF)
return false
end
creature:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
return combat:execute(creature, variant)
end