summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/guild2/agit_main_se.txt2
-rw-r--r--src/map/script.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/npc/guild2/agit_main_se.txt b/npc/guild2/agit_main_se.txt
index ecd06d836..d5c2eaddd 100644
--- a/npc/guild2/agit_main_se.txt
+++ b/npc/guild2/agit_main_se.txt
@@ -623,7 +623,7 @@ OnStartArena:
donpcevent "Manager#"+strnpcinfo(4)+"::OnReset";
maprespawnguildid strnpcinfo(4),getcastledata(strnpcinfo(4),1),2;
donpcevent "Manager#"+strnpcinfo(4)+"::OnRecvCastle2";
- donpcevent "::OnRecvCastle"+strnpcinfo(2);
+ donpcevent "::OnRecvCastle"+ strtoupper( substr( strnpcinfo(2), 0, 0 ) ) + substr( strnpcinfo(2), 1, getstrlen( strnpcinfo(2) ) -1 );
sleep 10000;
if (agitcheck2()) {
donpcevent "Manager#"+strnpcinfo(4)+"::OnChange";
diff --git a/src/map/script.c b/src/map/script.c
index 6bd215752..17eba6b21 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9285,7 +9285,10 @@ BUILDIN(addtimer)
if( sd == NULL )
return true;
- pc->addeventtimer(sd,tick,event);
+ if (!pc->addeventtimer(sd,tick,event)) {
+ ShowWarning("buildin_addtimer: Event timer is full, can't add new event timer. (cid:%d timer:%s)\n",sd->status.char_id,event);
+ return false;
+ }
return true;
}
/*==========================================