diff options
author | Emistry Haoyan <Equinox1991@gmail.com> | 2016-08-31 02:49:04 +0800 |
---|---|---|
committer | Emistry Haoyan <Equinox1991@gmail.com> | 2016-08-31 02:49:04 +0800 |
commit | 99a36a426b7d2adb6a0f417e02e92366939e5d22 (patch) | |
tree | 74a0fef908f373c3c6674821a150e866a2afb4c3 /npc/custom/events/mushroom_event.txt | |
parent | ac6fd81810e6afb1ef60e7f2c7f8fc6e03408724 (diff) | |
parent | 0f1d03f505fdc03533122db8ba19fa55f64f11b7 (diff) | |
download | hercules-99a36a426b7d2adb6a0f417e02e92366939e5d22.tar.gz hercules-99a36a426b7d2adb6a0f417e02e92366939e5d22.tar.bz2 hercules-99a36a426b7d2adb6a0f417e02e92366939e5d22.tar.xz hercules-99a36a426b7d2adb6a0f417e02e92366939e5d22.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules into scriptcommand_makeitem2
Diffstat (limited to 'npc/custom/events/mushroom_event.txt')
-rw-r--r-- | npc/custom/events/mushroom_event.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/custom/events/mushroom_event.txt b/npc/custom/events/mushroom_event.txt index ef25a9294..6a8cbc59d 100644 --- a/npc/custom/events/mushroom_event.txt +++ b/npc/custom/events/mushroom_event.txt @@ -24,7 +24,7 @@ prontera,142,228,6 script Find the Mushroom BLACK_MUSHROOM,{ mes "Start the event?"; next; if(select("- No", "- Yes") == 1) close; - donpcevent strnpcinfo(0)+"::OnMinute10"; + donpcevent strnpcinfo(NPC_NAME)+"::OnMinute10"; mes "[ Find The Mushroom ]"; mes "Event started!"; close; @@ -42,7 +42,7 @@ OnMinute10: // Start time (every hour) set .Spawn,rand(1,10); // How many Mushrooms should spawn? set .Map$,.maps$[rand(getarraysize(.maps$))]; killmonster .Map$,"All"; - monster .Map$,0,0,"Please don't kill me!",1084,.Spawn,strnpcinfo(0)+"::OnMobKilled"; + monster .Map$,0,0,"Please don't kill me!",1084,.Spawn,strnpcinfo(NPC_NAME)+"::OnMobKilled"; announce "Find the Mushroom : Total of "+.Spawn+" Mushrooms have been spawned in "+.Map$+"!",0; sleep 2500; announce "Find the Mushroom : Every Mushroom you kill will give you "+getitemname(.Prize)+"!",0; |