dangerangel2140
New Member
- Joined
- Jul 30, 2009
- Messages
- 8
- Reaction score
- 0
Is there a way to turn the heal party spell (utura mas sio) into a single target heal friend type spell?
I tried removing
from the data/spells/scripts/party/heal.lua
But when I do that it pretty much does nothing, doesn't show the words of the spell cast but doesn't give an error or a "You don't have enough mana" or "No party members in range." type message either. Any ideas?
I tried removing
Code:
local membersList = getPartyMembers(cid)
if(membersList == nil or type(membersList) ~= 'table' or table.maxn(membersList) <= 1) then
doPlayerSendCancel(cid, "No party members in range.")
doSendMagicEffect(pos, CONST_ME_POFF)
return LUA_ERROR
end
local affectedList = {}
for _, pid in ipairs(membersList) do
if(getDistanceBetween(getCreaturePosition(pid), pos) <= 36) then
table.insert(affectedList, pid)
end
end
local tmp = table.maxn(affectedList)
if(tmp <= 1) then
doPlayerSendCancel(cid, "No party members in range.")
doSendMagicEffect(pos, CONST_ME_POFF)
return LUA_ERROR
end
But when I do that it pretty much does nothing, doesn't show the words of the spell cast but doesn't give an error or a "You don't have enough mana" or "No party members in range." type message either. Any ideas?