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

Help with increasing PK Points


achap89
 Share

Recommended Posts

Try to comment or delete all of the current PK stuff like Call SetPlayerPK but not the function in modPlayer
and then in sub PlayerAttackPlayer add CallSetPlayerPK(attacker, GetPlayerPK(attacker) + 1) to check is this working do simple Call PlayerMsg(attacker, "pk points: " & GetPlayerPK(attacker), BrightRed) maybe necessary will be Call SendPlayerData(attacker) before msg
Link to comment
Share on other sites

Just add it to the PlayerRec, and delete all the player files.  It just saves the whole rec no need to add anything to have it save.

Ex
```
Private Type PlayerRec
    ' Account
    Login As String * ACCOUNT_LENGTH
    Password As String * NAME_LENGTH

    ' General
    Name As String * ACCOUNT_LENGTH
    Sex As Byte
    Class As Long
    Sprite As Long
    Level As Byte
    exp As Long
    Access As Byte
    PK As Byte
    Total_PK As Long

    'Guild TUT
    GuildFileId As Long
    GuildMemberId As Long

    ' Vitals
    Vital(1 To Vitals.Vital_Count - 1) As Long

    ' Stats
    Stat(1 To Stats.Stat_Count - 1) As Byte
    POINTS As Long

    ' Worn equipment
    Equipment(1 To Equipment.Equipment_Count - 1) As Long

    ' Inventory
    Inv(1 To MAX_INV) As PlayerInvRec
    Spell(1 To MAX_PLAYER_SPELLS) As Long

    ' Hotbar
    Hotbar(1 To MAX_HOTBAR) As HotbarRec

    ' Position
    Map As Long
    x As Byte
    y As Byte
    Dir As Byte
End Type

```Note the Total_Pk field.
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...