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

Is there a pvp high score list script


deathtaker26
 Share

Recommended Posts

Ahh, it was the reputation system that needed to be debugged (kill good NPCs, reputation goes down; kill evil npcs, reputation goes up).
Anyway, the highscore system I have is a pvp highscore thing; not a top-5 lvl thing.  Though a top-5 level highscore system wouldn't be that hard to create..  I could take a wing at it if nobody else wants to try it.
Link to comment
Share on other sites

Well, I just took unknown's Level script and modified it. No, I didn't make this.

```
Sub ShowPvPLadder(index)
  'Generate the ladder
  Set PlayerList = CreateObject( "System.Collections.ArrayList" )
  For CurPlayer = 1 To GetMaxPlayers
      If IsPlaying(CurPlayer) Then
        For Each Player In PlayerList
            If GetPlayerPK(CurPlayer) >= GetPlayerPK(Player) Then
              Call PlayerList.Insert(PlayerList.LastIndexOf(Player), CurPlayer)
              Exit For
            End If
        Next
        If Not PlayerList.Contains(CurPlayer) Then PlayerList.Add(CurPlayer)
      End If
  Next

  'Display the ladder
  Call PlayerMsg(index, "-----ONLINE PK LADDER-----", GREEN)
  For Each Player In PlayerList
      LadderName = GetPlayerName(Player)
      LadderLevel = GetPlayerPK(Player)
      Call PlayerMsg(index, PlayerList.LastIndexOf(Player)+1 & ". " & LadderName & " - PK " & LadderLevel, YELLOW)
  Next
End Sub

```
Then have a command:

```
Case "/showpvpladder"
Call ShowPvPLadder(index)
```
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...