Npc Help?

09/20/2010 21:32 biohazardous#1
Well im new at this and i have no idea what im doing but i messed up i cant put what i did because i just deleted it all i tried to make an npc that makes people fight
Heres exactly what he's SUPPOSED to do but i need help i just started so i dont know what im doing
1. Get 2 people 1 vs 1
2. both go to npc each pay 100k cps
3. teleports them to .Arcos release of the ship map(i dont know how to put in the source)
4. makes them fight to death(no pot,changing weapons, and only allowed to use fb/ss<--this i had trouble with)
5.Winner gets 200k cps loser gets nothing
PLz if anyone could help me i know how to not allow them to use pots and change weapons but im having trouble with the teleportation and the disabling of the skills.
Plz if anyone could help me id be very grateful because i have alot to fix and add
09/20/2010 22:18 pro4never#2
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)
09/20/2010 23:08 biohazardous#3
Quote:
Originally Posted by pro4never View Post
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)
Where do i put this in the ship map?