Vengeance Posted January 9, 2012 Posted January 9, 2012 (edited) Map of the week //===== rAthena Script ====================================================================== //= Map Of The Week v4.4 //===== Original By ========================================================================= //= Kaushik //===== Current Version: ==================================================================== //= 1.0 - Script Release. //= 1.1 - Added GM selection of Map Of The Week. //= 1.2 - Fixed Timer Selection of the Map is on Sunday @ 24:00 server time. //= 2.0 - Added Contract System. //= 2.1 - Fixed Contract Expiry (Set #MOTWC to 0 once contract is expired). //= 2.2 - Cleaned Script to remove some unneeded repertition and script. [ToastOfDoom] //= 2.3 - Added Bottle Grenade ingredients to the script as it was missed. //= 2.4 - Decreased the drop rate. //= 2.5 - Changed announce and dispbottom. //= 3.0 - Added Whisper Functions. (map, kills, contract, gm). //= 3.1 - Changed to dynamic Cost and Kills - @motwcost & @motwkill to your desired numbers. //= 3.2 - Added Menu To The NPC. //= 4.0 - Added GM commands to change random map, selected map & to Destroy all contracts. //= 4.1 - Removed SQL unwanted variable. //= 4.2 - Fixed script contract count variable. //= 4.3 - Fixed tweet to not give out contract if no map of the week is assigned. //= 4.4 - Fixed NPC Whisper //= 5.0 - Changed rewards to dynamic rewards [WIP]. //===== Compatible With: ==================================================================== //= Tested in SQL Revision 14435 //===== Description: ======================================================================== //= A Random Map Will be selected and edp, acid demo bottle ingredients are rewarded. //=========================================================================================== Features Selects a map every week in Prontera, Payon and Morroc Fields[Completed] Rewards given when killed a monster[Completed] Contract System[Completed] Limited Kills[Completed] Wisper System [Complete] Easy configuration of the Script[Complete] GM Commands[Complete] Changes Map Automatically Every Week[Completed] Rewards Can be set as required[Completed] Fun Unlimited[Completed] About:This script works like this after it selects a map by itself ( can change the time to test in the script search for OnClock) this map becomes map of the week and when u kill any monster in this map on random chances you get a reward which is also set in the script.Also there is a special function in this script it doesnt work for everyone a player has to first sign the Contract i.e he has to pay 200000Zeny for killing 10000 Monsters i.e after he kills 10000 monsters he wont be able to get any kind of rewards from that Map which is map of the week and it will be a normal map..So if he needs to get rewards again he has to buy the contract again.Give reviews to motivate motw_v4.4.txt motw_v4.1.txt motw_v4.2.txt Edited June 12, 2013 by Vengeance 6 Quote
Syouji Posted January 11, 2012 Posted January 11, 2012 (edited) Nice script. I saw something in the script that you will need to change. Under OnNPCKIllEvent: Change: if (#MOTWKI >= 10000) goto MO_ContractEnd; To This if (#MOTWKI >= @motwkill) goto MO_ContractEnd; This enables players to change the max kills per contract and have it being checked on the monster kill events. Edited January 11, 2012 by Syouji Quote
Vengeance Posted January 11, 2012 Author Posted January 11, 2012 Oops my mistake had it updated in my server but the works folder was not updated thx for notifying have now updated the script Quote
Syouji Posted January 18, 2012 Posted January 18, 2012 (edited) I also noticed that if you choose random map option it picks maps that dont exist. For example: it chose prt_fild00 as the MOTW when i hit random map. Another thing is if you whisper the NPC for your kills if you dont have a contract, the message box window pops up empty with no close button and you can't exit the chat unless you relog. EDIT: The random map generator was my fault. It works fine. Edited January 21, 2012 by Syouji Quote
Vengeance Posted January 20, 2012 Author Posted January 20, 2012 Well everything was working fine when u wisper without contract it would say you have not signed anyways ill check it once.. Quote
Syouji Posted January 21, 2012 Posted January 21, 2012 (edited) Here are the areas I was talking about. Case 1: (Msg Box Freezes Fix that had no close button when you whisper the NPC to check your kills IF you didnt have a contract) Before: MO_NoContract: next; mes "[Map Of The Week]"; mes "You are not under a contract"; close; After: MO_NoContract: mes "[Map Of The Week]"; mes "You are not under a contract"; close; Case 2: (NPC states that no map of the week has been assigned if the player checks the MOTW NPC by clicking and NOT whispering when there isnt one) Before: switch(select("^00FF00•^000000Check Map Of The Week","^00FF00•^000000Check Rewards","^00FF00•^000000Contract Status","^00FF00•^000000Sign a Contract","^00FF00•^000000Commands","^FF0000•^000000Nothing")) { case 1: next; mes "[Map Of The Week]"; mes "The Map Of The Week Is ^FF0000"+$MOTW$+"^000000."; close; After: switch(select("^00FF00•^000000Check Map Of The Week","^00FF00•^000000Check Rewards","^00FF00•^000000Contract Status","^00FF00•^000000Sign a Contract","^00FF00•^000000Commands","^FF0000•^000000Nothing")) { case 1: next; if($MOTW$ == ""){ mes "The Map Of The Week has not been assigned."; close; } mes "[Map Of The Week]"; mes "The Map Of The Week Is ^FF0000"+$MOTW$+"^000000."; close; Case 3: (Prevent player from purchasing a contract if no map of the week has been assigned fix) Before: case 4: next; mes "[Map Of The Week]"; mes "Do you want to buy a contract?"; if(select("Yes:NO")-1) { mes "[Map Of The Week]"; mes "So Long Looser"; atcommand "@die"; close; } After: case 4: next; mes "[Map Of The Week]"; if($MOTW$ == ""){ mes "The Map Of The Week has not been assigned. You cannot purchase a contract at this time."; close; } mes "Do you want to buy a contract?"; if(select("Yes:NO")-1) { mes "[Map Of The Week]"; mes "So Long Looser"; atcommand "@die"; close; } Edited January 21, 2012 by Syouji 1 Quote
orange Posted December 23, 2012 Posted December 23, 2012 in this script, instead of paying in zeny for the contract.. can we make it donation credits? Quote
Vengeance Posted June 12, 2013 Author Posted June 12, 2013 Fixed the errors syouji mentioned.. 1 Quote
panducakep Posted June 18, 2013 Posted June 18, 2013 Nice script, I'll try the latest release. Thanks Quote
stydianx Posted June 20, 2013 Posted June 20, 2013 Oops my mistake had it updated in my server but the works folder was not updated thx for notifying have now updated the script Hi, what do i do to turn it into a daily event? Quote
stydianx Posted July 3, 2013 Posted July 3, 2013 this thing aint workin for me i have waited for weeks, it didnt start once i dont get it Quote
Lil Troll Posted July 11, 2013 Posted July 11, 2013 (edited) Gm Menu doesnt appear to me, if(compare(@whispervar0$,"gm")) { if(getgmlevel() > 99) end; mes "[Map Of The Day]"; mes "What do you want to do GM "+strcharinfo(0)+"?"; switch(select("^00FF00-^000000Random MOTW","^00FF00-^000000Enter MOTW","^FF0000-^000000Destroy All Contracts","^FF0000-^000000Nothing")) { case 1: switch(rand(3)){ case 0: set $@MOTWS, rand(1,11); set $mapotw$, "pay_fild" + (($@MOTWS < 10)?"0":"") + $@MOTWS; set $MOTW$, "Payon Forest "+$@MOTWS; break; case 1: set $@MOTWS, rand(0,11); set $mapotw$, "prt_fild" + (($@MOTWS < 10)?"0":"") + $@MOTWS; set $MOTW$, "Prontera Field "+$@MOTWS; break; case 2: set $@MOTWS, rand(1,22); set $mapotw$, "moc_fild" + (($@MOTWS < 10)?"0":"") + $@MOTWS; set $MOTW$, "Sograt Desert "+$@MOTWS; break; } announce "MOTW : The Map Of The Day is "+$MOTW$+"!!!!",0; next; mes "[Map Of The Day]"; mes "The Map Of The Day is ^FF0000"+$MOTW$+"^000000!!!!"; close; case 2: goto MOTW_Name; case 3: next; mes "[Map Of The Day]"; mes "Destroyed All Contracts"; query_sql "DELETE FROM global_reg_value where str = '#MOTWC'"; query_sql "DELETE FROM global_reg_value where str = '#MOTWKI'"; close; case 4: next; mes "[Map Of The Day]"; mes "Come Back When You are free again"; close; } } Edited August 17, 2013 by Capuche Change to BBCode Quote
sapiro1403 Posted July 27, 2013 Posted July 27, 2013 download + test set map to thanatos odin temple bio laboratory Quote
stydianx Posted July 30, 2013 Posted July 30, 2013 how does this exactly work, cause i set the map to prontera but nothing appeared. no monsters at all. Quote
Checkmate Posted August 16, 2013 Posted August 16, 2013 Yeahh.. me too..A actually dont know how to make this script works..Someone could come in and tell us how to make this script working with each explanation... Quote
TheFinalEpisode Posted November 8, 2013 Posted November 8, 2013 where is the link of fixed version? Quote
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.