Matheus Vieira
Member
- Joined
- Apr 11, 2015
- Messages
- 98
- Reaction score
- 5
Good night everyone, i am here to ask for a spell that's do the following:
The spell removes the player's summon
Then, it gets the summon's health and convert for the player.
So, if the summon has 100 health but looses 10 and the player cast the spell, it removes the summon and heals 90 health of the player.
I have a spell that removes the summons, if it help:
Thank you guys and wash your hands
The spell removes the player's summon
Then, it gets the summon's health and convert for the player.
So, if the summon has 100 health but looses 10 and the player cast the spell, it removes the summon and heals 90 health of the player.
I have a spell that removes the summons, if it help:
C++:
local effect = 10
function onCastSpell(cid, var)
summons = getCreatureSummons(cid)
for _, summon in pairs(summons) do
doSendMagicEffect(getThingPos(summon), effect)
doRemoveCreature(summon)
end
return true
end