|
I'd do something like a list of maps where pots/skills are not allowed. Then in your item usage code, check if they are on a map that cannot use pots on and if so, do not remove item and simply return;
Same for skills. Check if they can use skills on that map and if not, don't let them use anything except ss/fb.
Personally I'd do something more like an enum for SkillUsage on a map so that you can permit very specific things.
Eg
if(Program.Maps[CLient.Map].Skilluse = Enum.OnlyFbSs)
if(SkillId != (ushort)SkillType.Ss || SKillId != (ushort)SkillType.Fb)
return;
Would be the most efficient way to write your map permissions as far as I can tell.
Requires alot of re-writing to do things that way but will save you time in the long run (aka how I plan to write mine)
|