WebRPG
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

WebRPG


 
InícioInício  PortalPortal  Últimas imagensÚltimas imagens  ProcurarProcurar  RegistarRegistar  EntrarEntrar  

 

 Atributos Maximos [Origins 2.0]

Ir para baixo 
2 participantes
AutorMensagem
FuckStyle

FuckStyle


Mensagens : 23
Data de inscrição : 07/12/2011

Atributos Maximos [Origins 2.0] Empty
MensagemAssunto: Atributos Maximos [Origins 2.0]   Atributos Maximos [Origins 2.0] I_icon_minitimeQua Dez 07, 2011 2:50 am

Neste tutorial voce podera editar os atributos maximos da engine Eclipse origins , que normalmente é 255 Razz

No Client~Side procure por:

Código:
If GetPlayerStat(Index, x) <255 Then

ou

Código:
If GetPlayerStat(Index, x) < 250 Then

e mude para:

Código:
If GetPlayerStat(Index, x) < MAX_LONG Then

dps procure por:

Código:
If Index > MAX_PLAYERS Then Exit Sub
    If Value <= 0 Then Value = 1
    If Value > MAX_BYTE Then Value = MAX_BYTE
    Player(Index).Stat(Stat) = Value

e mude para:

Código:
If Index > MAX_PLAYERS Then Exit Sub
    If Value <= 0 Then Value = 1
    If Value > MAX_LONG Then Value = MAX_LONG
    Player(Index).Stat(Stat) = Value

dps na Private Type PlayerRec procure por:

Código:
Stat(1 To Stats.Stat_Count - 1) As Byte

e mude para:

Código:
Stat(1 To Stats.Stat_Count - 1) As Long

Client~Side terminado, agora no Server~Side procure por:

Código:
If GetPlayerRawStat(Index, PointType) >= 255 Then

ou

Código:
If GetPlayerRawStat(Index, PointType) >= 250 Then

e mude para:

Código:
If GetPlayerRawStat(Index, PointType) >= MAX_LONG Then

Agora no final da modConstants adicione:

Código:
'values
Public Const MAX_BYTE As Byte = 255
Public Const MAX_INTEGER As Integer = 32767
Public Const MAX_LONG As Long = 2147483647

dps na Private Type PlayerRec procure por:

Código:
Stat(1 To Stats.Stat_Count - 1) As Byte

e mude para:

Código:
Stat(1 To Stats.Stat_Count - 1) As Long

Creditos ~~
Thales12
FuckStyle
Ir para o topo Ir para baixo
シャイニング
Administrador
Administrador
シャイニング


Mensagens : 19
Data de inscrição : 19/11/2011
Idade : 27
Localização : Fortaleza-ceará

Atributos Maximos [Origins 2.0] Empty
MensagemAssunto: Muito Bom   Atributos Maximos [Origins 2.0] I_icon_minitimeQua Dez 07, 2011 2:57 am

Belo tutorial,obrigado por contribuir com o fórum,continue assim tongue
Ir para o topo Ir para baixo
http://www.webrpg.directorioforuns.com
 
Atributos Maximos [Origins 2.0]
Ir para o topo 
Página 1 de 1
 Tópicos semelhantes
-
» Download Eclipse Origins

Permissões neste sub-fórumNão podes responder a tópicos
WebRPG :: Eclipse Origins :: Tutoriais Eclipse Origins-
Ir para: