summaryrefslogtreecommitdiff
path: root/npc/functions/siege.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r--npc/functions/siege.txt14
1 files changed, 11 insertions, 3 deletions
diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt
index c528d9442..c4bb47ae1 100644
--- a/npc/functions/siege.txt
+++ b/npc/functions/siege.txt
@@ -224,15 +224,15 @@ function script siege_cast {
.@e=any_of($@SIEGE_TMPMOBS);
array_remove($@SIEGE_TMPMOBS, .@e);
- siege_spawn(.@mz$, .@e, .@a, .@n$+"::OnRespawn");
+ siege_spawn(.@mz$, .@e, .@a, "#SiegeCtrl::OnRespawn");
.@e=any_of($@SIEGE_TMPMOBS);
array_remove($@SIEGE_TMPMOBS, .@e);
- siege_spawn(.@mz$, .@e, .@a, .@n$+"::OnRespawn");
+ siege_spawn(.@mz$, .@e, .@a, "#SiegeCtrl::OnRespawn");
.@e=any_of($@SIEGE_TMPMOBS);
array_remove($@SIEGE_TMPMOBS, .@e);
- siege_spawn(.@mz$, .@e, .@a, .@n$+"::OnRespawn");
+ siege_spawn(.@mz$, .@e, .@a, "#SiegeCtrl::OnRespawn");
return;
}
@@ -241,6 +241,14 @@ function script siege_cast {
- script #SiegeCtrl NPC_HIDDEN,{
end;
+OnRespawn:
+ if (playerattached()) {
+ getmapxy(.@m$,.@x,.@y,0);
+ if (rand(10000) <= $coinsrate)
+ makeitem StrangeCoin, 1, .@m$, .@x, .@y;
+ }
+ end;
+
// Boss Death Labels
OnLieutenantDeath:
getitem StrangeCoin, 1;