ID:145597
 
Code:
if(M.altitude==!caster.altitude)
caster << "<b><font color=red>You shoot at [M] but you are not on the same altitude so you do no damage!"


Problem description:

Does this mean is mob altitude isnt the same as the casters? If it doesnt, can someone show me wha is?
!= is the operator you're looking for.

Have a look through the reference (Hit F1 in DreamMaker)
In response to Jp
if(M.altitude!=caster.altitude)
caster << "<b><font color=red>You shoot at [M] but you are not on the same altitude so you do no damage!"

Ok i did this but it still doesnt give me anything, any help?
In response to Drakiel
Drakiel wrote:
if(M.altitude!=caster.altitude)     caster << "<b><font color=red>You shoot at [M] but you are not on the same altitude so you do no damage!"


Try getting the casters altitude before M's

if(caster.altitude!=M.altitude)     caster << "<b><font color=red>You shoot at [M] but you are not on the same altitude so you do no damage!"


That should work
In response to Drakiel
Then the problem must be somewhere else.
Before the if(), put in the following lines:
world << "caster is [caster], at altitude [caster.altitude]"
world << "M is [M], at altitude [M.altitude]"


That will tell us who is who, and what their altitudes are. That will show us if you've made a mistake and somehow M or caster is wrong, or if you've made a mistake and somehow their altitudes match.