Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prontera,152,212,4 script Find the Mushroom 1084,{
- mes "[ Find The Mushroom ]";
- if(getgmlevel() < 39) {
- if(.Event==0) mes "We have 'Find the Mushroom' Event at random times of the day/night. We are giving away ^0000FF"+$mushroom_amount+" pcs. "+getitemname($item_id)+"s^000000 for every mushroom found! Just find the Mushrooms and whack 'em! Standby for my broadcasts!";
- else {
- mes "Hurry! There are still Mushrooms in the Map!";
- mes "Location: "+ .map_name$[.map_index];
- 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 ]";
- if(.Event==0) mes "^FF0000Event not running.^000000 You may start event if you wish. Prize: ^0000FF"+$mushroom_amount+" pcs. "+getitemname($item_id)+"s^000000. ^FF0000Remember that all transactions with this NPC is logged.^000000";
- else {
- mes "There are still Mushrooms in the Map! ^FF0000DO NOT START EVENT JUST YET!^000000";
- mes "Location: "+ .map_name$[.map_index];
- mes "Prize: " + getitemname($item_id);
- mes "Number of Mushrooms: " + .mushroom;
- }
- switch(select("Item ["+$mushroom_amount+" x "+getitemname($item_id)+"]:Start Event:End Event")) {
- case 1:
- if(getgmlevel() == 99) {
- 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 $mushroom_amount,1,30000;
- mes "Event Prize : "+$mushroom_amount+" x "+getitemname($item_id);
- goto Main; } else { logmes strcharinfo(0)+ " HAS TRIED TO EDIT THE FIND THE MUSHROOM PRIZEEEEEEEEEEEE"; mes "Sorry, "+strcharinfo(0)+" your GM level does not allow you to edit prizes."; close; }; end;
- case 2:
- mes "Starting the event now...";
- mes "^FF0000Remember that all transactions with this NPC is logged.^000000";
- set .Event,1;
- close2;
- logmes strcharinfo(0)+ " HAS STARTED THE FIND THE MUSHROOM EVENT";
- goto OnStart;
- case 3:
- mes "Ending the event now...";
- if(.Event) announce strcharinfo(0)+" ended Find the Mushroom Event!",bc_all;
- killmonster .map$[.map_index],"All";
- set .Event,0;
- logmes strcharinfo(0)+ " HAS ENDED THE FIND THE MUSHROOM EVENT";
- close;
- }
- OnInit:
- //setarray .map$[0],"splendide","hugel","yuno","comodo","xmas","aldebaran","izlude","payon","geffen","morocc","prontera";
- //setarray .map_name$[0],"Splendide","Hugel Town","Yuno Town","Comodo Town","Christmas Town","Alde Baran","Izlude","Payon Town","Geffen Tower","Morocc Desert","Prontera";
- setarray .map$[0],"morocc_mem","morocc_mem","payon_mem","morocc_mem";
- setarray .map_name$[0],"Morocc PvP","Morocc PvP","Transcendant PvP Payon","Morocc PvP";
- set .map_size,getarraysize( .map$ );
- end;
- 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 .map_index,rand( .map_size );
- set .@ran2, rand(1,8);
- if (.@ran2 == 8) set .mushroom,12;
- if (.@ran2 == 7) set .mushroom,11;
- if (.@ran2 == 6) set .mushroom,10;
- if (.@ran2 == 5) set .mushroom,9;
- if (.@ran2 == 4) set .mushroom,8;
- if (.@ran2 == 3) set .mushroom,8;
- if (.@ran2 == 2) set .mushroom,8;
- if (.@ran2 == 1) set .mushroom,7;
- announce "Mushroom NPC : " + .mushroom + " Mushrooms have spawned in map [ "+ .map_name$[.map_index] +" ] with "+$mushroom_amount+" pcs. "+getitemname($item_id)+"s bounty for each! Gear up for battle now!",0;
- sleep2 10000;
- monster .map$[.map_index],0,0,"Don't kill me please!",1084,.mushroom,"Find the Mushroom::OnMobKilled";
- //i added
- sleep2 180000;
- if(.Event==1) { announce "Mushroom NPC : Find the Mushroom Event is still running in [ "+ .map_name$[.map_index] +" ] with "+$mushroom_amount+" pcs. "+getitemname($item_id)+"s bounty for each mushroom found! Charge to PvP now!",0; };
- sleep2 180000;
- if(.Event==1) { announce "Mushroom NPC : some Mushrooms left in [ "+ .map_name$[.map_index] +" ]. Hurry before it's too late!",0; };
- // end of added lines
- end;
- OnMobKilled:
- mapannounce .map$[.map_index],"Mushroom NPC: [ " + strcharinfo(0) + " ] has obtained "+$mushroom_amount+" pcs. "+getitemname($item_id)+"s for finding a mushroom!",0;
- getitem $item_id,$mushroom_amount;
- if( !mobcount( .map$[.map_index],"Find the Mushroom::OnMobKilled" ) ) set .Event,0;
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment