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

PVP/GUILD HELP!!! (should be easy)


Recommended Posts

Should be possible.
Make sure you have a guild named "Archers" and another guild named "Warriors".

Assume the Warriors are Class0 and the Archers are Class1, put this in your OnNewChar sub:
```
Dim Class
Class = GetPlayerClass(index)
Select Case Class
Case 0 ' Class0
Call SetPlayerGuild(Index, "Warriors")
Case 1 ' Class1
Call SetPlayerGuild(Index, "Archers")
End Select
```
Link to comment
Share on other sites

yea but if hes trying to prevent the class from fighting each other and they left the guild they could do that, then just keep leaving every time they log in. I agree with you that the join thing is a good idea, but it doesnt solve the problem
Link to comment
Share on other sites

If he wants to prevent the classes from fighting each other, couldn't you just paste this at the top of the OnAttack?:
```
If GetPlayerClass(Index) = GetPlayerClass(GetPlayerTarget(Index)) Then
Call PlayerMsg(Index, "You cannot attack someone of the same class", RED)
Exit Sub
End If
```
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...