Jump to content
  • 0

help function like toasty woe timer


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.07
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  


//==================================================================================
- script KingOfEmperium -1,{
OnInit:
set $KoEZenyPrize,50000;
set $KoEItemPrize,501;
set $KoEItemAmount,10;
//set $KoEPrizeTracker,0;
if(gettime(3)>=20&&gettime(3)<21) { goto KoEActualStart; }
end;

OnClock2000:
KoEActualStart:
if(gettime(4)!=1&&gettime(4)!=3&&gettime(4)!=5&&gettime(4)!=0) { end; }
set $KoEStatus,1;
set $KoEPrizeTracker,0;
if($KOEGUILD!=0) { Announce "The King of Emperium Hill has begun! The King Of Emperium Hill is the ["+GetGuildName($KOEGUILD)+"] guild.",bc_all|bc_woe; } else { Announce "King Of Emperium Hill has began! Which guild will prove their worth?",bc_all|bc_woe; }
if(getmapusers("guild_vs1")>0) { MapRespawnGuildID "guild_vs1",$KOEGUILD,6; }
gvgon "guild_vs1";
monster "guild_vs1",50,50,"EMPERIUM",1288,1,"KingOfEmperium::OnEmperiumBreak";
end;

OnClock2100:
if($KoEStatus==0) { end; }
set $KoEStatus,0;
gvgoff "guild_vs1";
if(getmapusers("guild_vs1")>0) { MapRespawnGuildID "guild_vs1",$KOEGUILD,7; }
killmonsterall "guild_vs1",0;
set .@name$,GetGuildMaster($KOEGUILD);
if($KOEGUILD!=0) { Announce "The King of Emperium Hill has ended! The King Of Emperium Hill is the ["+GetGuildName($KOEGUILD)+"] guild.",bc_all|bc_woe; } else { Announce "The King of Emperium Hill has ended! No guild has proven themselves King Of Emperium Hill!",bc_all|bc_woe; }
end;

OnEmperiumBreak:
if(getskilllv(10000)!=1) { announce "Only a guild with the Guild Approval skill can kill the Emperium!",bc_self; monster "guild_vs1",50,50,"EMPERIUM",1288,1,"KingOfEmperium::OnEmperiumBreak"; end; }
killmonsterall "guild_vs1",0;
set $KOEGUILD,getcharid(2);
mapannounce "guild_vs1",""+strcharinfo(0)+" has broken the emperium for the ["+GetGuildName($KOEGUILD)+"] guild.",bc_map|bc_woe,"0x00CCFF",FW_NORMAL,12;
sleep 1000;
MapRespawnGuildID "guild_vs1",$KOEGUILD,6;
announce "The ["+getguildName($KOEGUILD)+"] guild has became the King Of Emperium Hill!",bc_all|bc_woe;
sleep 5000;
if($KoEStatus==1) { monster "guild_vs1",50,50,"EMPERIUM",1288,1,"KingOfEmperium::OnEmperiumBreak"; }
end;

}

//==================================================================================
//--------|King Of Emperium Hill Reward Script|-------------------------------------
//==================================================================================

guild_vs1,27,68,5 script Emperium Assistant 55,{

if(getgmlevel()>98) { goto GMEmpMenu; end; }
if($KOEGUILD==0) { mes "[Emperium Assistant]"; mes "Only the King Of Emperium Hill can reap the rewards!"; close; }
if(strcharinfo(2)!=GetGuildName($KOEGUILD)) { mes "[Emperium Assistant]"; mes "Your guild is not the King Of Emperium Hill!"; close; }
if(strcharinfo(0)!=GetGuildMaster($KOEGUILD)) { mes "[Emperium Assistant]"; mes "Only the guild master may collect the rewards for the guild as King Of Emperium Hill!"; close; }
goto EmpAssStart;
end;
EmpAssStart:
mes "[Emperium Assistant]";
mes " ";
mes " ";
mes " ";
mes " ";
mes "Your guild is the King Of Emperium Hill!";
next;
if($KoEStatus==1) { mes "[Emperium Assistant]"; mes " "; mes " "; mes " "; mes " "; mes "You cannot access my services at this time."; close; }
if($KoEPrizeTracker==1) { mes "[Emperium Assistant]"; mes "You can only reap the rewards of being the King Of Emperium Hill once after each battle for the Hill!"; close; }
mes "[Emperium Assistant]";
mes "Your rewards await you!";
next;
if($KoEZenyPrize!=0) { set zeny,zeny+$KoEZenyPrize; }
if($KoEItemPrize!=0&&$KoEItemAmount!=0) { getitem $KoEItemPrize,$KoEItemAmount; }
set $KoEPrizeTracker,1;
mes "[Emperium Assistant]";
mes "You have been rewarded for your victory!";
close;

GMEmpMenu:
mes "[GM Menu]";
mes "From this menu you can adjust the item and zeny prize. The current Reward is: ^ff0000"+$KoEItemAmount+"^000000 ^ff0000"+getitemname($KoEItemPrize)+"^000000 and ^ff0000"+$KoEZenyPrize+"z^000000.";
mes " ";
mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
switch(prompt("Change Zeny Prize:Change Item Prize:Change Item Prize Amount:Return To Non-GM Menu")) {
case 1:
next;
if($KoEStatus==1) { mes "[GM Menu]"; mes " "; mes " "; mes " "; mes " "; mes "You cannot adjust the Zeny Prize at this time."; close; }
mes "[GM Menu]";
mes "The current Zeny Prize amount is ^ff0000"+$KoEZenyPrize+"^000000.";
mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
mes " ";
mes "Enter what you want the new Zeny Prize to be.";
input .@GMAdjust;
if(.@GMAdjust<0) { next; mes "[GM Menu]"; mes "The Zeny Prize cannot be less than 0."; next; goto GMEmpMenu; end; }
next;
mes "[GM Menu]";
mes "Are you sure you want to modify the Zeny Prize to ^ff0000"+.@GMAdjust+"^000000? To finalize the change in Zeny Prize type the number ^0000FF682^000000.";
input .@Finalize;
if(.@Finalize==682) { next; set $KoEZenyPrize,.@GMAdjust; mes "The Zeny Prize amount has been changed to ^ff0000"+$KoEZenyPrize+"^000000."; next; goto GMEmpMenu; end; }
next;
mes "[GM Menu]";
mes "It is probably for the best that you don't adjust the Zeny Prize!";
next;
goto GMEmpMenu;
end;
case 2:
next;
if($KoEStatus==1) { mes "[GM Menu]"; mes " "; mes " "; mes " "; mes " "; mes "You cannot adjust the Zeny Prize at this time."; close; }
mes "[GM Menu]";
mes "The current Item Prize is a ^ff0000"+getitemname($KoEItemPrize)+"^000000.";
mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
mes " ";
mes "Enter what you want the new Item Prize to be. WARNING: If you input an invalid itemID it will error everytime a player tries to recieve it!";
input .@GMAdjust;
next;
mes "[GM Menu]";
mes "Are you sure you want to modify the Item Prize to ^ff0000"+.@GMAdjust+"^000000[^ff0000"+getitemname(.@GMAdjust)+"^000000]? To finalize the change in Item Prize type the number ^0000FF749^000000.";
input .@Finalize;
if(.@Finalize==749) { next; set $KoEItemPrize,.@GMAdjust; mes "The Item Prize amount has been changed to ^ff0000"+$KoEItemPrize+"^000000[^ff0000"+getitemname($KoEItemPrize)+"^000000]"; next; goto GMEmpMenu; end; }
next;
mes "[GM Menu]";
mes "It is probably for the best that you don't adjust the Item Prize!";
next;
goto GMEmpMenu;
end;
case 3:
next;
if($KoEStatus==1) { mes "[GM Menu]"; mes " "; mes " "; mes " "; mes " "; mes "You cannot adjust the Zeny Prize at this time."; close; }
mes "[GM Menu]";
mes "The current Item Prize Amount is ^ff0000"+$KoEItemAmount+"^000000.";
mes "NOTE: If it says 'NULL' or '0' then that value has not been set.";
mes "Enter what you want the new Item Prize Amount to be.";
input .@GMAdjust;
if(.@GMAdjust<1) { next; mes "The Item Prize Amount cannot be less than 1."; next; goto GMEmpMenu; end; }
next;
mes "[GM Menu]";
mes "Are you sure you want to modify the Item Prize Amount to ^ff0000"+.@GMAdjust+"^000000? To finalize the change in Item Prize Amount type the number ^0000FF976^000000.";
input .@Finalize;
if(.@Finalize==976) { next; set $KoEItemAmount,.@GMAdjust; mes "The Item Prize amount has been changed to ^ff0000"+$KoEItemAmount+"^000000."; next; goto GMEmpMenu; end; }
next;
mes "[GM Menu]";
mes "It is probably for the best that you don't adjust the Item Prize Amount!";
next;
goto GMEmpMenu;
end;
case 4:
next;
goto EmpAssStart;
end;
}
}

//==================================================================================
//--------|King Of Emperium Hill Guild Protection|----------------------------------
//==================================================================================
- script KoEGuildProtection -1,{
OnInit:
end;

OnPCLoadMapEvent:
if(getgmlevel()<20&&strcharinfo(3)=="guild_vs1"&&getcharid(2)==0) { announce "You must be in a guild to enter Emperium Hill!",bc_self; warp "SavePoint",0,0; end; }
end;

}

//==================================================================================
//--------|KoE Flag Script|---------------------------------------------------------
//==================================================================================
- script KoEFlag 723,-1,-1,{

mes "[Emperium Hill]";
mes " ";
mes " ";
mes " ";
mes " ";
if($KOEGUILD!=0) { mes "The King Of Emperium Hill is the ["+GetGuildName($KOEGUILD)+"] guild."; } else { mes "Only the strongest warriors should may over take Emperium Hill!"; }
close;
}
guild_vs1,54,59,0 duplicate(KoEFlag) Emperium Hill#EH1 722
guild_vs1,45,59,0 duplicate(KoEFlag) Emperium Hill#EH2 722
guild_vs1,40,54,2 duplicate(KoEFlag) Emperium Hill#EH3 722
guild_vs1,40,45,2 duplicate(KoEFlag) Emperium Hill#EH4 722
guild_vs1,45,40,4 duplicate(KoEFlag) Emperium Hill#EH5 722
guild_vs1,54,40,4 duplicate(KoEFlag) Emperium Hill#EH6 722
guild_vs1,59,45,6 duplicate(KoEFlag) Emperium Hill#EH7 722
guild_vs1,59,54,6 duplicate(KoEFlag) Emperium Hill#EH8 722

//==================================================================================
//--------|KoE Waper Script|--------------------------------------------------------
//==================================================================================
- script KoEWarper 723,-1,-1,{

mes "Portal Emperium Hill.";
mes " ";
mes " ";
mes " ";
mes "Only the strongest warriors should pass through the portal to Emperium Hill";
next;
switch(prompt("Procede to the Emperium Hill:Nevermind")) {
case 1:
next;
if(getgmlevel()<20&&getcharid(2)==0) { mes "[Notice:]"; mes " "; mes "You must be in a guild to enter Emperium Hill!"; close; }
warp "guild_vs1",0,0;
close;
case 2:
close;
case 255:
close;
}
}

can someone make it like the function of Toasty WoE Controller? like there's how many hour/minutes/seconds still remaining the event will be start

bu,p

bumppppppppppp

bumppp

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.07
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

bumppppp==

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.07
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

bu,p

bumppp

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...