caspa Posted May 31, 2012 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share Posted May 31, 2012 - script MvP Announcer -1,{ OnInit: hideonnpc "MvP Summoner"; end; } //=====NPC:=================================== //= 1@pump,46,118,3 script MvP Summoner 868,{ //= //=====Settings:================================= //= set .@npc$, "[MvP Summoner]"; //= //=========================================== mes .@npc$; mes "What would you like to do?"; next; switch(select("Nothing:Summon:Leave here")) { case 1: mes .@npc$; mes "Talk to me, if you want to start the event."; close; case 2: goto L_Check; end; case 3: warp "prontera",155,178; end; } L_Check: If(getmapusers("1@pump") >= 2) goto L_Start; mes .@npc$; mes "You need at least 3 people to use this service."; mes " "; mes "Currently, there are only " + getmapusers("1@pump") + " players."; close; L_Start: hideonnpc "MvP Summoner"; mes .@npc$; mes "Event started."; announce "[MvP Summoner]: The event has been officially started by " + strcharinfo(0) + ".",bc_map,0xFFFF00; close2; goto L_announce; end; L_announce: mapannounce "1@pump","[MvP Summoner]: 5",0,0xFFFF00; sleep2 1000; mapannounce "1@pump","[MvP Summoner]: 4",0,0xFFFF00; sleep2 1000; mapannounce "1@pump","[MvP Summoner]: 3",0,0xFFFF00; sleep2 1000; mapannounce "1@pump","[MvP Summoner]: 2",0,0xFFFF00; sleep2 1000; mapannounce "1@pump","[MvP Summoner]: 1",0,0xFFFF00; sleep2 1000; mapannounce "1@pump","[MvP Summoner]: The monster has been spawned.",0,0xFFFF00; monster "1002"; goto L_Enable; end; L_Enable: if(getmapusers("1@pump") == 0) goto L_none; if(getmapusers("1@pump") > 1) goto L_users; end; L_users: initnpctimer; end; OnTimer1000: end; OnTimer1100: if(getmapusers("1@pump") == 0) goto L_none; if(getmapusers("1@pump") > 1) goto L_users; stopnpctimer; end; L_none: killmonsterall "1@pump"; hideonnpc "MvP Summoner"; announce " MvP room is now available.",bc_all,0xFFFF00; end; OnPCLogOutEvent: getmapxy(.@map$,.@x,.@y,0); if(.@map$=="1@pump") { goto L_Enable; announce ""+strcharinfo(0)+" Abandoned the MvP Room.",bc_all,0xFFFF00; warp "prontera",155,178; end; } } can somebody help me ASAP!!! Quote Link to comment Share on other sites More sharing options...
Question
caspa
can somebody help me ASAP!!!
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.