diff options
author | Dastgir <dastgir@users.noreply.github.com> | 2015-10-13 18:48:53 +0530 |
---|---|---|
committer | Dastgir <dastgir@users.noreply.github.com> | 2015-10-13 18:48:53 +0530 |
commit | 3beadd2b25bdc9f5e4a36af9a10fdfafd2fceed9 (patch) | |
tree | 020e2327e9637155b4d2c2303aee58cc3175c650 /npc/custom/events/mushroom_event.txt | |
parent | 3ca033652637cb529b8ca4d8a4f7fb3f37080fb2 (diff) | |
parent | 74c1881165c9cbb15c20d6439490149bc2d9121b (diff) | |
download | hercules-3beadd2b25bdc9f5e4a36af9a10fdfafd2fceed9.tar.gz hercules-3beadd2b25bdc9f5e4a36af9a10fdfafd2fceed9.tar.bz2 hercules-3beadd2b25bdc9f5e4a36af9a10fdfafd2fceed9.tar.xz hercules-3beadd2b25bdc9f5e4a36af9a10fdfafd2fceed9.zip |
Merge pull request #794 from moguri85/master
Added needed items and some npc fixes in Eden and other events
Diffstat (limited to 'npc/custom/events/mushroom_event.txt')
-rw-r--r-- | npc/custom/events/mushroom_event.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/custom/events/mushroom_event.txt b/npc/custom/events/mushroom_event.txt index 1d632d3e9..29faaf979 100644 --- a/npc/custom/events/mushroom_event.txt +++ b/npc/custom/events/mushroom_event.txt @@ -14,13 +14,13 @@ prontera,142,228,6 script Find the Mushroom BLACK_MUSHROOM,{ mes "[ Find The Mushroom ]"; - if (!.Status) + if (!.status) mes "There is no event at the moment!"; else { mes "There are "+.Spawn+" Mushrooms left in "+.Map$+"!"; mes "Find and kill the mushrooms to gain "+getitemname(.Prize)+"!"; } - if (.Status || getgmlevel() < .GM) close; + if (.status || getgmlevel() < .GM) close; mes "Start the event?"; next; if(select("- No:- Yes") == 1) close; @@ -33,14 +33,14 @@ OnInit: set .Prize,512; // Reward item ID set .Amount,10; // Reward item amount set .GM,60; // GM level required to access NPC - setarray .Maps$[0],"izlude","geffen","morocc","prontera"; // Possible maps + setarray .maps$[0],"izlude","geffen","morocc","prontera"; // Possible maps end; OnMinute10: // Start time (every hour) - if (.Status) end; - set .Status,1; + if (.status) end; + set .status,1; set .Spawn,rand(1,10); // How many Mushrooms should spawn? - set .Map$,.Maps$[rand(getarraysize(.Maps$))]; + set .Map$,.maps$[rand(getarraysize(.maps$))]; killmonster .Map$,"All"; monster .Map$,0,0,"Please don't kill me!",1084,.Spawn,strnpcinfo(0)+"::OnMobKilled"; announce "Find the Mushroom : Total of "+.Spawn+" Mushrooms have been spawned in "+.Map$+"!",0; @@ -54,7 +54,7 @@ OnMobKilled: if (.Spawn) announce "[ "+strcharinfo(0)+" ] has killed a Mushroom. There are now "+.Spawn+" Mushroom(s) left.",bc_map; else { announce "The Find the Mushroom Event has ended. All the Mushrooms have been killed.",0; - set .Status,0; + set .status,0; } end; } |