Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Fix trade request when dying  (Visto 1632 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline Denis Alves Posteado: February 05, 2021, 01:35:41 PM | Modificado: February 05, 2021, 01:54:04 PM by Denis Alves

  • C++ Coder
  • +2 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 270
  • Gracias recibida: 6599
  • br
Voltando aqui novamente para deixar esse fix que servirá para todos evitarem dores de cabeça no seu servidor.

Na source do GameServer, em Trade.cpp, procure por "void CTrade::CGTradeRequestRecv(PMSG_TRADE_REQUEST_RECV* lpMsg,int aIndex)", e logo em baixo de "LPOBJ lpTarget = &gObj[bIndex];" adicione:



no mesmo arquivo procure por "void CTrade::CGTradeResponseRecv(PMSG_TRADE_RESPONSE_RECV* lpMsg,int aIndex)" e logo em baixo de "LPOBJ lpTarget = &gObj[bIndex];", adicione:



Créditos: Denis Alves.


Offline herjuni #1 Posteado: February 05, 2021, 01:48:58 PM

  • C++ Coder
  • -1 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 225
  • Gracias recibida: 2017
  • bo
Trade.cpp(242): error C2065: 'lpTarget' : identificador no declarado


Offline Denis Alves #2 Posteado: February 05, 2021, 01:54:53 PM

  • C++ Coder
  • +2 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 270
  • Gracias recibida: 6599
  • br
Trade.cpp(242): error C2065: 'lpTarget' : identificador no declarado

Fiz uma pequena alteração no passo-a-passo da mensagem inicial. Obrigado pelo aviso.

Obs.: em void CTrade::CGTradeRequestRecv(PMSG_TRADE_REQUEST_RECV* lpMsg,int aIndex) // OK colocar a verificação a baixo de : LPOBJ lpTarget = &gObj[bIndex];

Gracias:


Offline herjuni #3 Posteado: February 05, 2021, 02:18:39 PM

  • C++ Coder
  • -1 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 225
  • Gracias recibida: 2017
  • bo

Offline Denis Alves #4 Posteado: February 05, 2021, 02:29:10 PM

  • C++ Coder
  • +2 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 270
  • Gracias recibida: 6599
  • br
incomplete code..

envia foto do erro (mesmo eu sabendo que não está errado.)

Gracias:


Offline Denis Alves #5 Posteado: February 05, 2021, 02:34:11 PM

  • C++ Coder
  • +2 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 270
  • Gracias recibida: 6599
  • br
Fotos do código implementado.




Gracias:


Offline emersonx13 #6 Posteado: February 05, 2021, 02:45:17 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • 3D Maker
  • 0 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 523
  • Gracias recibida: 33305
  • br
Yo buscava por eso, gracias!
 cool2

Donate for my Work

BTC: 1HnXqN1wAh3EUC2Gi4WVH5Cj8fmihgeQze

Gracias:


Offline Denis Alves #7 Posteado: February 05, 2021, 02:52:17 PM

  • C++ Coder
  • +2 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 270
  • Gracias recibida: 6599
  • br
Yo buscava por eso, gracias!
 cool2

Também serve pro party system viu kk

Gracias:


Offline ConejoMalo #8 Posteado: February 05, 2021, 04:49:09 PM

  • +1 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 754
  • Gracias recibida: 6711
  • ar
no entiendo nada lo que dice el man, alguien que tradusca para que sirve eso?

Servicios de  Reparacion de bug Files Muemu, desde source y agregados Custom, soporte de configuracion.

Offline Denis Alves #9 Posteado: February 05, 2021, 05:34:39 PM

  • C++ Coder
  • +2 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 270
  • Gracias recibida: 6599
  • br
no entiendo nada lo que dice el man, alguien que tradusca para que sirve eso?

Se o título do tópico não deixa esclarecido o que é então o problema está entre a cadeira e o computador...

Gracias:


Offline emersonx13 #10 Posteado: February 05, 2021, 05:43:17 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • 3D Maker
  • 0 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 523
  • Gracias recibida: 33305
  • br
no entiendo nada lo que dice el man, alguien que tradusca para que sirve eso?

Are you kiding me?
This is a fix from Update 21 bro.
You don't seem to have much knowledge about mu online...
 aplausos

Donate for my Work

BTC: 1HnXqN1wAh3EUC2Gi4WVH5Cj8fmihgeQze

Online ZabiinoOo #11 Posteado: February 05, 2021, 08:28:06 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 7.314
  • Gracias recibida: 126211
  • pe
no entiendo nada lo que dice el man, alguien que tradusca para que sirve eso?

Eso es para fixear el bug que hay en muemu que al morir pueden darte trade y queda un cartel bugueado




Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Gracias:


Offline samsunggon #12 Posteado: February 06, 2021, 03:56:34 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 434
  • Gracias recibida: 1342
  • ph
trade 1st
then PK other.
bug still there :D


DISCORD: valentino1515


Offline Denis Alves #13 Posteado: February 06, 2021, 04:54:07 AM | Modificado: February 06, 2021, 05:07:51 AM by Denis Alves

  • C++ Coder
  • +2 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 270
  • Gracias recibida: 6599
  • br
trade 1st
then PK other.
bug still there :D

the fix is "no trade invitations when the character is murdered, killed" if you have any other problem related to pk then you can use the formula above or analyze how it happens and apply another solution. however, the code above works according to the topic title. Att.


Offline admmunowar #14 Posteado: February 13, 2021, 11:12:34 AM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 144
  • Gracias recibida: 4895
  • br
Trade.cpp(242): error C2065: 'lpTarget' : identificador no declarado

Fiz uma pequena alteração no passo-a-passo da mensagem inicial. Obrigado pelo aviso.

Obs.: em void CTrade::CGTradeRequestRecv(PMSG_TRADE_REQUEST_RECV* lpMsg,int aIndex) // OK colocar a verificação a baixo de : LPOBJ lpTarget = &gObj[bIndex];

Citar
1>------ Build started: Project: GameServer, Configuration: Release_EX603 Win32 ------
1>Build started 13/02/2021 13:11:52.
1>InitializeBuildStatus:
1>  Touching "Release\GameServer_EX603\GameServer.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  Trade.cpp
1>Trade.cpp(137): error C2084: function 'void CTrade::CGTradeRequestRecv(PMSG_TRADE_REQUEST_RECV *,int)' already has a body
1>          c:\users\root-pc\desktop\source_tsh-yoshi\source tsh-yoshi\server\gameserver\gameserver\Trade.h(106) : see previous definition of 'CGTradeRequestRecv'
1>Trade.cpp(138): error C2065: 'lpTarget' : undeclared identifier
1>Trade.cpp(138): error C2227: left of '->DieRegen' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(138): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(138): error C2227: left of '->DieRegen' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(140): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(140): error C2227: left of '->Index' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(145): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(145): error C2227: left of '->PKLevel' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(147): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(147): error C2227: left of '->Index' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(165): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(165): error C2227: left of '->Interface' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(165): error C2228: left of '.use' must have class/struct/union
1>Trade.cpp(176): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(176): error C2227: left of '->X' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(176): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(176): error C2227: left of '->X' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(176): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(176): error C2227: left of '->Y' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(176): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(176): error C2227: left of '->Y' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(182): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(182): error C2227: left of '->PShopOpen' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(212): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(212): error C2227: left of '->DieRegen' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(214): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(214): error C2227: left of '->Index' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(240): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(240): error C2227: left of '->Interface' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(240): error C2228: left of '.use' must have class/struct/union
1>Trade.cpp(241): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(241): error C2227: left of '->Interface' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(241): error C2228: left of '.type' must have class/struct/union
1>Trade.cpp(242): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(242): error C2227: left of '->Interface' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(242): error C2228: left of '.state' must have class/struct/union
1>Trade.cpp(243): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(243): error C2227: left of '->InterfaceTime' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(244): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(244): error C2227: left of '->TargetNumber' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(252): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(252): error C2227: left of '->Name' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(258): error C2065: 'bIndex' : undeclared identifier
1>Trade.cpp(268): error C2601: 'CTrade::CGTradeMoneyRecv' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(323): error C2601: 'CTrade::CGTradeOkButtonRecv' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(493): error C2601: 'CTrade::CGTradeCancelButtonRecv' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(528): error C2601: 'CTrade::GCTradeRequestSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(539): error C2601: 'CTrade::GCTradeResponseSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(556): error C2601: 'CTrade::GCTradeItemDelSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(567): error C2601: 'CTrade::GCTradeItemAddSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(580): error C2601: 'CTrade::GCTradeMoneySend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(591): error C2601: 'CTrade::GCTradeOkButtonSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(602): error C2601: 'CTrade::GCTradeResultSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(611): fatal error C1075: end of file found before the left brace '{' at 'Trade.cpp(256)' was matched
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.61
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Copyright Pro-Yoshi Ms-Emulator © 2021

Offline Denis Alves #15 Posteado: February 13, 2021, 11:44:23 AM

  • C++ Coder
  • +2 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 270
  • Gracias recibida: 6599
  • br
Trade.cpp(242): error C2065: 'lpTarget' : identificador no declarado

Fiz uma pequena alteração no passo-a-passo da mensagem inicial. Obrigado pelo aviso.

Obs.: em void CTrade::CGTradeRequestRecv(PMSG_TRADE_REQUEST_RECV* lpMsg,int aIndex) // OK colocar a verificação a baixo de : LPOBJ lpTarget = &gObj[bIndex];

Citar
1>------ Build started: Project: GameServer, Configuration: Release_EX603 Win32 ------
1>Build started 13/02/2021 13:11:52.
1>InitializeBuildStatus:
1>  Touching "Release\GameServer_EX603\GameServer.unsuccessfulbuild".
1>ClCompile:
1>  All outputs are up-to-date.
1>  Trade.cpp
1>Trade.cpp(137): error C2084: function 'void CTrade::CGTradeRequestRecv(PMSG_TRADE_REQUEST_RECV *,int)' already has a body
1>          c:\users\root-pc\desktop\source_tsh-yoshi\source tsh-yoshi\server\gameserver\gameserver\Trade.h(106) : see previous definition of 'CGTradeRequestRecv'
1>Trade.cpp(138): error C2065: 'lpTarget' : undeclared identifier
1>Trade.cpp(138): error C2227: left of '->DieRegen' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(138): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(138): error C2227: left of '->DieRegen' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(140): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(140): error C2227: left of '->Index' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(145): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(145): error C2227: left of '->PKLevel' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(147): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(147): error C2227: left of '->Index' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(165): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(165): error C2227: left of '->Interface' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(165): error C2228: left of '.use' must have class/struct/union
1>Trade.cpp(176): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(176): error C2227: left of '->X' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(176): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(176): error C2227: left of '->X' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(176): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(176): error C2227: left of '->Y' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(176): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(176): error C2227: left of '->Y' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(182): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(182): error C2227: left of '->PShopOpen' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(212): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(212): error C2227: left of '->DieRegen' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(214): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(214): error C2227: left of '->Index' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(240): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(240): error C2227: left of '->Interface' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(240): error C2228: left of '.use' must have class/struct/union
1>Trade.cpp(241): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(241): error C2227: left of '->Interface' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(241): error C2228: left of '.type' must have class/struct/union
1>Trade.cpp(242): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(242): error C2227: left of '->Interface' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(242): error C2228: left of '.state' must have class/struct/union
1>Trade.cpp(243): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(243): error C2227: left of '->InterfaceTime' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(244): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(244): error C2227: left of '->TargetNumber' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(252): error C2065: 'lpObj' : undeclared identifier
1>Trade.cpp(252): error C2227: left of '->Name' must point to class/struct/union/generic type
1>          type is ''unknown-type''
1>Trade.cpp(258): error C2065: 'bIndex' : undeclared identifier
1>Trade.cpp(268): error C2601: 'CTrade::CGTradeMoneyRecv' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(323): error C2601: 'CTrade::CGTradeOkButtonRecv' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(493): error C2601: 'CTrade::CGTradeCancelButtonRecv' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(528): error C2601: 'CTrade::GCTradeRequestSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(539): error C2601: 'CTrade::GCTradeResponseSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(556): error C2601: 'CTrade::GCTradeItemDelSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(567): error C2601: 'CTrade::GCTradeItemAddSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(580): error C2601: 'CTrade::GCTradeMoneySend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(591): error C2601: 'CTrade::GCTradeOkButtonSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(602): error C2601: 'CTrade::GCTradeResultSend' : local function definitions are illegal
1>          Trade.cpp(256): this line contains a '{' which has not yet been matched
1>Trade.cpp(611): fatal error C1075: end of file found before the left brace '{' at 'Trade.cpp(256)' was matched
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.61
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Verifique o tutorial mais uma vez, você está fazendo a chamada de uma função existente sem a necessidade.

Gracias:


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
4 Replies
1229 Views
Last post August 13, 2018, 07:32:33 PM
by Cloud
0 Replies
683 Views
Last post August 02, 2019, 07:32:37 AM
by fukpim
2 Replies
683 Views
Last post October 09, 2020, 05:34:18 AM
by chaprao
4 Replies
525 Views
Last post October 21, 2020, 06:02:15 PM
by lunaticodeveloper
0 Replies
1006 Views
Last post February 05, 2021, 11:56:28 PM
by emersonx13