Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.04 KB | None | 0 0
  1. Public Shared Sub GetPlayerEffects(ByVal Client As GameClient)
  2.  
  3.             Dim MyDD As Mount = Client.Character.GetMount
  4.             Dim Stats As String = MyDD.EffectsToString
  5.  
  6.             If Stats <> Nothing Then
  7.  
  8.                 If Stats.Contains(",") Then
  9.  
  10.                     Dim Stat() As String = Stats.Split(",")
  11.                     For Each Effet As String In Stat
  12.                         Dim Pos() As String = Effet.Split("#")
  13.                         Dim Type As String = Convert.ToInt32(Pos(0), 16)
  14.                         Dim Value As String = Convert.ToInt32(Pos(1), 16)
  15.                         UseEffectMount(Client.Character.Player, Type, Value)
  16.                     Next
  17.  
  18.                 Else
  19.  
  20.                     Dim Pos() As String = Stats.Split("#")
  21.                     Dim Type As String = Convert.ToInt32(Pos(0), 16)
  22.                     Dim Value As String = Convert.ToInt32(Pos(1), 16)
  23.                     UseEffectMount(Client.Character.Player, Type, Value)
  24.  
  25.                 End If
  26.  
  27.             End If
  28.  
  29.         End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement