Hello i'm making a own spell..
What I try to do is that when you have a enchanted weapon on fire in the hands, the spells will hit of fire and physical, but if you do not have any weapon enchanted on fire it will hit only physical.
Here is the script
This only hit physical damages "WHY?"
I think is the function "getPlayerSlotItem" because it works with other functions like "getPlayerLevel" or "getPlayerMagLevel"....
"SORRY MY BAD ENGLISH"
What I try to do is that when you have a enchanted weapon on fire in the hands, the spells will hit of fire and physical, but if you do not have any weapon enchanted on fire it will hit only physical.
Here is the script
Code:
local fireWeapons = 7750 or 7754 or 7747 or 7745 or 7746 or 7756 or 7752 or 7784 or 7758 or 7751 or 7744 or 7757 or 7749 or 7755 or 7753
function onCastSpell(cid, var)
if getPlayerSlotItem(cid, 5) == fireWeapons then
doCombat(cid, combatNone, var)
doCombat(cid, combatFire, var)
else
doCombat(cid, combatNone, var)
end
return TRUE
end
This only hit physical damages "WHY?"
I think is the function "getPlayerSlotItem" because it works with other functions like "getPlayerLevel" or "getPlayerMagLevel"....
"SORRY MY BAD ENGLISH"
Last edited: