Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================
- // WoE Castle Flag (prtg_cas03) //
- //============================================================
- prontera,155,234,4 script War of Emperium Flag 722,{
- if ( .Map$ == "" || ( gettime(3) != 21 || ( gettime(3) == 21 && gettime(2) > 20 ) ) ) {
- mes "^0000FFWar of Emperium Flag^000000";
- mes " ";
- mes "^FF0000WoE info:^000000";
- mes " ";
- mes "Tuesday from ^00FF008.00PM^000000 to ^FF00009.00PM^000000";
- mes "Thursday from ^00FF008.00PM^000000 to ^FF00009.00PM^000000";
- mes "Saturday from ^00FF008.00PM^000000 to ^FF00009.00PM^000000";
- mes "Sunday from ^00FF008.00PM^000000 to ^FF00009.00PM^000000";
- mes " ";
- mes "Please use ^FF0000@time^000000 to check current server time.";
- close;
- }
- if( getcharid(2) != getcastledata( .Map$,1 ) || !getcharid(2) || strcharinfo(0) != getguildmaster( getcastledata( .Map$,1 ) ) ){
- mes "Only guild master "+getguildmaster( getcastledata( .Map$,1 ) )+" from "+getguildname( getcastledata( .Map$,1 ) )+" guild can claim the rewards!";
- close;
- }
- mes "Master "+strcharinfo(2)+", please read this description ^FF0000CAREFULLY..^000000";
- mes " ";
- mes "Please remember that I can only warp you to the reward room ONE TIME only!!";
- mes " ";
- mes "We're ^FF0000NOT RESPONSIBLE^000000 if you or your guild members diconnect or error while we recall..";
- next;
- mes "Do you understand?";
- mes " ";
- mes "If yes, please proceed now..";
- mes " ";
- mes "If not, you only have 10 minutes before I'm gone..";
- next;
- if( .Map$ == "" ) close;
- if( select( "Okay. I Understand.:Wait a second!!" ) == 2 ) close;
- enablenpc "Recall NPC#01";
- warp "new_zone04",180,145;
- announce "Guild Master of "+getguildname( getcastledata( .Map$,1 ) )+" guild has been warped to Reward Room.",0;
- sleep2 100;
- announce "All members of "+getguildname( getcastledata( .Map$,1 ) )+" guild please be prepared for the recall.",0;
- sleep2 100;
- announce "Make sure you are not in recall-disabled maps such as castle!",0;
- set .Map$,"";
- end;
- //OnInit:
- OnAgitEnd:
- switch( gettime(4) ){
- Case 0: if( gettime(3) == 21 ) set .Map$,"prtg_cas01"; break; // Sunday
- Case 2: if( gettime(3) == 21 ) set .Map$,"prtg_cas01"; break; // Tuesday
- Case 4: if( gettime(3) == 21 ) set .Map$,"prtg_cas01"; break; // Thursday
- Case 6: if( gettime(3) == 21 ) set .Map$,"prtg_cas01"; break; // Saturday
- default: end;
- }
- if ( ( gettime(4)==0 && gettime(3)==21 ) || ( gettime(4)==2 && gettime(3)==21 ) || ( gettime(4)==4 && gettime(3)==21) || ( gettime(4)==6 && gettime(3)==21) ){
- sleep2 2000;
- announce "WoE Flag : Attention to the Guild Master of the winning guild for War of Emperium today.",0;
- sleep2 2000;
- announce "WoE Flag : Kindly come and talk to me at Prontera Town now to claim your rewards.",0;
- sleep2 2000;
- announce "WoE Flag : No more redeem of reward after 10 minutes!.",0;
- }
- end;
- OnRecvCastlePt01:
- FlagEmblem GetCastleData("prtg_cas01",1);
- end;
- }
- allone,206,196,4 script War of Emperium Flag#a1 722,{
- OnRecvCastlePt01:
- FlagEmblem GetCastleData("prtg_cas01",1);
- end;
- }
- //============================================================
- // Baby WoE Castle Flag (gefg_cas01) //
- //============================================================
- prontera,148,230,5 script Baby WoE Flag 722,{
- if ( .Map$ == "" || ( gettime(3) != 21 || ( gettime(3) == 21 && gettime(2) > 20 ) ) ) {
- mes "^0000FFBaby War of Emperium Flag^000000";
- mes " ";
- mes "^FF0000Baby WoE info:^000000";
- mes " ";
- mes "Monday from ^00FF008.00PM^000000 to ^FF00009.00PM^000000";
- mes "Wednesday from ^00FF008.00PM^000000 to ^FF00009.00PM^000000";
- mes "Friday from ^00FF008.00PM^000000 to ^FF00009.00PM^000000";
- mes " ";
- mes "Please use ^FF0000@time^000000 to check current server time.";
- close;
- }
- if( getcharid(2) != getcastledata( .Map$,1 ) || !getcharid(2) || strcharinfo(0) != getguildmaster( getcastledata( .Map$,1 ) ) ){
- mes "Only guild master "+getguildmaster( getcastledata( .Map$,1 ) )+" from "+getguildname( getcastledata( .Map$,1 ) )+" guild can claim the rewards!";
- close;
- }
- mes "Master "+strcharinfo(2)+", please read this description ^FF0000CAREFULLY..^000000";
- mes " ";
- mes "Please remember that I can only warp you to the reward room ONE TIME only!!";
- mes " ";
- mes "We're ^FF0000NOT RESPONSIBLE^000000 if you or your guild members diconnect or error while we recall..";
- next;
- mes "Do you understand?";
- mes " ";
- mes "If yes, please proceed now..";
- mes " ";
- mes "If not, you only have 10 minutes before I'm gone..";
- next;
- if( .Map$ == "" ) close;
- if( select( "Okay. I Understand.:Wait a second!!" ) == 2 ) close;
- enablenpc "Recall NPC#01";
- warp "new_zone04",180,145;
- announce "Guildmaster of "+getguildname( getcastledata( .Map$,1 ) )+" guild has been warped to Reward Room.",0;
- sleep2 100;
- announce "All members of "+getguildname( getcastledata( .Map$,1 ) )+" guild please be prepared for the recall.",0;
- sleep2 100;
- announce "Make sure you are not in recall-disable maps such as castle!",0;
- set .Map$,"";
- end;
- //OnInit:
- OnAgitEnd:
- switch( gettime(4) ){
- Case 1: if( gettime(3) == 21 ) set .Map$,"payg_cas04"; break; // Monday
- Case 3: if( gettime(3) == 21 ) set .Map$,"payg_cas04"; break; // Wednesday
- Case 5: if( gettime(3) == 21 ) set .Map$,"payg_cas04"; break; // Friday
- }
- //if ( (gettime(3) == 20 && gettime(2)==30) ){
- if ( ( gettime(4)==1 && gettime(3)==21 ) || ( gettime(4)==3 && gettime(3)==21 ) || ( gettime(4)==5 && gettime(3)==21) ){
- sleep2 2000;
- announce "Baby WoE Flag : Attention to the Guild Master of the winning guild for Baby War of Emperium today.",0;
- sleep2 2000;
- announce "Baby WoE Flag : Kindly come and talk to me at Prontera Town now to claim your rewards.",0;
- sleep2 2000;
- announce "Baby WoE Flag : No more redeem of reward after 10 minutes!.",0;
- }
- end;
- OnRecvCastlePy04:
- FlagEmblem GetCastleData("payg_cas04",1);
- end;
- }
- allone,197,195,4 script Baby WoE Flag#a1 722,{
- OnRecvCastlePy04:
- FlagEmblem GetCastleData("payg_cas04",1);
- end;
- }
- //============================================================
- // KoE Castle Flag (gefg_cas01) //
- //============================================================
- prontera,163,230,3 script KoE Flag 722,{
- if ( .Map$ == "" || ( gettime(3) < 19 && gettime(2) >= 18 )) {
- mes "^0000FFKing of Emperium Flag^000000";
- mes " ";
- mes "^FF0000KoE info:^000000";
- mes " ";
- mes "Everyday from ^00FF006.00PM^000000 to ^FF00007.00PM^000000";
- mes " ";
- mes "Please use ^FF0000@time^000000 to check current server time.";
- close;
- }
- if( getcharid(2) != getcastledata( .Map$,1 ) || !getcharid(2) || strcharinfo(0) != getguildmaster( getcastledata( .Map$,1 ) ) ){
- mes "Only guild master "+getguildmaster( getcastledata( .Map$,1 ) )+" from "+getguildname( getcastledata( .Map$,1 ) )+" guild can claim the rewards!";
- close;
- }
- mes "Master "+strcharinfo(2)+", please read this description ^FF0000CAREFULLY..^000000";
- mes " ";
- mes "Please remember that I can only warp you to the reward room ONE TIME only!!";
- mes " ";
- mes "We're ^FF0000NOT RESPONSIBLE^000000 if you or your guild members diconnect or error while we recall..";
- next;
- mes "Do you understand?";
- mes " ";
- mes "If yes, please proceed now..";
- mes " ";
- mes "If not, you only have 10 minutes before I'm gone..";
- next;
- if( .Map$ == "" ) close;
- if( select( "Okay. I Understand.:Wait a second!!" ) == 2 ) close;
- enablenpc "Recall NPC#01";
- warp "new_zone04",180,145;
- announce "Guildmaster of "+getguildname( getcastledata( .Map$,1 ) )+" guild has been warped to Reward Room.",0;
- sleep2 100;
- announce "All members of "+getguildname( getcastledata( .Map$,1 ) )+" guild please be prepared for the recall.",0;
- sleep2 100;
- announce "Make sure you are not in recall-disable maps such as castle!",0;
- set .Map$,"";
- end;
- //OnInit:
- OnAgitEnd:
- switch( gettime(4) ){
- Case 0: if( gettime(3) == 19 ) set .Map$,"gefg_cas01"; break; // Sunday
- Case 1: if( gettime(3) == 19 ) set .Map$,"gefg_cas01"; break; // Monday
- Case 2: if( gettime(3) == 19 ) set .Map$,"gefg_cas01"; break; // Tuesday
- Case 3: if( gettime(3) == 19 ) set .Map$,"gefg_cas01"; break; // Wednesday
- Case 4: if( gettime(3) == 19 ) set .Map$,"gefg_cas01"; break; // Thursday
- Case 5: if( gettime(3) == 19 ) set .Map$,"gefg_cas01"; break; // Friday
- Case 6: if( gettime(3) == 19 ) set .Map$,"gefg_cas01"; break; // Saturday
- }
- if( gettime(3) == 19 ){
- sleep2 2000;
- announce "KoE Flag : Attention to the Guild Master of the winning guild for King of Emperium today.",0;
- sleep2 2000;
- announce "KoE Flag : Kindly come and talk to me at Prontera Town now to claim your rewards.",0;
- sleep2 2000;
- announce "KoE Flag : No more redeem of reward after 10 minutes!.",0;
- }
- end;
- OnRecvCastleG01:
- FlagEmblem GetCastleData("gefg_cas01",1);
- end;
- }
- allone,214,195,4 script KoE Flag#a1 722,{
- OnRecvCastleG01:
- FlagEmblem GetCastleData("gefg_cas01",1);
- end;
- }
- //============================================================
- // Recall NPC#01 (new_zone04) //
- //============================================================
- new_zone04,180,151,5 script Recall NPC#01 894,{
- if( !getcharid(2) || strcharinfo(0) != getguildmaster( getcharid(2) ) ){
- mes "Only guild master "+getguildmaster( getcastledata( .Map$,1 ) )+" can use this NPC!";
- close;
- }
- mes "Greetings guild master "+strcharinfo(2)+", do you want to recall your guild member now?";
- if( select( "Yes:Cancel" ) == 2 ) close;
- next;
- atcommand "@guildrecall "+getcharid(2)+"";
- mes "Last chance to recall your guild members again. Make sure all of your members are ready before you click next.";
- next;
- atcommand "@guildrecall "+getcharid(2)+"";
- disablenpc "Recall NPC#01";
- mes "Please ask your members to take the rewards now.";
- mes " ";
- mes "See you next time guild master "+strcharinfo(2)+"..";
- sleep2 100;
- announce "Please take your Support Ticket at Support Ticket NPC.",bc_map;
- sleep2 1000;
- npctalk "Please take now! You have 2 minutes from now to claim your ticket!";
- enablenpc "Support Ticket#01";
- close2;
- sleep2 60000;
- npctalk "You cannot AFK or stay in this map any longer. Please leave this map now!";
- sleep2 60000;
- disablenpc "Support Ticket#01";
- announce "Support Ticket NPC are now Disabled",0;
- end;
- }
- //============================================================
- // Ticket NPC#01 (new_zone04) //
- //============================================================
- - script RecallTicket#disable -1,{
- OnInit:
- disablenpc "Support Ticket#01";
- disablenpc "Recall NPC#01";
- }
- new_zone04,189,148,5 script Support Ticket#01 904,{
- if ( (gettime(4)==0 && gettime(3)==21) ) goto Sun;
- if ( (gettime(4)==2 && gettime(3)==21) ) goto Tue;
- if ( (gettime(4)==4 && gettime(3)==21) ) goto Thur;
- if ( (gettime(4)==6 && gettime(3)==21) ) goto Sat;
- if ( (gettime(4)==1 && gettime(3)==21) ) goto BWOE;
- if ( (gettime(4)==3 && gettime(3)==21) ) goto BWOE;
- if ( (gettime(4)==5 && gettime(3)==21) ) goto BWOE;
- if ( gettime(3) == 19 ) goto KOE;
- //=============================
- //THIS IS TICKET FOR WOE SUNDAY
- //=============================
- Sun:
- mes "Hello ^FF0000"+strcharinfo(0)+"^000000!!!";
- mes " ";
- mes "Congratulations for winning the War of Emperium";
- mes " ";
- mes "May ^0000FF"+strcharinfo(2)+"^000000 Guild will be the best";
- mes "Guild ever!!";
- next;
- mes "So, here's your ticket.";
- mes " ";
- mes "Please use this ticket to claim your Sunday WoE Reward";
- mes " ";
- mes "Congratulations again and keep up the good work!";
- close2;
- rentitem 30006,518400; //TICKET FOR SUNDAY WOE HERE
- warp "prontera",155,181;
- end;
- //================================
- //THIS IS TICKET FOR WOE TUESDAY
- //================================
- Tue:
- mes "Hello ^FF0000"+strcharinfo(0)+"^000000!!!";
- mes " ";
- mes "Congratulations for winning the War of Emperium";
- mes " ";
- mes "May ^0000FF"+strcharinfo(2)+"^000000 Guild will be the best";
- mes "Guild ever!!";
- next;
- mes "So, here's your ticket.";
- mes " ";
- mes "Please use this ticket to claim your Tuesday WoE Reward";
- mes " ";
- mes "Congratulations again and keep up the good work!";
- close2;
- rentitem 30003,518400; //TICKET FOR Tuesday WOE HERE
- warp "prontera",155,181;
- end;
- //================================
- //THIS IS TICKET FOR WOE THURSDAY
- //================================
- Thur:
- mes "Hello ^FF0000"+strcharinfo(0)+"^000000!!!";
- mes " ";
- mes "Congratulations for winning the War of Emperium";
- mes " ";
- mes "May ^0000FF"+strcharinfo(2)+"^000000 Guild will be the best";
- mes "Guild ever!!";
- next;
- mes "So, here's your ticket.";
- mes " ";
- mes "Please use this ticket to claim your Thursday WoE Reward";
- mes " ";
- mes "Congratulations again and keep up the good work!";
- close2;
- rentitem 30004,518400; //TICKET FOR Thursday WOE HERE
- warp "prontera",155,181;
- end;
- //===============================
- //THIS IS TICKET FOR WOE SATURDAY
- //===============================
- Sat:
- mes "Hello ^FF0000"+strcharinfo(0)+"^000000!!!";
- mes " ";
- mes "Congratulations for winning the War of Emperium";
- mes " ";
- mes "May ^0000FF"+strcharinfo(2)+"^000000 Guild will be the best";
- mes "Guild ever!!";
- next;
- mes "So, here's your ticket.";
- mes " ";
- mes "Please use this ticket to claim your Saturday WoE Reward";
- mes " ";
- mes "Congratulations again and keep up the good work!";
- close2;
- rentitem 30005,518400; //TICKET FOR SATURDAY WOE HERE
- warp "prontera",155,181;
- end;
- //===========================
- //THIS IS TICKET FOR BABY WOE
- //===========================
- BWOE:
- mes "Hello ^FF0000"+strcharinfo(0)+"^000000!!!";
- mes " ";
- mes "Congratulations for winning the Baby War of Emperium";
- mes " ";
- mes "May ^0000FF"+strcharinfo(2)+"^000000 Guild will be the best";
- mes "Guild ever!!";
- next;
- mes "So, here's your Reward.";
- mes " ";
- mes "Congratulations again and keep up the good work!";
- close2;
- getitem 7420,500; // Skull
- // getitem 7539,200; // Poring Coin
- warp "prontera",155,181;
- end;
- //===================================
- //THIS IS TICKET FOR KING OF EMPERIUM
- //===================================
- KOE:
- mes "Hello ^FF0000"+strcharinfo(0)+"^000000!!!";
- mes " ";
- mes "Congratulations for winning the King of Emperium";
- mes " ";
- mes "May ^0000FF"+strcharinfo(2)+"^000000 Guild will be the best";
- mes "Guild ever!!";
- next;
- mes "So, here's your ticket.";
- mes " ";
- mes "Please use this ticket to claim your reward at KoE Reward NPC";
- mes " ";
- mes "Congratulations again and keep up the good work!";
- close2;
- getitem 7420,500; // Skull
- getitem 30581,2; //Promo Coin
- // getitem 7539,200; // Poring Coin
- // getitem 30582,1; // Hollow Coin
- warp "prontera",155,181;
- end;
- }
- new_zone04 mapflag nosave SavePoint
- new_zone04 mapflag nobranch
- new_zone04 mapflag nomemo
- new_zone04 mapflag nopenalty
- new_zone04 mapflag noreturn
- new_zone04 mapflag nosave SavePoint
- new_zone04 mapflag noteleport
- new_zone04 mapflag nowarp
Advertisement
Add Comment
Please, Sign In to add comment