EDIT: I forgot the NPC check fixed now
The flags should be there as ztype in the zone table, but not all the code is complete.
There are two types of zone restricted spells
1 Sow spells
2 Growth spells
Well three if you count bind but it isn't really restricted in the spell data, It's likely hard coded on live like it is on emu. Someone with live access needs to check if they are checked server side or local, are they sending a stringid message or not. If they aren't we need to have a closer look at the ~150 bytes of unknowns in the NewZone packet.
Anyways i ramble, Localy i'm using
ztype = 0 As outdoor
ztype & 1 as indoor
What do you need a plane flag for, that the min_level doesn't cover? And could someone tell me the limits on growth?
edit aggro.cpp line ~1189, first line of CheckLosFN()
if (zone->newzone_data.ztype == 0) // An outdoor zone always has line of sight
return true;
edit spells.cpp line ~368, just below the mana check
if (
!IsNPC()
&& (zone->newzone_data.ztype &1)
&& spells[spell_id].zonetype==1
)
{
Message_StringID(MT_Spells,234);
InterruptSpell();
return;
}
Last edited by Bigpull; 02-06-2005 at 10:42 AM..
|