i setup this script but it seems nothing happen if i loaded it on server.
Code:
- script GMCONTROL -1,{OnInit:set $gmcontrol,90;end;}- script bmevent -1,{OnWhisperGlobal:if(getgmlevel() >= $gmcontrol) {mes "^3399FF[BringMeEvent]^000000"; mes "Hello GameMaster!";mes "What do you want to do?";switch(select("Start Event:Stop Event:Nothing")){ case 1: { next; mes "^3399FF[BringMeEvent]^000000"; mes "Please confirm by typing START."; input .@confirm$; if (.@confirm$ == "START") { donpcevent "Announcer2::OnGMStart"; close; } mes "Confirmation failed"; close; break; } case 2: { next; mes "^3399FF[BringMeEvent]^000000"; mes "Please confirm by typing STOP."; input .@confirm$; if (.@confirm$ == "STOP") { donpcevent "Announcer2::OnGMStop"; close; } mes "Confirmation failed"; close; break; } case 3: { next; mes "^3399FF[BringMeEvent]^000000"; mes "Good bye"; close; }}}}//====================ANNOUNCER======================- script Announcer2 -1,{OnGMStart: announce "(BringMeEvent) : A Gamemaster started a Bring Me Event now.",0; sleep 3000; announce "(BringMeEvent) : If you want to join, come at the middle of Prontera",0; enablenpc "BringMeEvent"; sleep 2000; announce "(BringMeEvent) : Prize: will be TCG and 1x Elite Siege Supply Box",0; sleep 2000; announce "(BringMeEvent) : Hurry Now!.",0; sleep 2000; announce "(BringMeEvent) : GAME STARTED.",0; end; OnGMStop: announce "A Gamemaster has stopped the Bring Me Event",0; disablenpc "BringMeEvent"; end;}prontera,150,150,0 script BringMeEvent 100,{ if (countitem(.@item) < .@amount) { mes "You don't have my requirements"; close; } delitem .@item, .@amount; getitem .p, .a; announce "Yayks! " + strcharinfo(0) + " won the event",0; disablenpc "BringMeEvent"; end; .@i = rand( getarraysize(@BringMeItems) ); .@item = @BringMeItems[ .@i ]; .@amount = rand(1,100); announce "Bring me " + .amount + "x " + getitemname( .item ),0; enablenpc "BringMeEvent"; end; OnInit: setarray @BringMeItems[0],501,7227,4001,7005,909,512,714; set @arraysize,getarraysize(@BringMeItems); .p = 7227; .a = 5; disablenpc "BringMeEvent"; end; }
Last edited by a moderator: