summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-10-02 10:40:58 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-10-02 10:40:58 +0000
commitace84beb9ef458b49d2c502c13f70c1aa6cc5da3 (patch)
tree7c034cb33f3c2c317a3acb98f44adc34b53d5df5 /src/game.cpp
parentcc2cf7a80788b725b5ce4ba616969172c62e9f8b (diff)
downloadmana-ace84beb9ef458b49d2c502c13f70c1aa6cc5da3.tar.gz
mana-ace84beb9ef458b49d2c502c13f70c1aa6cc5da3.tar.bz2
mana-ace84beb9ef458b49d2c502c13f70c1aa6cc5da3.tar.xz
mana-ace84beb9ef458b49d2c502c13f70c1aa6cc5da3.zip
*** empty log message ***
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 2cda6426..52f8e5c4 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -410,6 +410,7 @@ void do_parse() {
break;
// Monster moving
case 0x007b:
+ case 0x01da:
node = find_node(RFIFOL(2));
if(node==NULL) {
node = create_node();
@@ -428,7 +429,7 @@ void do_parse() {
}
break;
// Being moving
- case 0x01da:
+ /*case 0x01da:
node = find_node(RFIFOL(2));
if(node==NULL) {
node = create_node();
@@ -448,7 +449,7 @@ void do_parse() {
if(node->action==WALK)node->tick_time = tick_time;
set_coordinates(node->coordinates, get_dest_x(RFIFOP(50)), get_dest_y(RFIFOP(50)), direction);
}
- break;
+ break;*/
// NPC dialog
case 0x00b4:
if(!strstr(npc_text, RFIFOP(8))) {
@@ -659,14 +660,14 @@ void do_parse() {
n_items = (len-4)/11;
show_npc_dialog = 3;
for(int k=0;k<n_items;k++)
- add_item(RFIFOW(4+11*k+9), RFIFOL(4+11*k));
+ add_buy_item(RFIFOW(4+11*k+9), RFIFOL(4+11*k));
break;
// Sell dialog
case 0x00c7:
n_items = (len-4)/10;
show_npc_dialog = 4;
for(int k=0;k<n_items;k++)
- add_item(RFIFOW(4+10*k), RFIFOL(4+10*k+2));
+ add_sell_item(RFIFOW(4+10*k), RFIFOL(4+10*k+2));
break;
// Answer to buy
case 0x00ca:
@@ -686,6 +687,10 @@ void do_parse() {
case 0x00a0:
inventory.add_item(RFIFOW(2), RFIFOW(6), RFIFOW(4));
break;
+ case 0x0119:
+ sprintf(pkt_nfo, "%i %i %i %i", RFIFOL(2), RFIFOW(6), RFIFOW(8), RFIFOW(10));
+ alert(pkt_nfo,"","","","",0,0);
+ break;
// Manage non implemented packets
default:
//alert(pkt_nfo,"","","","",0,0);