Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Pvp


pman
 Share

Recommended Posts

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

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...