Academy monster re-spawn (#3280)

* This PR adds a custom delay to avoid abusive behaviour in the novice academy.
This commit is contained in:
Atemo 2018-07-06 01:46:56 +02:00 committed by GitHub
parent 91169d7ebc
commit 4db212bf1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11972,7 +11972,12 @@ OnReset:
OnMyMobDead:
.@dead_num = mobcount(""+strnpcinfo(4)+"", "#"+strnpcinfo(2)+"::OnMyMobDead");
if (.@dead_num < 1)
donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
initnpctimer;
end;
OnTimer5000: // custom timer (there is officially no respawn delay)
stopnpctimer;
donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
end;
OnSpawn:
@ -12005,7 +12010,12 @@ OnReset:
OnMyMobDead:
.@dead_num = mobcount(""+strnpcinfo(4)+"", "#"+strnpcinfo(2)+"::OnMyMobDead");
if (.@dead_num < 1)
donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
initnpctimer;
end;
OnTimer5000: // custom timer (there is officially no respawn delay)
stopnpctimer;
donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
end;
OnSpawn:
@ -12038,7 +12048,12 @@ OnReset:
OnMyMobDead:
.@dead_num = mobcount(""+strnpcinfo(4)+"", "#"+strnpcinfo(2)+"::OnMyMobDead");
if (.@dead_num < 1)
donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
initnpctimer;
end;
OnTimer5000: // custom timer (there is officially no respawn delay)
stopnpctimer;
donpcevent "#"+strnpcinfo(2)+"::OnSpawn";
end;
OnSpawn: