pman Posted May 25, 2009 Author Share Posted May 25, 2009 Is there away I can make all the maps be pvp with to classes like If I made a class archer and one warrior could I make it so warriors could attack archers but couldnt attack warriors Link to comment Share on other sites More sharing options...
Kainan54 Posted May 25, 2009 Share Posted May 25, 2009 i belive i saw a script that would do this im going to try and find it… Link to comment Share on other sites More sharing options...
Kainan54 Posted May 25, 2009 Share Posted May 25, 2009 @Ghost:> ```> Sub OnAttack(Index, Damage)> Dim Target> > If Int(Damage) > 0 Then> If Int(GetPlayerTarget(Index)) > 0 Then> Target = GetPlayerTarget(Index)> If(GetPlayerClass(Target)<>GetPLayerClass(Index) Then> Call DamagePlayer(Index, Target, Damage)> End If> Else> Target = GetPlayerTargetNPC(Index)> Call DamageNPC(Index, Target, Damage)> End If> End If> End Sub> ```> I'm not sure if <> is the right way to do "not equal to" but I think it is. And that should be all you need…yes since i dont post often i was able to find it by looking through profile. this is not my script but the quotes should show that so yea… Link to comment Share on other sites More sharing options...
pman Posted May 25, 2009 Author Share Posted May 25, 2009 ok thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now