Jump to content

kyleanthonydizon

Members
  • Posts

    100
  • Joined

  • Last visited

Everything posted by kyleanthonydizon

  1. Hi, I've been trying to implement an @afk command, but whenever I recompile, I stops somewhere =( Then when I start server, map-server is not showing. May I request for a working @afk command?
  2. - script PvPPoints -1,{ OnInit: set .Delay,180; setarray $PVPMAPS1$[0],"guild_vs2","guild_vs3"; //you can add more maps here end; OnPCKillEvent: if (getcharid(0)) for(set .@i,0; .@i < getarraysize($PVPMAPS1$); set .@i,.@i+1) { if(strcharinfo(3) == $PVPMAPS1$[.@i]) { if( @Delay < gettimetick(2) ){ set .@Amount,1; set #PVPPOINTS,#PVPPOINTS + .@Amount; dispbottom "Gained "+.@Amount+" Cash Point. Total = "+#PVPPOINTS+" PvP Points."; if( .Delay ) set @Delay,gettimetick(2) + .Delay; } } } end; OnPCDieEvent: if(strcharinfo(3) == $PVPMAPS1$[.@i]) { if(strcharinfo(3) == $PVPMAPS1$[.@i]) { set .@Amount,1; set #PVPPOINTS,#PVPPOINTS - .@Amount; dispbottom "Lost "+.@Amount+" Cash Point. Total = "+#PVPPOINTS+" Cash Points."; end; } } How will I catch like, If PVPPoints <= 0 it will not minus 1 points.
  3. What if I want multiple maps?
  4. Hi sir, what if I want to add to PvP and WoE Maps only? And minus points everytime you die.
  5. Im at r19679 version of rAthena SVN Version. Is there a bug in double casting? Why is it not working?
  6. Oops, sorry. Whenever I log in, I dont see a connection request at login-server, then client says "Failed to connect to server"
  7. How about for this one? script.c: In function `script_getitem_randomoption`: script.c:6730: warning: cast from pointer to integer of different size script.c:6732: warning: cast from pointer to integer of different size script.c:6734: warning: cast from pointer to integer of different size
  8. for (i = 0; i < opt_id_n && i < MAX_ITEM_RDM_OPT; i++) { it->option[i].id = (short)__64BPRTSIZE(get_val2(st,reference_uid(opt_id_id,opt_id_idx+i),opt_id_ref)); script_removetop(st, -1, 0); it->option[i].value = (short)__64BPRTSIZE(get_val2(st,reference_uid(opt_val_id,opt_val_idx+i),opt_val_ref)); script_removetop(st, -1, 0); it->option[i].param = (char)__64BPRTSIZE(get_val2(st,reference_uid(opt_param_id,opt_param_idx+i),opt_param_ref)); script_removetop(st, -1, 0); } here are the lines indicated in script.c
  9. Yup, already disabled/commented server side.
  10. Yes, changed clientinfo as well. Forgot to add that up. Lol
  11. Oh, will try it. I thought it was vit based. Players told me it was vit based. Haha
  12. Hi, I get this warnings/errors when I recompile after I updated my version of rAthena to 19679. make[1]: Warning: File `battle.c` has modification time 5.4e+04s in the future ============================================================================== make[1]: Warning: Clock skew detected. Your build may be incomplete ============================================================================== script.c: In function `script_getitem_randomoption`: script.c:6730: warning: cast from pointer to integer of different size script.c:6732: warning: cast from pointer to integer of different size script.c:6734: warning: cast from pointer to integer of different size ============================================================================== make[1]: Warning: File `.../common/mmo.h` has modification time 5.4e+04s in the future Attached here is my whole compile log.. compile-May05.log
  13. /// Comment to disable the official packet obfuscation support. /// When enabled, make sure there is value for 'packet_keys' of used packet version or /// defined 'packet_keys_use' in db/[import/]packet_db.txt. /// This requires PACKETVER 2011-08-17 or newer. //#define PACKET_OBFUSCATION Yes sir, it's commented/disabled
  14. here is my mmo.h #ifndef PACKETVER #define PACKETVER 20131222 //#define PACKETVER 20120410 #endif changed this to #ifndef PACKETVER #define PACKETVER 20150916 //#define PACKETVER 20120410 #endif and my packet_db.txt //packet_db_ver: 53 packet_db_ver: default packet_keys_use: default changed this to packet_db_ver: 53 //packet_db_ver: default packet_keys_use: default Then stopped the server, recompiled, started it. Now it says, Failed to connect to server.. Here is my NEMO Diff log.. 8 Custom Window Title 9 Disable 1rag1 type parameters (Recommended) 10 Disable 4 Letter Character Name Limit 11 Disable 4 Letter User Name Limit 12 Disable 4 Letter Password Limit 13 Disable Ragexe Filename Check (Recommended) 15 Disable HShield (Recommended) 18 Skip Service Selection Screen 19 Enable Title Bar Menu 20 Extend Chat Box 21 Extend Chat Room Box 22 Extend PM Box 23 Enable /who command (Recommended) 24 Fix Camera Angles (Recommended) 28 Increase Headgear ViewID 32 Increase Zoom Out Max 33 Always Call SelectKoreaClientInfo() (Recommended) 34 Enable /showname (Recommended) 35 Read Data Folder First 36 Read msgstringtable.txt (Recommended) 37 Read questid2display.txt (Recommended) 38 Remove Gravity Ads (Recommended) 39 Remove Gravity Logo (Recommended) 40 Restore Login Window (Recommended) 41 Disable Nagle Algorithm (Recommended) 43 Always Use Email for Char Deletion 44 Translate Client (Recommended) 47 Use Ragnarok Icon 48 Use Plain Text Descriptions (Recommended) 49 Enable Multiple GRFs (Recommended) 50 Skip License Screen 53 Use Ascii on All LangTypes (Recommended) 61 Disable Packet Encryption 64 @ Bug Fix (Recommended) 67 Disable Quake skill effect 68 Enable 64k Hairstyle 71 Ignore Resource Errors 72 Ignore Missing Palette Error 73 Remove Hourly Announce (Recommended) 74 Increase Screenshot Quality 75 Enable Flag Emoticons 213 Disable Help Message on Login (Recommended) 84 Remove Serial Display (Recommended) 215 Increase Map Quality 88 Allow space in guild name 90 Enable DNS Support (Recommended) 91 Disconnect to Login Window 97 Cancel to Login Window (Recommended) I want to use the 2015-09-16aRagexe. Any solution?
  15. wd.damage = 40 * sstatus->str + sstatus->hp * 8 * skill_lv / 100; Hi, is this formula buggy? Because I have 255 vit and still the the damage is at 20k only. Final Strike is based on vit right? Are they any solutions for this?
  16. Yes I did, to 53.. Hi, In your second instructions. Yes I disabled it, because I asked for the previous logs of the diffed client they gave me. And I just followed the logs. BUMP~
  17. Hi, this is my client date 2015-09-16aRagexe Yes I used the correct packet version Yes I did recompile
  18. I tried updating my client version, change mmo.h (PACKETVER 20150916) and clientinfo(53). And it says, Failed to connect to server. Am I missing something?
  19. How will I remove THQ's cooldown? //===== rAthena Script ======================================= //= Treasure Hunter Quests //===== By: ================================================== //= Fredzilla //===== Current Version: ===================================== //= 1.4 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= Start for Treasure hunter quests //===== Additional Comments: ================================= //= Event_THQS - Used to check if you have already registered //= #Treasure_Token - used to keep track of tokens //= 1.0 - Straight conversionof Aegis NPC file //= 1.1 Added time penalty to prevent get quests to often [Lupus] //= 1.2 Fixed not working penalty, added anti-cheat [Lupus] //= 1.3 Changed some bad RGB Codes. (bugreport:211) [Samuray22] //= 1.4 Fixed typos. (bugreport:2607) [Kisuka] //============================================================ yuno_in01,112,151,6 script Quest Manager 62,{ mes "[Guy]"; mes "Welcome to the Treasure Hunters Guild "+strcharinfo(0)+"."; next; if (On_Quest == 0) goto N_NewQuest; mes "[Guy]"; mes "Look " +strcharinfo(0)+ ", you can only 1 quest at a time, you should finish the quest unless you have given up."; mes "Giving up will cost you ^FF00002500z^000000."; next; menu "No, never would I leave a quest!",-,"Yah I'm pathetic... Pay 2500z",N_PayZeny; mes "[Guy]"; mes "Good well get back out there."; close; N_PayZeny: if (Zeny < 2500) goto N_ZenyFail; set one_qset, 0; set two_qset, 0; set three_qset, 0; set four_qset, 0; set five_qset, 0; set six_qset, 0; set seven_qset, 0; set eight_qset, 0; set nine_qset, 0; set ten_qset, 0; set On_Quest, 0; set Zeny,Zeny-2500; //add time delay penalty. You can get another quest after 2 - 3 hours. [Lupus] set #THQ_DELAY, gettimetick(2) + (60 * rand(15,20)); mes "[Guy]"; mes "Its sad to see someone give a quest up..."; mes "Shame on you."; emotion e_ag; close; N_ZenyFail: mes "[Guy]"; mes "Thats sad you don't even have ^FF00002500z^000000."; close; N_NewQuest: if (Event_THQS == 0) goto N_Signup; //checking if time penalty is over [Lupus] if (#THQ_DELAY > gettimetick(2)) goto L_NoQuestsForYet; mes "[Guy]"; mes "Ahh welcome fellow Treasure Hunter."; mes "You currently have ^FF0000"+#Treasure_Token+"^000000 treasure tokens!!!"; mes "Would you like me to asign you a Quest?"; next; menu "Yes I would like a Quest Please.",-,"Sorry Guy no time today.",N_NoTime; mes "[Guy]"; mes "Ok lets see what quest we can give you today."; mes "The quest names in ^FF0000This Colour^000000 mean that they are more challanging then the rest, but have better rewards."; next; set #THQ_DELAY, gettimetick(2) + (60 * 10); //you can get another quest after 10 minutes emotion e_no1; if(@treasure_job==0) set @treasure_job,rand(1,10); //doesn't allow cheaters to pick any quest they want if(@treasure_job==2) goto N_JobList2; if(@treasure_job==3) goto N_JobList3; if(@treasure_job==4) goto N_JobList4; if(@treasure_job==5) goto N_JobList5; if(@treasure_job==6) goto N_JobList6; if(@treasure_job==7) goto N_JobList7; if(@treasure_job==8) goto N_JobList8; if(@treasure_job==9) goto N_JobList9; if(@treasure_job==10) goto N_JobList10; goto N_JobList1; //if(@treasure_job==1) N_NoTime: mes "[Guy]"; mes "Alright maybe next time "+strcharinfo(0)+"."; emotion e_hmm; close; N_Signup: mes "[Guy]"; mes "I'm afraid you must sign up for the guild before you can go on a quest!"; emotion e_sry; close; L_NoQuestsForYet: mes "[Guy]"; mes "I'm afraid there aren't any Quests for you yet."; .@time = #THQ_DELAY - gettimetick(2); if( .@time > 60 ) .@time = .@time/60; mes "Call in "+.@time+" "+((#THQ_DELAY-gettimetick(2))>60?"minute(s)":"second(s)")+" later."; emotion e_sry; close; L_QuestGiven: set On_Quest,1; set @treasure_job,0; //next time u get random quest close; ///////Job list 1/////// N_JobList1: mes "[Guy]"; mes "Ok you have a couple quests that can be done here."; next; menu "Lost Old Man.",-,"Master needs his Bow.",N_MasterBow,"The Hit List.",N_HitList,"^FF0000The Sad Widow.^000000",N_SadWidow; mes "[Guy]"; mes "^FF0000Lost Old Man^000000"; mes "^FF0000------------^000000"; mes "This is an easy and low payed quest."; mes " "; mes "A wife came in asking us to find his husband, she seems to come in alot asking us to find him over and over again."; next; mes "[Guy]"; mes "But he always seems to be around the same place so there isn't much looking involved,check the mountains 1 west and 1 north of prontera."; set one_qset,1; goto L_QuestGiven; N_MasterBow: mes "[Guy]"; mes "^FF0000Master needs his Bow^000000"; mes "^FF0000--------------------^000000"; mes "This is just a package delivery run, no big deal or anything."; mes " "; mes "Take this to an archer in the Archer Village outside of Payon."; getitem 1072,1; //Delivery_Box set one_qset,2; goto L_QuestGiven; N_HitList: mes "[Guy]"; mes "^FF0000The Hit List^000000"; mes "^FF0000------------^000000"; mes "In this quest you get to see some action."; mes " "; mes "There has been a farmer that keeps having all his crops eaten by ^FF0000Thief Bugs, Porings, and Lunitics^000000 here is a lost of what I need you to do. He is waiting East of Prontera."; next; mes "[Guy]"; mes "Ok go to the east and bash those little bastards like there is no tommorow. When you are done with that list you have just discard it, but you will NOT get another one!."; set one_qset,3; goto L_QuestGiven; N_SadWidow: mes "^FF0000The Sad Widow^000000"; mes "^FF0000*************^000000"; mes "This is just another quest with possable well pay."; mes " "; mes "There is an old Widow in pontera, she recently lost her husband due to a monster attack.She has requested a Guild member to come talk to her at the Pontera Graveyard."; set one_qset,4; goto L_QuestGiven; ///////Job list 2/////// N_JobList2: mes "[Guy]"; mes "Ok you have a couple quests that can be done here."; next; menu "The Strange Letter",-,"Jur for Jeramiah",N_JurJeramiah,"Bee Keepers Hunny",N_BeeHunny,"^FF0000The Wander Man^000000",N_WanderMan; mes "^FF0000The Strange Letter^000000"; mes "^FF0000------------------^000000"; mes "I do not know much about this quest."; mes " "; mes "A strange man came in here yesterday and asked me to deliver this ^FF0000Strange Letter^000000 to some woman in Morroc. Knowing us we do not ask questions so you must take care of this delivery."; mes "The Woman is in located in Morroc and her name is Erika."; getitem 1072,1; //Delivery_Message set two_qset, 1; goto L_QuestGiven; N_JurJeramiah: mes "^FF0000Jur for Jeramiah^000000"; mes "^FF0000----------------^000000"; mes "Standard delivery quest."; mes " "; mes "Jeramiah ordered a Special Jur from our weapon shop.Your Job is to deliver it to him in the Assasin Temple."; getitem 1998,1; //Jeramiah's_Jur set two_qset,2; goto L_QuestGiven; N_BeeHunny: mes "^FF0000Bee Keepers Hunny^000000"; mes "^FF0000-----------------^000000"; mes "Strange man in the marsh need your help."; mes " "; mes "There is a strange man in the forest in ^FF00001 south and 1 west^000000 of Prontera, he need your help with something."; set two_qset,3; goto L_QuestGiven; N_WanderMan: mes "^FF0000The Wander Man^000000"; mes "^FF0000**************^000000"; mes "There is a woman in Payon that is in desperate for aid."; mes " "; mes "There is a woman in Payon named Molly please get to her as soon as possable the letter she sent here sounded like someone was killing her."; set two_qset,4; goto L_QuestGiven; ///////Job list 3/////// N_JobList3: mes "[Guy]"; mes "Ok you have a couple quests that can be done here."; next; menu "Damn Pixies!",-,"Package Delivery",N_Delivery1,"Prontera Culvert",N_ProntCulvert,"^FF0000Trouble at the Coal Mine^000000",N_CoalMine; mes "^FF0000Damn Pixies!^000000"; mes "^FF0000------------^000000"; mes "Have you ever been to Hell?"; mes " "; mes "A man outside of ^FF0000Ant Hell^000000 has requested your audiance, I suggest you hurry."; set three_qset,1; goto L_QuestGiven; N_Delivery1: mes "^FF0000Package Delivery^000000"; mes "^FF0000----------------^000000"; mes "Standard drop off quest."; mes " "; mes "In this quest you need to deliver a mystery box to someone names ^FF0000Flank at the bridge between Aldebaran and Juno^000000."; getitem 1082,1; //Delivery_Box_ set three_qset,2; goto L_QuestGiven; N_ProntCulvert: mes "^FF0000Prontera Culvert^000000"; mes "^FF0000----------------^000000"; mes "The bugs,They are everywere!."; mes " "; mes "The ^FF0000Prontera Culvert^000000 is out of control!Sign up as a volenteer to clean out some of the culvert."; next; mes "I know it seems like there is no stoping them but however many you kill does makes a differance. After you have signed up, inside the Culvert there will be a Knight that will give you a quest."; set three_qset,3; goto L_QuestGiven; N_CoalMine: mes "^FF0000Trouble at the Coal Mine^000000"; mes "^FF0000************************^000000"; mes "The fun...err...trouble never stops in Rune Midgar."; mes " "; mes "Recently there was an acident at the coal mines. There was a huge chasm that released some undead Evil Druids."; next; mes "The Evil Druids started to turn all the workers into the undead. We do not know why, but we do not want to find out, contact a man named Rudolfo outside the Coal Mines."; set three_qset,4; goto L_QuestGiven; ///////Job list 4/////// N_JobList4: mes "[Guy]"; mes "Ok you have a couple quests that can be done here."; next; menu "Zombie Attack",-,"Mystic Wizard",N_MWizard,"Aww shoot!",N_Shoot,"^FF0000Emperium^000000",N_Emp; mes "^FF0000Zombie Attack^000000"; mes "^FF0000-------------^000000"; mes "The undead have invaded Payon Cave!"; mes " "; mes "I remember when Payon Cave used to be a safe place to visit, but now undead Zombies have infested the cave! Please contact ^FF0000Flora outside on Payon Cave^000000 and aid her."; set four_qset,1; goto L_QuestGiven; N_MWizard: mes "^FF0000Mystic Wizard^000000"; mes "^FF0000-------------^000000"; mes "Proto-type of a Staff must be delivered to Zed the Wizard."; mes " "; mes "Zed the Wizard has requested to try out a new un-named proto-type staff. It will be your job to deliver this to him. Zed tend to stay within the general area of Juno."; getitem 1999,1; //Zed's_Staff set four_qset,2; goto L_QuestGiven; N_Shoot: mes "^FF0000Aww shoot!^000000"; mes "^FF0000----------^000000"; mes "A little girl is in trouble."; mes " "; mes "There is a little girl in trouble, her name is Dassy and she is ^FF0000east of the prontera fountan^000000."; set four_qset,3; goto L_QuestGiven; N_Emp: mes "^FF0000Emperium^000000"; mes "^FF0000********^000000"; mes "This is a strange quest that I know little about."; mes " "; mes "Someone in ^FF0000Prontera Guild Hall^000000 has requested to see one of our members, his name is Czhore."; set four_qset,4; goto L_QuestGiven; ///////Job list 5/////// N_JobList5: mes "[Guy]"; mes "Ok you have a couple quests that can be done here."; next; menu "Savage Land",-,"Pyramid's part 1",N_PyrPRT1,"Thinking first",N_Thinkfirst,"^FF0000The not so friendly ghost^000000",N_Ghost; mes "^FF0000Savage Land^000000"; mes "^FF0000-----------^000000"; mes "Easy for some very hard for others."; mes " "; mes "A man named Lithin wish's to give you a quest, you can find him north of prontera inside of ^FF0000The Hidden Temple^000000"; set five_qset,1; goto L_QuestGiven; N_PyrPRT1: mes "^FF0000Pyramid's^000000"; mes "^FF0000---------^000000"; mes "Its funny cause no one knows how these were really made."; mes " "; mes "Aperently the Pyramids have are beganing to be infested with undead activity,outside the pyramids a man will be waiting for you. He did no give us his name but he asked for you to hurry."; set five_qset,2; goto L_QuestGiven; N_Thinkfirst: mes "^FF0000Thinking first^000000"; mes "^FF0000--------------^000000"; mes "This sounds like another one of those ditzy girl quests..."; mes " "; mes "Dazzy the local blond around Geffen has asked for you to deliver her these flowers. I don't know why someone would send flowers to herself..."; getitem 744,1; //Bouquet set five_qset,3; goto L_QuestGiven; N_Ghost: mes "^FF0000The not so friendly ghost^000000"; mes "^FF0000*************************^000000"; mes "Well no one ever said Casper was nice behind the sceens."; mes " "; mes "A wizard on the 3rd floor of geffen tower want's to talk to you about the anchient ruins underneath the city."; set five_qset,4; goto L_QuestGiven; ///////Job list 6/////// N_JobList6: mes "[Guy]"; mes "Ok you have a couple quests that can be done here."; next; menu "Package for thiefs",-,"Pyramid's part 2",N_PyrPRT2,"Special delivery",N_Delivery2,"^FF0000Geffenia^000000",N_Gef; mes "^FF0000Package for thiefs^000000"; mes "^FF0000------------------^000000"; mes "How ironic."; mes " "; mes "Deliver this Box to the Thiefs guild."; getitem 1083,1; //Delivery_Box__ set six_qset,1; goto L_QuestGiven; N_PyrPRT2: mes "^FF0000Pyramid's part 2^000000"; mes "^FF0000----------------^000000"; mes "More undead action in this triangle!"; mes " "; mes "Talk to a man outside the entrance of the pyramids, he seems to have another quest for you."; set six_qset,2; goto L_QuestGiven; N_Delivery2: mes "^FF0000Special delivery^000000"; mes "^FF0000----------------^000000"; mes "Well most of what we do is run packages, this is no different from other's."; mes " "; mes "Take this box, DO NOT OPEN IT! To a little girl in Lutie named Chirach she should be around santa."; getitem 1083,1; //Delivery_Box__ set six_qset,3; goto L_QuestGiven; N_Gef: mes "^FF0000Geffenia^000000"; mes "^FF0000********^000000"; mes "The little children of Geffen have been haveing strange nightmares."; mes " "; mes "We belive that the ruins underneath geffen are causeing this problem, talk to a Wizard named Zuuzuu inside Geffen Tower for your mission."; set six_qset,4; goto L_QuestGiven; ///////Job list 7/////// N_JobList7: mes "[Guy]"; mes "Ok you have a couple quests that can be done here."; next; menu "Apple Juice",-,"Delivery",N_Delivery3,"^FF0000Golden Thief Bug^000000",N_GTB,"^FF0000Evil Pirates^000000",N_EvilPirates; mes "^FF0000Apple Juice^000000"; mes "^FF0000-----------^000000"; mes "Can't say no to some good apple juice."; mes " "; mes "There is a little girl up in prontera Square a bit north from the fountain, go talk to her."; set seven_qset,1; goto L_QuestGiven; N_Delivery3: mes "^FF0000Delivery^000000"; mes "^FF0000--------^000000"; mes "So many packages so little time."; mes " "; mes "Take this box to a man in Alberta named Charles."; getitem 1082,1; //Delivery_Box_ set seven_qset,2; goto L_QuestGiven; N_GTB: mes "^FF0000Golden Thief Bug^000000"; mes "^FF0000****************^000000"; mes "The prontera Culvert has never been the same..."; mes " "; mes "Well there have been reports of a Golden Thief Bug running around the bottem on the Culvert. Talk to a Knight inside the Culvert."; set seven_qset,3; goto L_QuestGiven; N_EvilPirates: mes "^FF0000Evil Pirates^000000"; mes "^FF0000************^000000"; mes "A ghost ship has washed up on shore on an island outside of Izlude."; mes " "; mes "A female assasin has a quest for you, she is waiting outside the Ghost Ship.There have been reports of evil undead pirates lurking around inside the ship."; set seven_qset,4; goto L_QuestGiven; ///////Job list 8/////// N_JobList8: mes "[Guy]"; mes "Ok you have a couple quests that can be done here."; next; menu "Banana Juice",-,"Another Delivery",N_Delivery4,"My lost beeds",N_LostBeeds,"^FF0000Baphomet!^000000",N_Bapho; mes "^FF0000Banana Juice^000000"; mes "^FF0000------------^000000"; mes "Sound gross to some good to others."; mes " "; mes "There is a little girl up in prontera Square a bit north from the fountain, go talk to her."; set eight_qset,1; goto L_QuestGiven; N_Delivery4: mes "^FF0000Another Delivery^000000"; mes "^FF0000----------------^000000"; mes "Well yah box delivering is in high demand,lots of lazy people."; mes " "; mes "Take this package to a man in Morroc named Klye."; getitem 1081,1; //Delivery_Box set eight_qset,2; goto L_QuestGiven; N_Bapho: mes "^FF0000Baphomet!^000000"; mes "^FF0000*********^000000"; mes "Hidden in the Temple he watches and guards."; mes " "; mes "Rumor has it that a Goat Man is lurking in the Hidden Temple, There is also a man in the Hidden Temple names Zack that needs you help with this Goat Man known as Baphomet."; set eight_qset,3; goto L_QuestGiven; N_LostBeeds: mes "^FF0000My lost Beeds^000000"; mes "^FF0000-------------^000000"; mes "Oh great I smell stupidity..."; mes " "; mes "A little girl in Payon wants to talk to you, her name is Flower, What a stupid name,Hahaha."; set eight_qset,4; goto L_QuestGiven; ///////Job list 9/////// N_JobList9: mes "[Guy]"; mes "Ok you have a couple quests that can be done here."; next; menu "Smelly Box",-,"Payon Cave",N_PayonC,"^FF0000Sohee's Everywere!^000000",N_Sohee,"^FF0000Moonlight Flower^000000",N_Moonlight; mes "^FF0000Smelly Box^000000"; mes "^FF0000----------^000000"; mes "Oh god please get this out of here fast."; mes " "; mes "Oh man smells like someone died in here.Take this to the Magic School in Geffen and hurry,ahh the smell its burning my eye's!!!"; getitem 1082,1; //Delivery_Box_ set nine_qset,1; goto L_QuestGiven; N_Sohee: mes "^FF0000Sohee's Everywere!^000000"; mes "^FF0000******************^000000" ; mes "Hmmm seem's a man named Jack wants to speak to you in the Archer Guild House."; mes " "; mes "Well what we know about Payon is that a while ago there was a freak fire that burnt down the old school."; next; mes "The strange thing about what happened was that the children inside did not seem to die from the flames."; mes "Speak to the little school girl somewere in Payon."; set nine_qset,2; goto L_QuestGiven; N_Moonlight: mes "^FF0000Moonlight Flower^000000"; mes "^FF0000****************^000000" ; mes "Hmmm seem's a man named Jack wants to speak to you in the Archer Guild House."; mes " "; mes "Well I don't know much about this, it has to do with the deepest reagions of Payon Cave, We don't know much because no one ever seems to make it back alive."; set nine_qset,3; goto L_QuestGiven; N_PayonC: mes "^FF0000Payon Cave^000000"; mes "^FF0000----------^000000" ; mes "Hmmm seem's a man named Jack wants to speak to you in the Archer Guild House."; mes " "; mes "The farther we go into the cave the stranger it gets."; set nine_qset,4; goto L_QuestGiven; ///////Job list 10/////// N_JobList10: mes "[Guy]"; mes "Ok you have a couple quests that can be done here."; next; menu "The Blank Box",-,"^FF0000Eddga^000000",N_Eddga,"^FF0000Phreeoni^000000",N_Phreeoni,"^FF0000Maya^000000",N_Maya; mes "^FF0000The Blank Box^000000"; mes "^FF0000-------------^000000"; mes "Package to Morroc"; mes " "; mes "There is nothing writen on this box but a notice to deliver it to a man Kreg."; getitem 1082,1; //Delivery_Box_ set ten_qset,1; goto L_QuestGiven; N_Eddga: mes "^FF0000Eddga^000000"; mes "^FF0000*****^000000"; mes "Tony the Tiger is on crack and destroying the forest."; mes " "; mes "Talk to a man outside the 'Hidden' Hunter Guild, He needs your help."; set ten_qset,2; goto L_QuestGiven; N_Phreeoni: mes "^FF0000Phreeoni^000000"; mes "^FF0000********^000000"; mes "He is big and Pink and you run and hide!"; mes " "; mes "This guy just poped into some hole one day, He dosent look that tough but you would be supprised. Talk to a man named Caral outside of Ant Hell."; set ten_qset,3; goto L_QuestGiven; N_Maya: mes "^FF0000Maya^000000"; mes "^FF0000****^000000"; mes "Something scary!"; mes " "; mes "This half naked freak need an army to take down, now its your job, good luck. Meet a girl named Jeni outside of the back entrance to Ant Hell."; set ten_qset,4; goto L_QuestGiven; }
  20. Is this the reason why a player got the jackpot? Hahahaha. A player in my server got the jackpot. I put the jackpot as 10pcs proof of donation (item id #7179) //********************************************************************************** // ____ _ _ _ ____ //| _ \ ___ ___ ____ | | ___ ____ ___ ___ __ ___ _ _ | |_| |/ __ | //| |__// _ \ / _ \ | _ \| | / _ \ | _ \ / _ \ / _| / _)/ _ \ | \| ||___ |\__ | //| | | __/ ||_|| | |__/| || __/ | |__/| __/ | | _\ \ ||_|| | \\ | | | | | //|_|___\___|_\___/_| |___|_|_\___|_| |____\___|_|_|_(___/ \___/_|_|\_|____|_|___|_| //------------------|_|-------------|_|--------------------------------------------- //********************************************************************************** //===== rAthena Script ============================================================= //= Powerball Lottery //===== By: ======================================================================== //= Peopleperson49 (Eddie) //===== Start Date: ================================================================ //= 19FEB2008 //===== Current Version: =========================================================== //= 1.7 //===== Compatible With: =========================================================== //= rAthena SVN //===== Description: =============================================================== //= This was one of my first scripts I ever made. I learned to script by breaking //= these type of scripts down and recreating them from scratch. This script was //= recreated in this same way. It is very similar to the original in design. //= Powerball lottery picks 5 miniballs and 1 powerball. Different pay amounts //= based on type of matches made. //===== Version Control: =========================================================== //= 1.0 First Version. //= 1.1 Alligned my script to use the official version location and NPC. //= 1.2 Modified the times to every 4 hours. //= 1.3 Added Lottery Rules. //= 1.4 Refomatted the menus to a better format. //= 1.5 Added pretty colors to script. //= 1.6 Added easy to set variables for prize amounts. //= 1.7 Optomized AssistLottoGen script. //===== Additional Comments: ======================================================= prontera,147,153,5 script Peculiar Lottery 76,{ mes "[Lottery Official]"; mes "Welcome to the Peculiar lottery!"; mes " "; mes "Note: Please play responsibly and remember that the Peculiar lottery is only a game! If you feel you must play, get some help!"; next; if(getgmlevel()>98) { goto GMMenu; } menu "Rules",Rules,"Win Amount Table",Table,"Buy New Ticket",Buy,"Check Numbers",Check,"Cancel",Cancel; close; Rules: next; mes "[Lottery Rules]"; mes "• Each ticket costs 10,000,000 zeny each."; mes " "; mes "• Thier are 11 different ways to win the Peculiar lottery!"; mes " "; mes "• Select 5 Miniballs out of 30 (these can be drawn in any order to win)."; mes " "; mes "• Each Miniball must be a different number from the rest."; mes " "; mes "• The Powerball can be any number from 1 to 30 (even if already used by a Miniball)."; mes " "; mes "• A new drawing happens every 4 hours (0800, 1200, 1600, 2000, 2400, 0400) server time."; mes " "; mes "• A ticket must be claimed before the next drawing takes place."; mes " "; mes "• Match all 5 Miniballs and the Powerball to win the Powerball Jackpot!"; mes " "; mes "• Match all 5 Miniballs to win a credits!"; mes " "; mes "• Match any 4 Miniballs & the Powerball to win a credits!"; mes " "; mes "• Match any 4 Miniballs to win a credits!"; mes " "; mes "• Match any 3 Miniballs & the Powerball to win a credits!"; mes " "; mes "• Match any 3 Miniballs to win a credits!"; mes " "; mes "• Match any 2 Miniballs & the Powerball to win a credits!"; mes " "; mes "• Match any 2 Miniballs to win a credits!"; mes " "; mes "• Match any Miniball & the Powerball to win a credits!"; mes " "; mes "• Match any Miniball to win a credits!"; mes " "; mes "• Match the Powerball to win a credits!"; mes " "; mes "• All winners will be announced."; next; mes "[Lottery Official]"; mes "What would you like to do?"; menu "Rules",Rules,"Win Amount Table",Table,"Buy New Ticket",Buy,"Check Numbers",Check,"Cancel",Cancel; close; Table: next; mes "[Win Amount Table]"; mes "Powerball Jackpot: ^FF0000"+$PowerballWin11a$+"^000000."; mes "5 Ball Prize: ^FF0000"+$PowerballWin10a$+"^000000."; mes "4 Ball & PB Prize: ^FF0000"+$PowerballWin9a$+"^000000."; mes "4 Ball Prize: ^FF0000"+$PowerballWin8a$+"^000000."; mes "3 Ball & PB Prize: ^FF0000"+$PowerballWin7a$+"^000000."; mes "3 Ball Prize: ^FF0000"+$PowerballWin6a$+"^000000."; mes "2 Ball & PB Prize: ^FF0000"+$PowerballWin5a$+"^000000."; mes "2 Ball: ^FF0000"+$PowerballWin4a$+"^000000."; mes "1 Ball & PB Prize: ^FF0000"+$PowerballWin3a$+"^000000."; mes "1 Ball: ^FF0000"+$PowerballWin2a$+"^000000."; mes "Powerball Prize: ^FF0000"+$PowerballWin1a$+"^000000."; if(getgmlevel()>98) { goto GMMenu; } menu "Rules",Rules,"Buy New Ticket",Buy,"Check Numbers",Check,"Cancel",Cancel; close; // PURCHASE TICKET Buy: next; //if(#LID==$LID) { mes "[Lottery Official]"; mes "It appears that you already have a ticket for the upcoming draw."; mes "You may only purchase one ticket per draw."; close; } mes "[Lottery Official]"; mes "Tickets cost ^0000FF"+10,000,000+"z^000000."; menu "I would like to buy a ticket.",-,"Cancel",Cancel; next; mes "[Lottery Official]"; mes "Are you sure? If you cancel after this there is no refund?"; menu "Here is my zeny.",-,"Nevermind",Cancel; if(zeny<10000000) { next; mes "[Lottery Official]"; mes "You can't afford a lottery ticket. Maybe you should sell a kidney!"; close; } set zeny,zeny-10000000; set trustfundbalance,trustfundbalance+100; next; mes "[Lottery Official]"; mes "Would you like your numbers hand picked or computer generated?"; menu "Computer Generated",ComputerGen,"Hand Picked",HandPick,"Cancel",-; mes "[Lottery Official]"; mes "Come back soon!"; close; Check: next; mes "[Lottery Official]"; if($LID>99999) { mes "Your Lotto Ticket Number:"; mes "^0000FF["+#LW1+"] ["+#LW2+"] ["+#LW3+"] ["+#LW4+"] ["+#LW5+"]^000000"; mes "Your Powerball Number: ^0000FF["+#LW6+"]^000000"; } mes "Last Winning Numbers:"; mes "^FF0000["+$LW1+"] ["+$LW2+"] ["+$LW3+"] ["+$LW4+"] ["+$LW5+"]^000000"; mes "Last Winning Powerball: ^FF0000["+$LW6+"]^000000"; menu "Claim Prize",Claim,"Buy New Ticket",Buy,"Cancel",-; mes "[Lottery Official]"; mes "Come back soon!"; close; ComputerGen: next; set @LottoNumber1,0; set @LottoNumber2,0; set @LottoNumber3,0; set @LottoNumber4,0; set @LottoNumber5,0; set @LottoNumber6,0; Pick1: set @LottoNumber1,rand(1,30); Pick2: set @LottoNumber2,rand(1,30); if(@LottoNumber2==@LottoNumber1) { goto Pick2; } Pick3: set @LottoNumber3,rand(1,30); if(@LottoNumber3==@LottoNumber2) { goto Pick3; } if(@LottoNumber3==@LottoNumber1) { goto Pick3; } Pick4: set @LottoNumber4,rand(1,30); if(@LottoNumber4==@LottoNumber2) { goto Pick4; } if(@LottoNumber4==@LottoNumber1) { goto Pick4; } if(@LottoNumber4==@LottoNumber3) { goto Pick4; } Pick5: set @LottoNumber5,rand(1,30); if(@LottoNumber5==@LottoNumber1) { goto Pick5; } if(@LottoNumber5==@LottoNumber2) { goto Pick5; } if(@LottoNumber5==@LottoNumber3) { goto Pick5; } if(@LottoNumber5==@LottoNumber4) { goto Pick5; } Pick6: set @LottoNumber6,rand(1,30); mes "[Lottery Official]"; mes "The computer has selected the following lotto numbers:"; mes "^0000FF["+@LottoNumber1+"] ["+@LottoNumber2+"] ["+@LottoNumber3+"] ["+@LottoNumber4+"] ["+@LottoNumber5+"]^000000"; mes "The computer has selected the following Powerball number:"; mes "^0000FF["+@LottoNumber6+"]^000000"; next; menu "Confirm",Confirm,"Re-Generate",ComputerGen; HandPick: next; mes "[Lottery Official]"; mes "Please get your numbers ready between 1-30. Make sure not to repeat any number twice."; set @LottoNumber1,0; set @LottoNumber2,0; set @LottoNumber3,0; set @LottoNumber4,0; set @LottoNumber5,0; set @LottoNumber6,0; next; mes "[Lottery Official]"; mes "Your first number is..."; Input1: input @LottoNumber1; if(@LottoNumber1<1||@LottoNumber1>30) { goto Input1; } next; mes "[Lottery Official]"; mes "Your second number is..."; mes " "; mes " "; mes " "; mes "Your previous picks:"; mes "^0000FF["+@LottoNumber1+"]^000000"; Input2: input @LottoNumber2; if(@LottoNumber2<1||@LottoNumber2>30) { goto Input2; } if(@LottoNumber2==@LottoNumber1) { goto Input2; } next; mes "[Lottery Official]"; mes "Your third number is..."; mes " "; mes " "; mes " "; mes "Your previous picks:"; mes "^0000FF["+@LottoNumber1+"] ["+@LottoNumber2+"]^000000"; Input3: input @LottoNumber3; if(@LottoNumber3<1||@LottoNumber3>30) { goto Input3; } if(@LottoNumber3==@LottoNumber1) { goto Input3; } if(@LottoNumber3==@LottoNumber2) { goto Input3; } next; mes "[Lottery Official]"; mes "Your fourth number is..."; mes " "; mes " "; mes " "; mes "Your previous picks:"; mes "^0000FF["+@LottoNumber1+"] ["+@LottoNumber2+"] ["+@LottoNumber3+"]^000000"; Input4: input @LottoNumber4; if(@LottoNumber4<1||@LottoNumber4>30) { goto Input4; } if(@LottoNumber4==@LottoNumber1) { goto Input4; } if(@LottoNumber4==@LottoNumber2) { goto Input4; } if(@LottoNumber4==@LottoNumber3) { goto Input4; } next; mes "[Lottery Official]"; mes "Your fifth number is..."; mes " "; mes " "; mes " "; mes "Your previous picks:"; mes "^0000FF["+@LottoNumber1+"] ["+@LottoNumber2+"] ["+@LottoNumber3+"] ["+@LottoNumber4+"]^000000"; Input5: input @LottoNumber5; if(@LottoNumber5<1||@LottoNumber5>30) { goto Input5; } if(@LottoNumber5==@LottoNumber1) { goto Input5; } if(@LottoNumber5==@LottoNumber2) { goto Input5; } if(@LottoNumber5==@LottoNumber3) { goto Input5; } if(@LottoNumber5==@LottoNumber4) { goto Input5; } next; mes "[Lottery Official]"; mes "And your Powerball number is..."; mes " "; mes " "; mes " "; mes "^0000FFYou can pick any number again between 1-30 for this one.^000000"; Input6: input @LottoNumber6; if(@LottoNumber6<1||@LottoNumber6>30) { goto Input6; } next; mes "[Lottery Official]"; mes "Your lotto numbers are:"; mes "^0000FF["+@LottoNumber1+"] ["+@LottoNumber2+"] ["+@LottoNumber3+"] ["+@LottoNumber4+"] ["+@LottoNumber5+"]^000000"; mes "Your Powerball number is:"; mes "^0000FF["+@LottoNumber6+"]^000000"; next; menu "Confirm",Confirm,"Re-Pick",HandPick; close; Confirm: set #LW1,@LottoNumber1; set #LW2,@LottoNumber2; set #LW3,@LottoNumber3; set #LW4,@LottoNumber4; set #LW5,@LottoNumber5; set #LW6,@LottoNumber6; set #LID,$LID; mes "[Lottery Official]"; mes "Here is your ticket. Live Powerball broadcasts are drawn every 4 hours."; mes "Once the Powerball broadcast is announced you have 4 hours to claim your ticket."; set WINONCEMES,0; next; mes "[Lottery Official]"; mes "Good luck!"; close; Cancel: mes "[Lottery Official]"; mes "Come back soon!"; close; Claim: //if(#LID!=$LID) { next; mes "[Lottery Official]"; mes "It appears that your lottery ticket has expired. Please buy another ticket for the upcoming draw."; } if(WINONCEMES==1) { next; mes "[Lottery Official]"; mes "You can only claim a ticket once, please buy another ticket for the upcoming draw."; close; } set @Prize,0; set @PrizeA,0; if(#LW1==$LW1) { set @Prize,@Prize+1; } if(#LW1==$LW2) { set @Prize,@Prize+1; } if(#LW1==$LW3) { set @Prize,@Prize+1; } if(#LW1==$LW4) { set @Prize,@Prize+1; } if(#LW1==$LW5) { set @Prize,@Prize+1; } if(#LW2==$LW1) { set @Prize,@Prize+1; } if(#LW2==$LW2) { set @Prize,@Prize+1; } if(#LW2==$LW3) { set @Prize,@Prize+1; } if(#LW2==$LW4) { set @Prize,@Prize+1; } if(#LW2==$LW5) { set @Prize,@Prize+1; } if(#LW3==$LW1) { set @Prize,@Prize+1; } if(#LW3==$LW2) { set @Prize,@Prize+1; } if(#LW3==$LW3) { set @Prize,@Prize+1; } if(#LW3==$LW4) { set @Prize,@Prize+1; } if(#LW3==$LW5) { set @Prize,@Prize+1; } if(#LW4==$LW1) { set @Prize,@Prize+1; } if(#LW4==$LW2) { set @Prize,@Prize+1; } if(#LW4==$LW3) { set @Prize,@Prize+1; } if(#LW4==$LW4) { set @Prize,@Prize+1; } if(#LW4==$LW5) { set @Prize,@Prize+1; } if(#LW5==$LW1) { set @Prize,@Prize+1; } if(#LW5==$LW2) { set @Prize,@Prize+1; } if(#LW5==$LW3) { set @Prize,@Prize+1; } if(#LW5==$LW4) { set @Prize,@Prize+1; } if(#LW5==$LW5) { set @Prize,@Prize+1; } if(#LW6==$LW6) { set @PrizeA,@PrizeA+1; } if(@Prize==5 && @PrizeA==1) { goto Win11; } if(@Prize==5 && @PrizeA==0) { goto Win10; } if(@Prize==4 && @PrizeA==1) { goto Win9; } if(@Prize==4 && @PrizeA==0) { goto Win8; } if(@Prize==3 && @PrizeA==1) { goto Win7; } if(@Prize==3 && @PrizeA==0) { goto Win6; } if(@Prize==2 && @PrizeA==1) { goto Win5; } if(@Prize==2 && @PrizeA==0) { goto Win4; } if(@Prize==1 && @PrizeA==1) { goto Win3; } if(@Prize==1 && @PrizeA==0) { goto Win2; } if(@Prize==0 && @PrizeA==1) { goto Win1; } mes "[Lottery Official]"; mes "Bad luck, it appears you do not hold a winning ticket."; next; mes "[Lottery Official]"; mes "Better luck next time!."; next; menu "Buy New Ticket",Buy,"Cancel",-; mes "[Lottery Official]"; mes "Come back soon!"; close; // MATCHED 5 & Powerball TO WIN Powerball Win11: next; mes "[Lottery Official]"; mes "You have matched all five Miniball numbers and the Powerball number!"; mes "Powerball Jackpot!"; mes "You've won ^0000FF"+$PowerballWin11a$+"^000000."; getitem $PowerballWin11,10; Announce "Lottery Official: "+strcharinfo(0)+" has won the Powerball JACKPOT of "+$PowerballWin11a$+"!",8; set WINONCEMES,1; close; // MATCHED 5 Win10: next; mes "[Lottery Official]"; mes "You have matched all 5 Miniball numbers!"; mes "5 Ball Jackpot!"; mes "You've won ^0000FF"+$PowerballWin10a$+"z^000000."; getitem $PowerballWin10,1; Announce "Lottery Official: "+strcharinfo(0)+" has won the 5 Ball JACKPOT of "+$PowerballWin10a$+"!",8; set WINONCEMES,1; close; // MATCHED 4 & Powerball Win9: next; mes "[Lottery Official]"; mes "You have matched 4 Miniball numbers and the Powerball number!"; mes "You've won ^0000FF"+$PowerballWin9a$+"^000000."; getitem $PowerballWin9,15; Announce "Lottery Official: "+strcharinfo(0)+" has matched 4 numbers and the Powerball to win the prize of "+$PowerballWin9a$+"!",8; set WINONCEMES,1; close; // MATCHED 4 Win8: next; mes "[Lottery Official]"; mes "You have matched 4 Miniball numbers!"; mes "You've won ^0000FF"+$PowerballWin8a$+"^000000."; getitem $PowerballWin8,10; Announce "Lottery Official: "+strcharinfo(0)+" has matched 4 numbers to win the prize of "+$PowerballWin8a$+"!",8; set WINONCEMES,1; close; // MATCHED 3 & Powerball Win7: next; mes "[Lottery Official]"; mes "You have matched 3 Miniball numbers and the Powerball number!"; mes "You've won ^0000FF"+$PowerballWin7a$+"^000000."; getitem $PowerballWin7,10; Announce "Lottery Official: "+strcharinfo(0)+" has matched 3 numbers and the Powerball to win the prize of "+$PowerballWin7a$+"!",8; set WINONCEMES,1; close; // MATCHED 3 Win6: next; mes "[Lottery Official]"; mes "You have matched 3 Miniball numbers!"; mes "You've won ^0000FF"+$PowerballWin6a$+"^000000."; getitem $PowerballWin6,5; Announce "Lottery Official: "+strcharinfo(0)+" has matched 3 numbers to win the prize of "+$PowerballWin6a$+"!",8; set WINONCEMES,1; close; // MATCHED 2 & Powerball Win5: next; mes "[Lottery Official]"; mes "You have matched 2 Miniball numbers and the Powerball number!"; mes "You've won ^0000FF"+$PowerballWin5a$+"^000000."; getitem $PowerballWin5,5; Announce "Lottery Official: "+strcharinfo(0)+" has matched 2 numbers and the Powerball to win the prize of "+$PowerballWin5a$+"!",8; set WINONCEMES,1; close; // MATCHED 2 Win4: next; mes "[Lottery Official]"; mes "You have matched 2 Miniball numbers!"; mes "You've won ^0000FF"+$PowerballWin4a$+"^000000."; getitem $PowerballWin4,100; Announce "Lottery Official: "+strcharinfo(0)+" has matched 2 numbers to win the prize of "+$PowerballWin4a$+"!",8; set WINONCEMES,1; close; // MATCHED 1 & Powerball Win3: next; mes "[Lottery Official]"; mes "You have matched 1 Miniball number and the Powerball number!"; mes "You've won ^0000FF"+$PowerballWin3a$+"^000000."; getitem $PowerballWin3,100; Announce "Lottery Official: "+strcharinfo(0)+" has matched 1 number and the Powerball to win the prize of "+$PowerballWin3a$+"!",8; set WINONCEMES,1; close; // MATCHED 1 Win2: next; mes "[Lottery Official]"; mes "You have matched 1 Miniball number!"; mes "You've won ^0000FF"+$PowerballWin2a$+"^000000."; getitem $PowerballWin2,1; Announce "Lottery Official: "+strcharinfo(0)+" has matched 1 number to win the prize of "+$PowerballWin2a$+"!",8; set WINONCEMES,1; close; // MATCHED Powerball Win1: next; mes "[Lottery Official]"; mes "You have matched 1 Miniball number and the Powerball number!"; mes "You've won ^0000FF"+$PowerballWin1a$+"^000000."; getitem $PowerballWin1,1; Announce "Lottery Official: "+strcharinfo(0)+" has matched the Powerball to win the prize of "+$PowerballWin1a$+"!",8; set WINONCEMES,1; close; GMMenu: menu "Rules",Rules,"Win Amount Table",Table,"Buy New Ticket",Buy,"Check Numbers",Check,"[GM]Rig Next Draw",Rig,"[GM]Do Draw Now",GMDraw,"Cancel",Cancel; // GM MENU (Lets you manually do draws) GMDraw: mes "Are you sure you want to hold a special drawing now?"; menu "Do the rigged draw now!",-,"Cancel",Cancel; if($Rigged==1) { goto Rigged_Draw; end; } next; mes "You have to rig the lottery before you can 'Do Draw Now'."; close; // ALLOWS GM TO DO A RIGGED DRAW Rig: mes "[Lottery]"; mes "Please pick your numbers (1-30):"; set $LR1,0; set $LR2,0; set $LR3,0; set $LR4,0; set $LR5,0; set $LR6,0; mes "Your first number is..."; GMInput1: Input $LR1; if($LR1<1||$LR1>30) { goto GMInput1; } next; mes "Your second number is..."; mes " "; mes " "; mes " "; mes " "; mes "Your previous picks:"; mes "^0000FF["+$LR1+"]^000000"; GMInput2: Input $LR2; if($LR2<1||$LR2>30) { goto GMInput2; } if($LR2==$LR1) { goto GMInput2; } next; mes "Your third number is..."; mes " "; mes " "; mes " "; mes " "; mes "Your previous picks:"; mes "^0000FF["+$LR1+"] ["+$LR2+"]^000000"; GMInput3: Input $LR3; if($LR3<1||$LR3>30) { goto GMInput3; } if($LR3==$LR1) { goto GMInput3; } if($LR3==$LR2) { goto GMInput3; } next; mes "Your fourth number is..."; mes " "; mes " "; mes " "; mes " "; mes "Your previous picks:"; mes "^0000FF["+$LR1+"] ["+$LR2+"] ["+$LR3+"]^000000"; GMInput4: Input $LR4; if($LR4<1||$LR4>30) { goto GMInput4; } if($LR4==$LR1) { goto GMInput4; } if($LR4==$LR2) { goto GMInput4; } if($LR4==$LR3) { goto GMInput4; } next; mes "Your fifth number is..."; mes " "; mes " "; mes " "; mes " "; mes "Your previous picks:"; mes "^0000FF["+$LR1+"] ["+$LR2+"] ["+$LR3+"] ["+$LR4+"]^000000"; GMInput5: Input $LR5; if($LR5<1||$LR5>30) { goto GMInput5; } if($LR5==$LR1) { goto GMInput5; } if($LR5==$LR2) { goto GMInput5; } if($LR5==$LR3) { goto GMInput5; } if($LR5==$LR4) { goto GMInput5; } next; mes "And your Powerball number is..."; mes " "; mes " "; mes " "; mes " "; mes "^0000FFYou can pick any number again between 1-30 for this one.^000000"; GMInput6: Input $LR6; if($LR6<1||$LR6>30) { goto GMInput6; } next; mes "The next lotto numbers are:"; mes "^0000FF["+$LR1+"] ["+$LR2+"] ["+$LR3+"] ["+$LR4+"] ["+$LR5+"]^000000"; mes "The next Powerball number is:"; mes "^0000FF["+$LR6+"]^000000"; next; mes "Lottery rigged for next draw."; set $Rigged,1; close; // SETS DRAW TO RIGGED NUMBERS Rigged_Draw: set $LW1,$LR1; set $LW2,$LR2; set $LW3,$LR3; set $LW4,$LR4; set $LW5,$LR5; set $LW6,$LR6; set $Rigged,0; set .@WINMES,0; goto Broadcast; // BROADCASTS DRAW Broadcast: Announce "Lottery Official: This is a special Lotto draw by the GM's!",8; Announce "The numbers are as follows: ["+$LW1+"] ["+$LW2+"] ["+$LW3+"] ["+$LW4+"] ["+$LW5+"]",8; Announce "The Powerball number is ["+$LW6+"]",8; Announce "Go check ticket numbers now! Congratulations to the lucky winners!",8; close; } - script AssistLottoGen -1,{ OnInit: set $PowerballWin11,7179; //Powerball Jackpot set $PowerballWin10,5377; //5 Ball Prize set $PowerballWin9,12210; //4 Ball & PB Prize set $PowerballWin8,12214; //4 Ball Prize set $PowerballWin7,7621; //3 Ball & PB Prize set $PowerballWin6,13517; //3 Ball Prize set $PowerballWin5,29360; //2 Ball & PB Prize set $PowerballWin4,14522; //2 Ball set $PowerballWin3,14523; //1 Ball & PB Prize set $PowerballWin2,29332; //1 Ball set $PowerballWin1,29332; //Powerball Prize set $PowerballWin11a$,"10 Proof of donation"; //Powerball Jackpot set $PowerballWin10a$,"Gentleman's Pipe (Costume)"; //5 Ball Prize set $PowerballWin9a$,"15 Bubblegum"; //4 Ball & PB Prize set $PowerballWin8a$,"10 Convex Mirror"; //4 Ball Prize set $PowerballWin7a$,"10 Token of Siegfried"; //3 Ball & PB Prize set $PowerballWin6a$,"5 Yggdrasil Berry Box"; //3 Ball Prize set $PowerballWin5a$,"5 Box of Thunder Box"; //2 Ball & PB Prize set $PowerballWin4a$,"100 Big Bun"; //2 Ball set $PowerballWin3a$,"100 Pill"; //1 Ball & PB Prize set $PowerballWin2a$,"1 Credits"; //1 Ball set $PowerballWin1a$,"1 Credits"; //Powerball Prize if($LID==0) { goto GenID; } end; //Modify for own time OnClock2400: OnClock0400: OnClock0800: OnClock1200: OnClock1600: OnClock2000: if($Rigged==1) { goto RiggedDraw; } Pick1: set $LW1,rand(1,30); Pick2: set $LW2,rand(1,30); if($LW2==$LW1) { goto Pick2; } Pick3: set $LW3,rand(1,30); if($LW3==$LW2) { goto Pick3; } if($LW3==$LW1) { goto Pick3; } Pick4: set $LW4,rand(1,30); if($LW4==$LW2) { goto Pick4; } if($LW4==$LW1) { goto Pick4; } if($LW4==$LW3) { goto Pick4; } Pick5: set $LW5,rand(1,30); if($LW5==$LW1) { goto Pick5; } if($LW5==$LW2) { goto Pick5; } if($LW5==$LW3) { goto Pick5; } if($LW5==$LW4) { goto Pick5; } Pick6: set $LW6,rand(1,30); set .@WINMES,0; // BROADCASTS GM DRAW Broadcast: Announce "Lottery Official: It's time for the current lotto draw!",8; Announce "The Miniball numbers are as follows: ["+$LW1+"] ["+$LW2+"] ["+$LW3+"] ["+$LW4+"] ["+$LW5+"]",8; Announce "The Powerball number is ["+$LW6+"]",8; Announce "Go check ticket numbers now! Congratulations to the lucky winners!",8; // GENERATES DRAW ID CODE GenID: set $LID2,$LID; // SETS TOMORROW'S ID NUMBER set $LID,rand(100000,999999); end; // SETS DRAW TO RIGGED NUMBERS RiggedDraw: set $LW1,$LR1; set $LW2,$LR2; set $LW3,$LR3; set $LW4,$LR4; set $LW5,$LR5; set $LW6,$LR6; set $Rigged,0; set .@WINMES,0; goto Broadcast; } Here's the edited code. I think it's buggy
  21. Hi sir, may I ask again? How if I want to remove its cooldown?
×
×
  • Create New...