diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-11-12 15:11:47 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-11-12 15:11:47 +0000 |
commit | 526f9a301caa29d1922561104de9aea8bc213b65 (patch) | |
tree | bc2852547d0b41843375dcf406c00e1ee54117d9 /src/game.cpp | |
parent | 628ac878c21c5150528b969ac151cd2450e2549d (diff) | |
download | mana-526f9a301caa29d1922561104de9aea8bc213b65.tar.gz mana-526f9a301caa29d1922561104de9aea8bc213b65.tar.bz2 mana-526f9a301caa29d1922561104de9aea8bc213b65.tar.xz mana-526f9a301caa29d1922561104de9aea8bc213b65.zip |
NPC lists
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp index 0a0534f5..df741710 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -381,8 +381,13 @@ void do_parse() { break; // Success to walk request case 0x0087: - if(walk_status==1) - walk_status = 2; + if(walk_status==1) { + if(get_src_x(RFIFOP(6))==src_x) + if(get_src_y(RFIFOP(6))==src_y) + if(get_dest_x(RFIFOP(6))==get_x(player_node->coordinates)) + if(get_dest_y(RFIFOP(6))==get_y(player_node->coordinates)) + walk_status = 2; + } break; // Add new being / stop monster case 0x0078: @@ -675,10 +680,8 @@ void do_parse() { break; // Level up case 0x019b: - if(RFIFOW(2)==0) { - ok("Info", "Level up!"); - } else if(RFIFOW(2)==1) { - ok("Info", "Job level up!"); + if(RFIFOL(2)==player_node->id) { + sound.StartWAV("./data/sound/wavs/level.wav", 10); } break; // Emotion |