diff options
author | Reid <reidyaro@gmail.com> | 2015-12-28 20:01:11 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2015-12-28 20:01:11 +0100 |
commit | 76c49a454dc765a38f08d19fba07ebf9eb434922 (patch) | |
tree | adb7b2868fa66f9198a23622650c3c24e5b92062 | |
parent | 3b1c1393f1703024d53514bc7a2a76aaa66794ba (diff) | |
download | serverdata-76c49a454dc765a38f08d19fba07ebf9eb434922.tar.gz serverdata-76c49a454dc765a38f08d19fba07ebf9eb434922.tar.bz2 serverdata-76c49a454dc765a38f08d19fba07ebf9eb434922.tar.xz serverdata-76c49a454dc765a38f08d19fba07ebf9eb434922.zip |
Add check if the player moved of his fishing spot.
-rw-r--r-- | npc/functions/fishing.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt index 3c8e8c40..7ff60c30 100644 --- a/npc/functions/fishing.txt +++ b/npc/functions/fishing.txt @@ -69,9 +69,19 @@ L_ChooseBait: l("You patiently wait..."); L_Wait: + getmapxy (.@map$, .@x, .@y, 0); + sleep2 rand(.@wait_time_min, .@wait_time_max); .@tick = gettimetick(0); + getmapxy (.@mapbis$, .@xbis, .@ybis, 0); + if (.@xbis != .@x || .@ybis != .@y || !compare (.@map$, .@mapbis$)) + { + narrator + l("You left your fishing spot!"); + close; + } + mes col(l("Splash!"), 9); mes ""; |