diff options
author | Matheus Macabu <mkbu95@gmail.com> | 2013-06-15 03:25:38 -0300 |
---|---|---|
committer | Matheus Macabu <mkbu95@gmail.com> | 2013-06-15 03:25:38 -0300 |
commit | b745cb176a16e771bf5bbae43a7445cf160d1342 (patch) | |
tree | 48bc1d0fb831d679c4666f70e3acd92e6ed01ddd /src/map/clif.c | |
parent | 634bcc63b7adff53d817c19195c4060170eeecfc (diff) | |
download | hercules-b745cb176a16e771bf5bbae43a7445cf160d1342.tar.gz hercules-b745cb176a16e771bf5bbae43a7445cf160d1342.tar.bz2 hercules-b745cb176a16e771bf5bbae43a7445cf160d1342.tar.xz hercules-b745cb176a16e771bf5bbae43a7445cf160d1342.zip |
- HPM: Added trade interface;
- Moved PARTY_RECRUIT definition to mmo.h to avoid segfault;
- Check if item is already at maximum refine;
- Fixed that @reloadscript with one npc bug (thanks to akinari).
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 2feb6f4bf..23501d370 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11041,7 +11041,7 @@ void clif_parse_TradeRequest(int fd,struct map_session_data *sd) return; } - trade_traderequest(sd,t_sd); + trade->request(sd,t_sd); } @@ -11052,7 +11052,7 @@ void clif_parse_TradeRequest(int fd,struct map_session_data *sd) /// 4 = rejected void clif_parse_TradeAck(int fd,struct map_session_data *sd) { - trade_tradeack(sd,RFIFOB(fd,2)); + trade->ack(sd,RFIFOB(fd,2)); } @@ -11064,9 +11064,9 @@ void clif_parse_TradeAddItem(int fd,struct map_session_data *sd) int amount = RFIFOL(fd,4); if( index == 0 ) - trade_tradeaddzeny(sd, amount); + trade->addzeny(sd, amount); else - trade_tradeadditem(sd, index, (short)amount); + trade->additem(sd, index, (short)amount); } @@ -11074,7 +11074,7 @@ void clif_parse_TradeAddItem(int fd,struct map_session_data *sd) /// 00eb void clif_parse_TradeOk(int fd,struct map_session_data *sd) { - trade_tradeok(sd); + trade->ok(sd); } @@ -11082,7 +11082,7 @@ void clif_parse_TradeOk(int fd,struct map_session_data *sd) /// 00ed void clif_parse_TradeCancel(int fd,struct map_session_data *sd) { - trade_tradecancel(sd); + trade->cancel(sd); } @@ -11090,7 +11090,7 @@ void clif_parse_TradeCancel(int fd,struct map_session_data *sd) /// 00ef void clif_parse_TradeCommit(int fd,struct map_session_data *sd) { - trade_tradecommit(sd); + trade->commit(sd); } |