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

How to make …..evolution


Zopto
 Share

Recommended Posts

Public Sub SendRequestLevelUp()
Dim Buffer As clsBuffer

    ' If debug mode, handle error then exit out
    If Options.Debug = 1 Then On Error GoTo errorhandler

    Set Buffer = New clsBuffer
    Buffer.WriteLong CRequestLevelUp
    SendData Buffer.ToArray()
    Set Buffer = Nothing

    ' Error handler
    Exit Sub
errorhandler:
    HandleError "SendRequestLevelUp", "modClientTCP", Err.Number, Err.Description, Err.Source, Err.HelpContext
    Err.Clear
    Exit Sub
End Sub
here???
Link to comment
Share on other sites

@Zopto:

> Public Sub SendRequestLevelUp()
> Dim Buffer As clsBuffer
>
>     ' If debug mode, handle error then exit out
>     If Options.Debug = 1 Then On Error GoTo errorhandler
>    
>     Set Buffer = New clsBuffer
>     Buffer.WriteLong CRequestLevelUp
>     SendData Buffer.ToArray()
>     Set Buffer = Nothing
>    
>     ' Error handler
>     Exit Sub
> errorhandler:
>     HandleError "SendRequestLevelUp", "modClientTCP", Err.Number, Err.Description, Err.Source, Err.HelpContext
>     Err.Clear
>     Exit Sub
> End Sub
> here???

No, its server side : HandleRequestLevelUp
Link to comment
Share on other sites

Sub HandleRequestLevelUp(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
    SetPlayerExp Index, GetPlayerNextLevel(Index)
    CheckPlayerLevelUp Index
End Sub
ok i found what now??
Link to comment
Share on other sites

and i went to set example to:caracter 1-evolue in sprite 3
                                              caracter 2-evolue in sprite 2
                                              caracter 3 evolue in sprite 1
how that???
Link to comment
Share on other sites

Basically something such as this would work:

```
Select Case Player(Index).Level
    Case 15 ' Level 15
          SetPlayerSprite(Index, SpriteNumHere)

    Case 30 ' Level 30
          SetPlayerSprite(Index, SpriteNumHere)
End Select

```And so on. Note that this is NOT divided by class, and you'd need to do that yourself.
Link to comment
Share on other sites

@Yami:

> Basically something such as this would work:
>
> ```
> Select Case Player(Index).Level
>     Case 15 ' Level 15
>           SetPlayerSprite(Index, SpriteNumHere)
>
>     Case 30 ' Level 30
>           SetPlayerSprite(Index, SpriteNumHere)
> End Select
>
> ```And so on. Note that this is NOT divided by class, and you'd need to do that yourself.

always with the good work yami.
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...