Academy monster re-spawn (#3280)
* This PR adds a custom delay to avoid abusive behaviour in the novice academy.
This commit is contained in:
parent
91169d7ebc
commit
4db212bf1b
@ -11972,6 +11972,11 @@ OnReset:
|
||||
OnMyMobDead:
|
||||
.@dead_num = mobcount(""+strnpcinfo(4)+"", "#"+strnpcinfo(2)+"::OnMyMobDead");
|
||||
if (.@dead_num < 1)
|
||||
initnpctimer;
|
||||
end;
|
||||
|
||||
OnTimer5000: // custom timer (there is officially no respawn delay)
|
||||
stopnpctimer;
|
||||
donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
|
||||
end;
|
||||
|
||||
@ -12005,6 +12010,11 @@ OnReset:
|
||||
OnMyMobDead:
|
||||
.@dead_num = mobcount(""+strnpcinfo(4)+"", "#"+strnpcinfo(2)+"::OnMyMobDead");
|
||||
if (.@dead_num < 1)
|
||||
initnpctimer;
|
||||
end;
|
||||
|
||||
OnTimer5000: // custom timer (there is officially no respawn delay)
|
||||
stopnpctimer;
|
||||
donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
|
||||
end;
|
||||
|
||||
@ -12038,6 +12048,11 @@ OnReset:
|
||||
OnMyMobDead:
|
||||
.@dead_num = mobcount(""+strnpcinfo(4)+"", "#"+strnpcinfo(2)+"::OnMyMobDead");
|
||||
if (.@dead_num < 1)
|
||||
initnpctimer;
|
||||
end;
|
||||
|
||||
OnTimer5000: // custom timer (there is officially no respawn delay)
|
||||
stopnpctimer;
|
||||
donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
|
||||
end;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user