diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-04-01 00:26:49 +0200 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2025-04-01 00:26:49 +0200 |
commit | 060ec1de20f7cd131157883e8dcbbc3bcd68ce29 (patch) | |
tree | 42b81c24d72de0b0fc7c4563c609a2ee1f3bee2b | |
parent | 56182e58be96ca7f209ed2ea7af29644d74a1bf8 (diff) | |
download | serverdata-late_warp.tar.gz serverdata-late_warp.tar.bz2 serverdata-late_warp.tar.xz serverdata-late_warp.zip |
candor underground: check if player is still there before warping themlate_warp
Note: only top warp, I want approval of this logic first before fixing
the other two.
-rw-r--r-- | npc/006-0/core.txt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/npc/006-0/core.txt b/npc/006-0/core.txt index 21a2e5c0e..2cb7abf7a 100644 --- a/npc/006-0/core.txt +++ b/npc/006-0/core.txt @@ -13,10 +13,17 @@ OnTouch: specialeffect(5000, SELF, getcharid(3)); dispbottom l("The power which lies in Candor acknowledges your strength."); + sleep2(2500); - warp "006-3", 49, 52; - sleep2(500); - specialeffect(5001, SELF, getcharid(3)); + + // Check if player is still here + getmapxy(.@pm$, .@px, .@py); + getmapxy(.@nm$, .@nx, .@ny, UNITTYPE_NPC); + if (.@px == .@nx && .@py == .@ny) { + warp "006-3", 49, 52; + sleep2(500); + specialeffect(5001, SELF, getcharid(3)); + } end; L_Reject: |