1 Corrigindo erros no Trade e Banco Ter 01 Jan 2013, 22:36
Halt
Administrador
Valentine escreveu:No trade você pode trocar uma quantidade 0 de dinheiro. No banco você pode depositar ou sacar uma quantidade 0 de dinheiro. Não da erro no cliente ou servidor, mas não seria uma coisa muito boa deixar que isso aconteça.
Abra o Servidor
1 - No modHandleData, dentro de
- Código:
Sub HandleTradeItem
2 - Procure por:
- Código:
' make sure they have the amount they offer
If amount < 0 Or amount > GetPlayerInvItemValue(index, invSlot) Then
Exit Sub
End If
3 - Embaixo adicione:
- Código:
If Item(itemNum).Type = ITEM_TYPE_CURRENCY Then
If amount < 1 Then Exit Sub
End If
4 - No modPlayer, dentro de
- Código:
Sub GiveBankItem
5 - Procure por:
- Código:
If amount < 0 Or amount > GetPlayerInvItemValue(index, invSlot) Then
Exit Sub
End If
6 - Embaixo adicione:
- Código:
If Item(GetPlayerInvItemNum(index, invSlot)).Type = ITEM_TYPE_CURRENCY Then
If amount < 1 Then Exit Sub
End If
7 - Ainda em modPlayer, dentro de
- Código:
Sub TakeBankItem
8 - Procure por:
- Código:
If amount < 0 Or amount > GetPlayerBankItemValue(index, BankSlot) Then
Exit Sub
End If
9 - Embaixo adicione:
- Código:
If Item(GetPlayerBankItemNum(index, BankSlot)).Type = ITEM_TYPE_CURRENCY Then
If amount < 1 Then Exit Sub
End If
Créditos:
Valentine