summaryrefslogtreecommitdiff
path: root/npc/commands/python.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-11-07 00:25:17 -0300
committerJesusaves <cpntb1@ymail.com>2022-11-07 00:25:17 -0300
commit1ce45e518bec34cbefe1efa56b776a08ba4e68be (patch)
treecc8c080c7c9bada782d0ff6531cdc684e0549d00 /npc/commands/python.txt
parent5c65874cc82bc7e33b86cad89619470bb40073be (diff)
downloadserverdata-1ce45e518bec34cbefe1efa56b776a08ba4e68be.tar.gz
serverdata-1ce45e518bec34cbefe1efa56b776a08ba4e68be.tar.bz2
serverdata-1ce45e518bec34cbefe1efa56b776a08ba4e68be.tar.xz
serverdata-1ce45e518bec34cbefe1efa56b776a08ba4e68be.zip
Some minor changes to make sure dead people will run only the correct timers
Diffstat (limited to 'npc/commands/python.txt')
-rw-r--r--npc/commands/python.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/commands/python.txt b/npc/commands/python.txt
index 5273731c3..81753b368 100644
--- a/npc/commands/python.txt
+++ b/npc/commands/python.txt
@@ -9,7 +9,7 @@
OnCall:
specialeffect(34, AREA, playerattached());
- .@zone$=getmapinfo(MAPINFO_ZONE, .@mapa$);
+ .@zone$=getmapinfo(MAPINFO_ZONE, getmap());
if (.@zone$ == "MMO")
end;
sc_start SC_CASH_DEATHPENALTY, 1000, 1;
@@ -17,6 +17,7 @@ OnCall:
end;
OnKill:
+ if (ispcdead()) end;
percentheal -100, -100;
//dispbottom l("Oh look, it is Cupid!");
end;