Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Created by marikitangakak
- //Edited and Revised by Lunar from MoonlightRO
- //Original Link: http://www.eathena.ws/board/index.php?showtopic=243601
- //Edited and Revised Script Link: http://www.eathena.ws/board/index.php?showtopic=243753
- //Please do not take this script as your own.
- //http://www.eathena.ws/board/index.php?showtopic=243753
- // MyRO - edited to only spawn in some chosen pvp maps.
- //splendide,185,200,4 script Find the Mushroom 1084,{
- prontera,152,212,4 script Find the Mushroom 1084,{
- mes "[ Find The Mushroom ]";
- if(getgmlevel() < 98) {
- if(.Event==0) mes "We have Find the Mushroom Event at random times of the day/night. We are giving away hundreds of "+ getitemname($item_id)+"s for every mushroom found! Standby for my broadcasts!";
- else {
- mes "There is a Find the Mushroom event on now!";
- mes "Location: "+ .map$;
- mes "Prize: " + getitemname($item_id);
- mes "Number of Mushrooms: " + .mushroom;
- }
- close;
- }
- mes "Hello "+strcharinfo(0)+"! Please customize this event:";
- Main:
- next;
- mes "[ Find The Mushroom ]";
- switch(select("Item ["+$amount+" x "+getitemname($item_id)+"]:Start Event:End Event")) {
- case 1:
- mes "Which item would you like the Mushroom to drop?";
- mes "Please input the item ID:";
- do{
- input $item_id;
- }while( getitemname($item_id) == "null" );
- mes "Enter amount.";
- input $amount,1,30000;
- mes "Event Prize : "+$amount+" x "+getitemname($item_id);
- goto Main;
- case 2:
- mes "Starting the event now...";
- set .Event,1;
- close2;
- goto OnStart;
- case 3:
- mes "Ending the event now...";
- if(.Event) announce ""+strcharinfo(0)+" ended Find the Mushroom Event!",bc_all;
- killmonster .map$,"All";
- set .Event,0;
- close;
- }
- //OnMinute51: //CHANGE THIS TO THE MINUTE YOU WOULD LIKE THIS EVENT TO LOAD!
- //OnMinute20:
- // Dice Time
- //OnClock0800:
- //OnClock1101:
- //OnClock1400:
- //OnClock1700:
- //OnClock2015:
- //OnClock2301:
- //OnClock0200:
- //OnClock0500:
- // Mushroom Time
- OnClock0548:
- OnClock0800:
- OnClock1000:
- OnClock1200:
- OnClock1415:
- OnClock1601:
- OnClock1800:
- OnClock2030:
- OnClock2230:
- OnClock0100:
- OnClock0300:
- OnStart:
- announce "Mushroom NPC : It's time to play Find the Mushroom Event in PvP!",0;
- sleep2 10000;
- // set $@ran, rand(1,11);
- // if ($@ran == 11) set .map$,"splendide";
- // if ($@ran == 10) set .map$,"hugel";
- // if ($@ran == 9) set .map$,"yuno";
- // if ($@ran == 8) set .map$,"comodo";
- // if ($@ran == 7) set .map$,"xmas";
- // if ($@ran == 6) set .map$,"aldebaran";
- // if ($@ran == 5) set .map$,"izlude";
- // if ($@ran == 4) set .map$,"payon";
- // if ($@ran == 3) set .map$,"geffen";
- // if ($@ran == 2) set .map$,"morocc";
- // if ($@ran == 1) set .map$,"prontera";
- set $@ran, rand(1,4);
- if ($@ran == 4) set .map$,"pvp_y_room";
- if ($@ran == 3) set .map$,"pvp_y_room";
- if ($@ran == 2) set .map$,"pvp_y_room";
- if ($@ran == 1) set .map$,"pvp_y_room";
- sleep2 1000;
- set $@ran2, rand(1,5);
- if ($@ran2 == 5) set .mushroom,9;
- if ($@ran2 == 4) set .mushroom,7;
- if ($@ran2 == 3) set .mushroom,7;
- if ($@ran2 == 2) set .mushroom,5;
- if ($@ran2 == 1) set .mushroom,3;
- // announce "Mushroom NPC : The Mushroom has spawned in PvP! ("+ .map$ +" pvp)",0;
- // announce "Mushroom NPC : The Mushroom has spawned in PvP! ("+getcastlename(.map$)+")",0;
- // sleep2 10000;
- announce "Mushroom NPC : " + .mushroom + " Mushrooms have spawned in map ["+ .map$ +" pvp] with 200 pcs. "+getitemname($item_id)+"s bounty for each! Gear up for battle now!",0;
- sleep2 10000;
- monster .map$,0,0,"Don't kill me please!",1084,.mushroom,"Find the Mushroom::OnMobKilled";
- end;
- OnMobKilled:
- mapannounce .map$,"Mushroom NPC: " + strcharinfo(0) + " has obtained 200 pcs. "+getitemname($item_id)+"s for finding a mushroom!",0;
- //announce "Mushroom NPC: " + strcharinfo(0) + " has obtained 200 pcs. "+getitemname($item_id)+" for finding a mushroom!",0;
- // set zeny,zeny+10000000;
- getitem $item_id,200;
- set .Event,0;
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment