Albanon
New Member
- Joined
- Mar 5, 2011
- Messages
- 93
- Reaction score
- 1
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
function onCastSpell(cid, var)
if isPlayer(cid) == TRUE then
if exhaustion.check(cid, 30030) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "your target is: " .. getCreaturePos(var))
return true
end
end
return doCombat(cid, combat, var)
end
I just want the player to cast a spell and get a player position
exiva res "person
then it should return the result
This loads, but it doesn't do anything.
im using this https://otland.net/threads/8-60-the-forgotten-server-0-3-6-crying-damson-v8.147913/
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
function onCastSpell(cid, var)
if isPlayer(cid) == TRUE then
if exhaustion.check(cid, 30030) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "your target is: " .. getCreaturePos(var))
return true
end
end
return doCombat(cid, combat, var)
end
I just want the player to cast a spell and get a player position
exiva res "person
then it should return the result
This loads, but it doesn't do anything.
im using this https://otland.net/threads/8-60-the-forgotten-server-0-3-6-crying-damson-v8.147913/