If I understand well your plans, you'll need to verify your primary spell starter. That means the file that will initialize a spell and add an entry as if player is in this area there is no dmg. Then you'll need to open your combat starter (the file used to assign a hitscript or even the melee dmg) and add the above command lines to your script.
Exemple:
//That is used as a check
Code:
If(IsInThisArea(mobile))
SendSysMessage(mobile, "Damage is not allowed in this part of the World");
return;
Endif
The Function
Code:
Function IsInThisArea( who ) //You can name it as you want
// Minoc Mine rectangle locations
if( who.x >= 2554 ) //Minimum X
if( who.x <2594>= 503 ) //Maximum Y
if( who.y <= 442 ) //Minimum Y
return 1;
endif
endif
endif
else
return 0;
endif
EndFunction
Of course, you'll need to add a check for everything that apply a dammage. That's why it would be much easier for you using a specific function to apply the dammage that would be used by every system that would apply dmg... and then you add a simple check. Thank you Distro097.
