summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-30 09:24:46 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-30 09:24:46 +0000
commit1ea4e8fc7edf8861b7872825b177ee29626bcd7a (patch)
treeeb52c8371048a0eda2eaca8b64aed63474205555
parenta46ef1cc1a5e23df4458644a226ac12f5d4ebf72 (diff)
downloadhercules-1ea4e8fc7edf8861b7872825b177ee29626bcd7a.tar.gz
hercules-1ea4e8fc7edf8861b7872825b177ee29626bcd7a.tar.bz2
hercules-1ea4e8fc7edf8861b7872825b177ee29626bcd7a.tar.xz
hercules-1ea4e8fc7edf8861b7872825b177ee29626bcd7a.zip
Fixed scripts relying on older event calling methods.. Still searching for other scripts..
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6396 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--npc/jobs/1-1/swordman.txt2
-rw-r--r--npc/jobs/2-1/knight.txt7
-rw-r--r--src/map/npc.c2
3 files changed, 6 insertions, 5 deletions
diff --git a/npc/jobs/1-1/swordman.txt b/npc/jobs/1-1/swordman.txt
index fb6506955..2e5c0c63c 100644
--- a/npc/jobs/1-1/swordman.txt
+++ b/npc/jobs/1-1/swordman.txt
@@ -183,7 +183,7 @@ L_Done:
// -- Swordsman --
izlude_in.gat,65,171,5 script Swordsman 85,{
- doevent "Swordsman";
+ doevent "Swordsman::OnStart";
end;
}
diff --git a/npc/jobs/2-1/knight.txt b/npc/jobs/2-1/knight.txt
index 7e80e1849..a0f45118f 100644
--- a/npc/jobs/2-1/knight.txt
+++ b/npc/jobs/2-1/knight.txt
@@ -1383,7 +1383,7 @@ L_Test:
mes "Okay lets start the test now.";
next;
warp "job_knt.gat",143,57;
- doevent "ev_Test";
+ doevent "ev_Test::OnStart";
end;
L_ReTest:
@@ -1395,10 +1395,10 @@ L_Test:
mes "This point shouldn't be kept just when you have tests, it should be kept when you're training in real life...";
next;
mes "[Sir Edmund]";
- mes "OKay now, try again.";
+ mes "Okay now, try again.";
next;
warp "job_knt.gat",143,57;
- doevent "ev_Test";
+ doevent "ev_Test::OnStart";
end;
L_Done:
@@ -1419,6 +1419,7 @@ L_Test:
// Test -----------------------------
job_knt.gat,1,1,1 script ev_Test -1,{
+OnStart:
killmonster "job_knt.gat","ev_Test::OnMyMobDead";
monster "job_knt.gat",141,57,"Poring",1002,1,"ev_Test::OnMyMobDead";
monster "job_knt.gat",145,57,"Poring",1002,1,"ev_Test::OnMyMobDead";
diff --git a/src/map/npc.c b/src/map/npc.c
index f0ee22dc3..a38d36a3d 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1887,7 +1887,7 @@ static int npc_parse_script (char *w1,char *w2,char *w3,char *w4,char *first_lin
unit_dataset(&nd->bl);
nd->ud.dir = dir;
map_addblock(&nd->bl);
- // Unused. You can always use On::XXXX events. Have this removed to improve perfomance.
+ // Unused. You can always use xxx::OnXXXX events. Have this removed to improve perfomance.
/*if (evflag) { // ƒCƒxƒ“ƒgŒ^
struct event_data *ev = (struct event_data *)aCalloc(1, sizeof(struct event_data));
ev->nd = nd;