Jump to content

kyleanthonydizon

Members
  • Posts

    100
  • Joined

  • Last visited

Everything posted by kyleanthonydizon

  1. But before we added the custom weapons, gm accounts uses weapons normally. Like a bow is used as long range, and swords are with short range and if there's no weapon equipped, it will attack with short range
  2. Wow that's weird.. It's doing good with normal accounts. Why is that when we use gm account, it attacks at long range?
  3. We are currently testing it with gm account.
  4. Yes.. We are experiencing this too even for non custom weapons..
  5. 1850,asuraknucle,Asura Knuckle,5,8000,,400,30,,1,4,0x00008100,7,2,2,1,1,1,12,{},{},{} 1801,Waghnakh,Waghnak,5,8000,,400,30,,1,3,0x00008100,7,2,2,1,1,1,12,{},{},{} Hmm. Take this for example. I just copied the existing "Waghnak" for my custom weapon "Asura Knuckle" and still it attacks at long range?
  6. 29349,_banryu,Banryu,5,100,,500,25,,1,4,0x000654E3,7,2,2,1,2,1,2,{ bonus2 bSkillAtk,KN_BOWLINGBASH,10; bonus bUnbreakableWeapon,0; if(getrefine()>8) { bonus bStr,5; bonus bAtkRate,7; } },{},{} Hi is there something wrong with my weapon at item_db? I have this equipped but it attacks like a bow, long range. Help please!!
  7. DELETE FROM `acc_reg_num` WHERE `key`='#THQ_DELAY'
  8. Hi, a player tried this with your script. I recompiled and restarted the server. His cooldown became 10911973
  9. Wow, i think it's now working. I dont see any error at map_server. Hmm. Is it okay if I delete all entries in my acc_reg_num? Just to reset everything? I have there like, #HuntRoomDelay #FarmHunt and all..
  10. //===== 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; } Here sir, thank you for helping!
  11. set #THQ_DELAY,(GetTime(DT_YEAR)*12*31*24+GetTime(DT_MONTH)*31*24+GetTime(DT_DAYOFMONTH)*24+GetTime(DT_HOUR) + 1); //you can get another quest after 1 hour [Lupus] Hi, how will I set this to 10 minutes delay? Not for an hour
  12. //===== eAthena Script ======================================= //= eAthena PVP-Ladder //===== By: ================================================== //= Terces //===== Current Version: ===================================== //= 1.7.2 //===== Compatible With: ===================================== //= Any Athena Version that has "for" implemented //===== Credits: ============================================= //= The whole eAthena Board and the eAthena Chat //===== Notes: =============================================== //= Note 1: //= Experience gain works like this formula: //= ($@LadderLength-(<new position>-1))*$@LadderExp //= so if someone gets the first place he'll get //= $@LadderLength*$@LadderExp experience points. //============================================================ //= Fixxed by Dante //= V1.7.2 //= Hosted by Dant3 aka Dante //= HAFE FUN! READ THE TOPIC! IT DONT WORKS MAYBE ON OLDER REV //= LAST UPDATE: 12th,February.2008 // Main Script - Terces (Main Thanks to Terces ^_^) // V1.7.0 - Dant3 // v1.7.1 - AnnieRuRu // v1.7.2 - Dant3 // v1.7.3 - Dant3 // THIS SCRIPT WORKS ONLY ON THE NEW EATHENA REVISIONS! ENJOY! - script PVPLADDEROPTIONS -1,{ end; OnInit: // 0 = Disabled (NO) // 1 = Enable (YES) set $@languageselect, 0; //Enable/Disable language selection [English/German] (Default: 1) set $@LadderAnnounce, 1; //Enable/Disable the announcement when a char reaches a new position in the ladder (Default: 1) set $@LadderLength, 100; //Set the length of the ladder [!Not higher than 128!] (Default: 30) set $@LadderSteps, 20; //Set the views per page (Default: 10)set $@LadderExpGain, 1; //Enable/Disable experience gain when reaching a new position in the ladder (*Note1) set $@LadderExp, 50; //Set Experience gain value (*Note1) set $@LadderZenyGain, 0; //Enable/Disable zeny gain when reaching a new position in the ladder set $@LadderZeny, 0; //Set Zeny gain value //set $@LadderChatRoom, 1; //Enable/Disable an Chat Room over the NPC with the message "PvP Ladder" (Users can not enter the Chat room) set $@LadderAskLogin, 0; //Enable/Disable that the NPC asks about the Broadcast when a Player logins / or with the Npc Chat (0 = Login Ask , 1 = Npc Chat) Related: 0 set $@LadderGM, 5; //All GM LVL UNDER this value will show on the pvp ladder (Over GM LVL: Not shown on ladder | under GM LVL: Shown on Ladder) set $@LadderGMMenu, 99; //GM LVL that need for entering GM Menu setarray .@Map$[0],"guild_vs3","pvp_n_2-5","pvp_y_1-2","prt_are01","pvp_y_4-2","pvp_y_5-2","prtg_cas03"; for (set .@i,0; .@i < getarraysize( .@Map$ ); set .@i,.@i + 1) { setd "$@PVP" + .@Map$[.@i],1; } } - script PVPLADDER -1,{ OnPCKillEvent: if (!getd("$@PVP" + strcharinfo(3))) end; if ( getgmlevel() >= $@LadderGM ) end; if (terces_PVP_resets != $terces_PVP_resets) { dispbottom "Please relog your character, in order to get the correct kills for you in the pvp ladder."; dispbottom "Because a GM just reset the ladder."; end; } if ( killedrid == getcharid(3) ) { set PVPDeaths, PVPDeaths +1; set #PVPDeathsAccount, #PVPDeathsAccount +1; set @PVPDeathstoday, @PVPDeathstoday +1; end; } set $@PVPcounter,$@PVPcounter+1; set getd("$@PVPKill"+$@PVPcounter),getcharid(3); //getd to avoid errors when more than 1 people kill someone attachrid(killedrid); set PVPDeaths,PVPDeaths+1; set @PVPDeathstoday,@PVPDeathstoday+1; set #PVPDeathsAccount,#PVPDeathsAccount+1; set getd("$@PVPKilledplayer"+$@PVPcounter+"$"), strcharinfo(0); //again, getd to avoid possible glitches detachrid; attachrid(getd("$@PVPKill"+$@PVPcounter)); CountKills: set PVPKills,PVPKills+1; set @PVPKillstoday,@PVPKillstoday+1; set #PVPKillsAccount,#PVPKillsAccount+1; setarray @playerstats[0],@PVPKillstoday,@PVPDeathstoday,PVPKills,PVPDeaths,#PVPKillsAccount,#PVPDeathsAccount; l_ladder: set @considerdeath,0; for (set @PosinLadder, 0; @PosinLadder < $@LadderLength; set @PosinLadder, @PosinLadder + 1){ if (PVPKills >= $terces_PVP_kills[@PosinLadder]){ //Player deserves to be in the ladder //Check if Death plays a role on the position if ((PVPKills == $terces_PVP_kills[@PosinLadder]) && (PVPDeaths > $terces_PVP_deaths[@PosinLadder])) set @considerdeath,1; //Consider Deaths //Check if the player only topped his own scores if ($terces_PVP_names$[@PosinLadder] == strcharinfo(0)){ set $terces_PVP_kills[@PosinLadder],PVPKills; set $terces_PVP_deaths[@PosinLadder],PVPDeaths; end; } //Moves all characters in the ladder for (set @beginmoving, $@LadderLength; @beginmoving >= (@PosinLadder+@considerdeath); set @beginmoving, @beginmoving - 1){ if ($terces_PVP_names$[@beginmoving] == strcharinfo(0)){ //If the player already is in the ladder it only has to move players between characters new position and characters old position callsub L_LadderMove,0; end; } else if (@beginmoving == (@PosinLadder+@considerdeath)){ //Player is not in the ladder and therefor it has to move all players from characters new position downwards callsub L_LadderMove,1; end; } } end; } } end; L_LadderMove: if (getarg(0) == 0) set @length,@beginmoving; if (getarg(0) == 1) set @length,$@LadderLength; for (set @movecycle, @length; @movecycle > (@PosinLadder+@considerdeath); set @movecycle, @movecycle - 1){ set $terces_PVP_names$[@movecycle],$terces_PVP_names$[(@movecycle-1)]; set $terces_PVP_kills[@movecycle],$terces_PVP_kills[(@movecycle-1)]; set $terces_PVP_deaths[@movecycle],$terces_PVP_deaths[(@movecycle-1)]; set $terces_PVP_times[@movecycle],$terces_PVP_times[(@movecycle-1)]; } //sets the character's stats in the new position set $terces_PVP_names$[(@PosinLadder+@considerdeath)],strcharinfo(0); set $terces_PVP_kills[(@PosinLadder+@considerdeath)],PVPKills; set $terces_PVP_deaths[(@PosinLadder+@considerdeath)],PVPDeaths; set $terces_PVP_times[(@PosinLadder+@considerdeath)],gettimetick(2); //Experience Gain if ($@LadderExpGain == 1){ set BaseExp,BaseExp+(($@LadderLength-((@PosinLadder+@considerdeath)-1))*$@LadderExp); dispbottom "You have just been rewarded with "+(($@LadderLength-((@PosinLadder+@considerdeath)-1))*$@LadderExp)+" base experience points"; } //Zeny Gain if ($@LadderZenyGain == 1){ set Zeny,Zeny+(($@LadderLength-((@PosinLadder+@considerdeath)-1))*$@LadderZeny); dispbottom "You have just been rewarded with "+(($@LadderLength-((@PosinLadder+@considerdeath)-1))*$@LadderZeny)+" Zeny"; } //Announcement (Setting for Char) if (pvpbroadcast == 2){ announce strcharinfo(0)+" just claimed the "+((@PosinLadder+@considerdeath)+1)+". Position in the Top "+$@LadderLength+" after killing "+getd("$@PVPKilledplayer"+$@PVPcounter+"$")+".",0,0x00CCFF; } //Announcement (Setting for Account) if (#pvpbroadcast == 2){ announce strcharinfo(0)+" just claimed the "+((@PosinLadder+@considerdeath)+1)+". Position in the Top "+$@LadderLength+" after killing "+getd("$@PVPKilledplayer"+$@PVPcounter+"$")+".",0,0x00CCFF; } end; OnPCLoginEvent: if (terces_PVP_resets != $terces_PVP_resets){ set PVPDeaths,0; set @PVPDeathstoday,0; set #PVPDeathsAccount,0; set PVPKills,0; set @PVPKillstoday,0; set #PVPKillsAccount,0; set terces_PVP_resets,$terces_PVP_resets; } if ($@LadderAskLogin == 0){ if (#pvpbroadcast == 2) goto L_ignore; if (pvpbroadcast == 2) goto L_ignore; if (#pvpbroadcast == 1) goto L_ignore; if (pvpbroadcast == 1) goto L_ignore; L_ignore: end; if (pvpbroadcast == 0) mes "^ff0000[PvP Ladder]^000000"; mes "Hi, "+strcharinfo(0)+""; mes "Me is the pvp Top Management!"; mes "Let me ask you one Question and i will let you play!"; menu "Okay, fine",L_fine,"Later please",L_close; L_fine: next; mes "^ff0000[PvP Ladder]^000000"; mes "Well, do you want read Broadcast Messages when a Player reach a new position on the pvp Ranglist?"; menu "Yeah, why not",L_accept,"No, thanks",L_accept_2,"Wtf is Broadcast?",L_broadcast; L_accept: next; mes "^ff0000[PvP Ladder]^000000"; mes "Yay, thank you! ^_^"; mes "Will this Setting work on all your Chars on this account or only this char?"; menu "Account",L_account,"Only this char",L_char; L_account: set #pvpbroadcast,2; next; mes "^ff0000[PvP Ladder]^000000"; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; close; L_char: set pvpbroadcast,2; next; mes "^ff0000[PvP Ladder]^000000"; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; goto access_eng; close; L_accept_2: next; mes "^ff0000[PvP Ladder]^000000"; mes "Yay, thank you! ^_^"; mes "Will this Setting work on all your Chars on this account or only this char?"; menu "Account",L_account_2,"Only this char",L_char_2; L_close: close; L_account_2: set #pvpbroadcast,1; next; mes "^ff0000[PvP Ladder]^000000"; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; close; L_char_2: set pvpbroadcast,1; next; mes "^ff0000[PvP Ladder]^000000"; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; goto access_eng; close; L_broadcast: next; mes "^ff0000[PvP Ladder]^000000"; mes "Broadcasts are this yellow messages from the GMs"; goto L_fine; } } prontera,146,172,5 script PvP Ladder#pvplad1-1::pvpladder 414,{ set @name$,"[PvP-Ladder]"; //Colour of: Position Name Kills Deaths Time setarray @colour$[0], "^996600", "^006699", "^00AA00", "^FF0000", "^EE8800"; if ($@LadderAskLogin == 1){ if (#pvpbroadcast == 2) goto access_eng; if (pvpbroadcast == 2) goto access_eng; if (#pvpbroadcast == 1) goto access_eng; if (pvpbroadcast == 1) goto access_eng; if (pvpbroadcast == 0) mes "^ff0000[PvP Ladder]^000000"; mes "Hi, "+strcharinfo(0)+""; mes "Me is the pvp Top Management!"; mes "Let me ask you one Question and i will let you play!"; menu "Okay, fine",L_fine,"Later please",L_close; L_fine: next; mes "^ff0000[PvP Ladder]^000000"; mes "Well, do you want read Broadcast Messages when a Player reach a new position on the pvp Ranglist?"; menu "Yeah, why not",L_accept,"No, thanks",L_accept_2,"Wtf is Broadcast?",L_broadcast; L_accept: next; mes "^ff0000[PvP Ladder]^000000"; mes "Yay, thank you! ^_^"; mes "Will this Setting work on all your Chars on this account or only this char?"; menu "Account",L_account,"Only this char",L_char; L_account: set #pvpbroadcast,2; next; mes "^ff0000[PvP Ladder]^000000"; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; close; L_char: set pvpbroadcast,2; next; mes "^ff0000[PvP Ladder]^000000"; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; goto access_eng; close; L_accept_2: next; mes "^ff0000[PvP Ladder]^000000"; mes "Yay, thank you! ^_^"; mes "Will this Setting work on all your Chars on this account or only this char?"; menu "Account",L_account_2,"Only this char",L_char_2; L_close: close; L_account_2: set #pvpbroadcast,1; next; mes "^ff0000[PvP Ladder]^000000"; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; close; L_char_2: set pvpbroadcast,1; next; mes "^ff0000[PvP Ladder]^000000"; mes "Okay, "+strcharinfo(0)+""; mes "Thank you for your time and have fun!"; goto access_eng; close; L_broadcast: next; mes "^ff0000[PvP Ladder]^000000"; mes "Broadcasts are this yellow messages from the GMs"; goto L_fine; } access_eng: mes "^ff0000[PvP Ladder]^000000"; mes "Hello "+strcharinfo(0)+"..."; mes "If you want to I can show you your pvp stats."; next; M_selection_eng: if ( getgmlevel () < $@LadderGMMenu ) menu "Show me the pvp Ladder",M_Ladder_eng,"PvP stats since my login",M_seitLogin_eng,"PvP stats of this Char",M_dieserChar_eng,"Stats of the whole account",M_vomAccount_eng,"Cancel",M_abbrechen_eng; else menu "[GM MENU]",GMMenu,"[USER MENU]",UserMenu; UserMenu: menu "Show me the pvp Ladder",M_Ladder_eng,"PvP stats since my login",M_seitLogin_eng,"PvP stats of this Char",M_dieserChar_eng,"Stats of the whole account",M_vomAccount_eng,"Cancel",M_abbrechen_eng; GMMenu: mes "^ff0000[PvP Ladder]^000000"; mes "PvP ladder Script"; mes "Version: 1.7.3"; mes "Status of functions: "; mes "Reset Ladder: No Bugs"; mes "Delete Char on the Ladder: BETA [Not working perfect]"; menu "Reset Ladder",L_reset,"Delete a Char on the Ladder",L_del_char,"Cancel",M_abbrechen_eng; M_Ladder_eng: mes "^ff0000[PvP Ladder]^000000"; mes "Alright...I'll show you the Top "+ $@LadderLength +" with "+$@LadderSteps+" entries per page."; mes "It'll be viewed like this:"; mes @colour$[0]+"Place^000000: "+@colour$[1]+"<name>^000000 :"+@colour$[2]+"<kills>^000000:"+@colour$[3]+"<deaths>^000000 "+@colour$[4]+"<time>"; next; callsub L_Ladder; goto M_selection_eng; M_seitLogin_eng: mes "^ff0000[PvP Ladder]^000000"; mes "Your stats since your login:"; mes @PVPKillstoday+"/"+@PVPDeathstoday+"(Kills/Deaths)"; next; goto M_selection_eng; M_dieserChar_eng: mes "^ff0000[PvP Ladder]^000000"; mes "Your stats of this Char:"; mes PVPKills+"/"+PVPDeaths+"(Kills/Deaths)"; next; goto M_selection_eng; M_vomAccount_eng: mes "^ff0000[PvP Ladder]^000000"; mes "Your stats of the whole account:"; mes #PVPKillsAccount+"/"+#PVPDeathsAccount+"(Kills/Deaths)"; next; goto M_selection_eng; M_abbrechen_eng: mes "^ff0000[PvP Ladder]^000000"; mes "OK. You can come back to me and see your stats whenever you want."; close; L_del_char: if (getgmlevel() < 99) end; mes "^ff0000[PvP Ladder]^000000"; mes "Do you want to delete a char on the Ladder?"; if (select ("Yes","No") == 2) goto L_end; next; mes "^ff0000[PvP Ladder]^000000"; mes "Please give me the ladder Position of the Char"; input $@CharLadderInput; set $@CharLadder, $@CharLadderInput; deletearray @PosinLadder, $@CharLadderInput; next; mes "^ff0000[PvP Ladder]^000000"; mes "THIS IS ONLY BETA"; mes "When this step has not worked PLEASE wait until the next Update for this script"; mes "Please don't request support when this step has not worked"; close; L_reset: if (getgmlevel() < 99) end; mes "^ff0000[PvP Ladder]^000000"; mes "Do you want to reset the Ladder?"; if (select ("Yes","No") == 2) goto L_end; mes "^ff0000[PvP Ladder]^000000"; mes "Are you really really sure you want to reset it?"; menu "Yes, ffs!!",-,"No",L_end; deletearray $terces_PVP_kills,128; deletearray $terces_PVP_deaths,128; deletearray $terces_PVP_names$,128; deletearray $terces_PVP_times,128; set $terces_PVP_resets,$terces_PVP_resets +1; L_end: mes "^ff0000[PvP Ladder]^000000"; mes "Okay...cya"; close; L_ladder: for (set @y,0; @y < $@LadderLength; set @y,@y+$@LadderSteps){ for (set @x,@y; (@x < (@y+$@LadderSteps)) && (@x < ($@LadderLength)); set @x,@x+1){ if ($terces_PVP_names$[@x] != ""){ mes @colour$[0]+(@x+1)+"^000000: "+@colour$[1]+$terces_PVP_names$[@x]+"^000000 "+@colour$[2]+$terces_PVP_kills[@x]+"^000000:"+@colour$[3]+$terces_PVP_deaths[@x]+"^000000 ~ "+@colour$[4]+callfunc ("Gettime",$terces_PVP_times[@x])+"^000000"; } else { mes "^DD0000"+(@x+1)+": ^006699None^000000 "; } } next; } return; OnInit: waitingroom "PvP Top 100",0; end; } function script Gettime { if (getarg(0)==0) return; set @difftimedays,(gettimetick(2) - getarg(0)); set @difftimehours,@difftimedays%86400; set @difftimeminutes,@difftimehours%3600; set @difftimeseconds,@difftimeminutes%60; set @days,@difftimedays/86400; set @hours,@difftimehours/3600; set @minutes,@difftimeminutes/60; set @seconds,@difftimeseconds; set @result$,""; if(@days != 0) set @result$,@result$+@days+"d "; if(@hours != 0) set @result$,@result$+@hours+"h "; if(@minutes != 0) set @result$,@result$+@minutes+"m "; if(@seconds != 0) set @result$,@result$+@seconds+"s"; return (@result$); } // --------- NPC Clones --------- morocc,171,103,4 duplicate(pvpladder) PvP Ladder#pvplad1-2 414 geffen,129,69,4 duplicate(pvpladder) PvP Ladder#pvplad1-3 414 payon,148,223,5 duplicate(pvpladder) PvP Ladder#pvplad1-4 414 alberta,39,245,4 duplicate(pvpladder) PvP Ladder#pvplad1-5 414 izlude,136,123,4 duplicate(pvpladder) PvP Ladder#pvplad1-6 414 aldebaran,147,111,4 duplicate(pvpladder) PvP Ladder#pvplad1-7 414 xmas,142,122,5 duplicate(pvpladder) PvP Ladder#pvplad1-8 414 comodo,197,159,4 duplicate(pvpladder) PvP Ladder#pvplad1-9 414 yuno,148,184,5 duplicate(pvpladder) PvP Ladder#pvplad1-10 414 amatsu,123,146,4 duplicate(pvpladder) PvP Ladder#pvplad1-11 414 gonryun,165,110,4 duplicate(pvpladder) PvP Ladder#pvplad1-12 414 umbala,106,166,4 duplicate(pvpladder) PvP Ladder#pvplad1-13 414 I get error on OnPCLoginEvent, saying the queue is full HELP!
  13. // _______ __ ____ ____ __ __ ____ __ __ __ __ __ __ __ ____ _ ____ // /__ __/ / / / __ \ / __ \ / / / / /__ \ / / /_/ __/ /_ / // / / /__/ / /__ \ / /__ / __ \ _____ // / / / /_ / /_/ / / / / / / / / / ____/ / / / __ /_ __// // / / _ _ / ____/ / / // / / /_/ / / __ \ // / / / __ \ / ____/ / / / / / / / / / __ / / / / / / / \_ / / // /// / __ / / __/ / ____/ / / /_/ // / / / / / / / /__ / /_/ /_ / /_/ / / /_/ / / / / / / / __/ / / // /// / /_/ / / _ \ / /__ / / ///_/ /_/ /_/ \____/ \_______/ \____/ \____/ /_/ /_/ /_/ \__/ /_//_/// \____/ /_/ \_\ \____/ /_/ //============================================================================= // // Gold Room Advance Script - Mining Gold for wealth - Please Leave Credit \\ //============================================================================= //POWERED by: rudolp //[The Quality Maker] //Time Finished :6:28 PM 6/7/2009 //Please Report any bug and suggestions. //===== Compatible With: ================================================================= //= Any eAthena Version //=============Gold Room Settings=================== //This should always be enable for a better Gold Room System. //================================================== ordeal_1-2.gat mapflag noskill ordeal_1-2.gat mapflag nomemo ordeal_1-2.gat mapflag nobranch ordeal_1-2.gat mapflag noloot ordeal_1-2.gat mapflag noexp ordeal_1-2.gat mapflag nodrop ordeal_1-2.gat mapflag novending ordeal_1-2.gat mapflag nowarp ordeal_1-2.gat mapflag nowarpto ordeal_1-2.gat mapflag noreturn //================================================= ordeal_1-2,0,0,0 script Gold Room -1,{ OnInit: //No. of Mine Guardian. //For golden peko it is default to 100 and 4 seconds~2 seconds spawn rate. set .guardian,50; //Type of guardian. 0 = normal 1 = extreme set .@guardiantype,0; if(.@guardiantype == 0){ monster "ordeal_1-2",0,0,"Taga Bantay",2001,.guardian,""; }else{ monster "ordeal_1-2",0,0,"Taga Bantay",2002,.guardian,""; } end; OnNPCKillEvent: //===== Configurations: ======================================================================== //Max gold can a player get after killing 1 golden peko (default 5 note:this will increase if luk bonus is enable). set .@maxgaingold,5; //Apply gold penalty. 0 = no 1 = yes set .@penalty1,0; //The Maximum no. of gold Penalty. set .@maxpenalty1,3; //Apply speed & HP penalty. 0 = no 1 = yes set .@penalty2,1; //Gold limitation penalty must be enable set .@maxgold,200; //The maximum no. of hp penalty by %. set .@maxpenalty2,10; //Enable luk bonus. 0=no 1=yes set .@lukbonus,0; //If luk Bonus is enable,luk divider default 49 w/ 99 max parameter. Note: the quotient of your max parameter and .@lukdiv must not grater than 5 to avoid over mining. set .@lukdiv,49; //Show Server Name. 0=no 1=yes set .@showservername,1; //Name of your Server set .@servername$,"[ Peculiar RO ]"; //========================================================================================= if (getmapxy(@mapname$,@mapx,@mapy,0) == -1) goto L_Finish; if (@mapname$ == "ordeal_1-2"){ set @bonus,0; set @deduction,0; set @gain,rand (.@maxgaingold); //Luk bonus if (.@lukbonus != 0){ set @bonus,readparam(bLuk)/.@lukdiv; } //Gold Penalty if (.@penalty1 != 0){ set @deduction,rand(.@maxpenalty1); if(@deduction == 0) set @deduction,1; } set @gain, @gain + @bonus - @deduction; set gold, gold + @gain ; //Displaying Gained Gold if(.@showservername != 0){ if(gold%5 == 0){ //Show Server Name every 10 gold gain. dispbottom "===============Brought to you by==============="; dispbottom "==============" + .@servername$ +"=============="; } } if(@gain){ dispbottom "You got: " +@gain+ " gold | Total: " +gold+ " gold"; }else{ dispbottom "You got: NOTHING!"; } if (.@penalty2 != 0){ if (gold >= .@maxgold/2 && gold <=.@maxgold/2+20){ sc_start SC_DECREASEAGI,240000,10; }else if(gold >.@maxgold){ sc_start SC_CURSE,240000,10; percentheal (.@maxpenalty2*-1),(.@maxpenalty2*-1); heal -50,0; //For him to die } } if(paid == 0){ mapannounce "ordeal_1-2"," x( "+strcharinfo(0)+" is a cheater!",bc_map; dispbottom "Go out you bastard!"; set gold,0; warp "prontera", 173, 160; } end; } OnPCDieEvent: if (getmapxy(@mapname$,@mapx,@mapy,0) == -1) goto L_Finish; if (@mapname$ == "ordeal_1-2"){ dispbottom "Holy Shit you died!"; dispbottom "All of your gold will gone!"; set alive, 0; set paid, 0; end; } L_Finish: close; } //=============================================== //warper //=============================================== ordeal_1-2,154,156,5 script Gold Miner 813,{ mes "[Gold Miner]"; if(gold >=50){ goto wa; } mes "Want to go now?"; mes "Your gold is just "+gold+" you can still get more."; close; wa: mes "Want to go now?"; if(select("Yes", "No") == 1) { set alive,1; warp "prontera", 173, 160; } close; } prontera,164,166,3 script Gold Room Warper#pront 813,{ set @name$,"prontera"; callfunc "goldmain"; OnInit: waitingroom "Gold Room Warper",0; end; } /*aldebaran,133,116,4 script Gold Room Warperer#alde 813,{ set @name$,"aldebaran"; callfunc "goldmain"; end; }*/ /*alberta,23,247,4 script Gold Room Warperer#alb 813,{ set @name$,"alberta"; callfunc "goldmain"; end; }*/ /*payon,151,182,4 script Gold Room Warperer#pay 813,{ set @name$,"payon"; callfunc "goldmain"; end; }*/ /*geffen,115,74,4 script Gold Room Warperer#gef 813,{ set @name$,"geffen"; callfunc "goldmain"; end; }*/ function script goldmain { if (getgmlevel() >= 90){ mes "[Gold Room Warper]"; if(sex != 0){ mes "Hello Sir what can I do for you?"; }else{ mes "Hello Maam what can I do for you?"; } next; menu "Enter Mining Site",start,"Please close the mine site. Now!",-,"Please open the mine site. Now!",G_open,"Nothing",C_s; next; mes "[Gold Room Warperer]"; mapannounce "ordeal_1-2","Excuse me Miners.",bc_map; mes "Ok."; next; mapannounce "ordeal_1-2",strcharinfo(0) +" wants to close the Gold Room for a while",bc_map; mes "Just a second I will just ask them to"; mes "go out in the mining site"; next; mapannounce "ordeal_1-2","Please settle your things and move quietly",bc_map; mes "[Gold Room Warper]"; mes "............."; mes "........"; next; mes "[Gold Room Warperer]"; mes "Ok your done"; set .opengoldroom,1; areawarp "ordeal_1-2",21,286,286,22,"prontera", 173, 160; close; } if(.opengoldroom == 0){ goto start; }else{ mes "[Gold Room Warperer]"; mes "Sorry!"; mes "The Mining Site is closed."; close; } G_open: mes "[Gold Room Warperer]"; mes "Ok."; mes "Mining Site is Already Available."; announce " Gold Room is open for public!",bc_map; set .opengoldroom,0; close; start: if ( alive == 0){ set gold,0; } mes "[Gold Room Warperer]"; mes "What do you want?"; next; menu "To the Gold Room",-,"Exchange Gold",exchange,"Nothing",C_s; mes "[Gold Room Warperer]"; mes "Hmm.."; mes "It cost 100,000z"; mes "Would you like to go now to the gold room?"; if(select("Yes", "No") == 1) { if(@name$ == "prontera") savepoint "prontera", 173, 160; if(@name$ == "aldebaran") savepoint "aldebaran",166, 163; if(@name$ == "alberta") savepoint "alberta",16, 246; if(@name$ == "payon") savepoint "payon",160, 179; if(@name$ == "geffen") savepoint "geffen",124, 85; if (Zeny < 100000) goto nomoney; set Zeny, Zeny - 100000; set alive, 1; set paid, 1; warp "ordeal_1-2", 156, 155; } close; nomoney: mes "[Gold Room Warper]"; mes "Sorry insufficient balance"; close; exchange: mes "[Gold Room Warperer]"; mes "Hmm...let me see"; mes "You have " +gold+ "."; if (gold == 0) goto nogold; mes "Ok get this."; next; if (checkweight(969,gold) == 0) goto L_OverWeight; getitem 969, gold; set gold, 0; emotion e_gg; close; L_OverWeight: mes "[Gold Room Warper]"; mes "Sorry your overweight"; close; nogold: close; C_s: close; } //============================================================ //=========================================================== //======================================== //warps you may edit this one for your convenience //======================================== ordeal_1-2,73,265,0 warp ord500 1,1,prontera,173,160 ordeal_1-2,129,194,0 warp ord501 1,1,prontera,173,160 ordeal_1-2,130,194,0 warp ord502 1,1,prontera,173,160 ordeal_1-2,178,193,0 warp ord503 1,1,prontera,173,160 ordeal_1-2,290,130,0 warp ord504 1,1,prontera,173,160 ordeal_1-2,241,281,0 warp ord505 1,1,prontera,173,160 ordeal_1-2,66,25,0 warp ord506 1,1,prontera,173,160 ordeal_1-2,202,129,0 warp ord509 1,1,prontera,173,160 ordeal_1-2,105,154,0 warp ord510 1,1,prontera,173,160 //============Spawns================= //ordeal_1-2,0,0,0,0 monster GM Luki 2001,100,40000,20000,0 //ordeal_1-2,0,0,0,0 monster GM Zhen 2000,100,40000,20000,0 ordeal_1-2,0,0,0,0 monster Golden Pecopeco 1369,100,40000,20000,0 Hi guys, I get [warning] invalid use of close command. Please help!
×
×
  • Create New...