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

Another N00bish Question


castleofwarriors
 Share

Recommended Posts

For EO, find this server-side. It is located in modCombat>Function CanPlayerAttackPlayer:

```
' Make sure attacker is high enough level
    If GetPlayerLevel(Attacker) < 5 Then
        Call PlayerMsg(Attacker, "You are below level 5, you cannot attack another player yet!", BrightRed)
        Exit Function
    End If

    ' Make sure victim is high enough level
    If GetPlayerLevel(Victim) < 5 Then
        Call PlayerMsg(Attacker, GetPlayerName(Victim) & " is below level 5, you cannot attack this player yet!", BrightRed)
        Exit Function
    End If
```
If I remember correctly, the two 5's were 10's. All you need to do is change the 2 numbers to suit your level cap.
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...