Jump to content

zXoOm

Members
  • Posts

    73
  • Joined

  • Last visited

Everything posted by zXoOm

  1. Here are the scripts Emisty. How to know if i'm using different variable to store cash points? // Settings : // - Only required to edit the ShopSetting() Function // Notes : You may also add / remove Menu ( If any ) // - Shop Currency can be either ItemID or Variable Name, but must write within Quotation Marks ( "" ) // Ex. of Variable. -> Zeny , #CASHPOINTS , #KAFRAPOINTS , CustomVariable , #CustomVariable // - ERROR Message are used to show Invalid Settings in your NPC. // Leave this alone... - shop Emistry_Shop -1,512:100 prontera,145,168,5 script Sample 757,{ function ShopSettings; function ValidateCost; function CurrencyInfo; function ClearData; function ValueConvert; function ErrorNotice; mes "Each Shop from the Menu may purchase using ^FF0000Different Currency^000000."; mes "^00FF00____________________________^000000"; mes "So,Which shop you would like to look at it"; next; // Menu Selection select("Shop 1","Shop 2","Shop 3"); ClearData(); ShopSettings( @menu ); npcshopitem "Emistry_Shop",512,100; npcshopdelitem "Emistry_Shop",512; for(set .@i,0; .@i < getarraysize( @ItemLists ); set .@i,.@i+1) npcshopadditem "Emistry_Shop",@ItemLists[.@i],@ItemCost[.@i]; mes "Okay...wait awhile"; mes "^00FF00____________________________^000000"; CurrencyInfo( @Currency$ ); mes "^00FF00____________________________^000000"; callshop "Emistry_Shop",1; npcshopattach "Emistry_Shop"; end; function ShopSettings { switch( getarg(0) ){ Case 1: // Currency [ Item ID / Variable Name ] set @Currency$,"7179"; // Item ID Lists setarray @ItemLists[0],6153,7227; // Item Price setarray @ItemCost[0],100,1; break; Case 2: // Currency [ Item ID / Variable Name ] set @Currency$,"7227"; // Item ID Lists setarray @ItemLists[0],2306,2302,2303,2304,2305,2301; // Item Price setarray @ItemCost[0],2,2,3,4,5,6; break; Case 3: // Currency [ Item ID / Variable Name ] set @Currency$,"#CASHPOINTS"; // Item ID Lists setarray @ItemLists[0],2306,2302,2303,2304,2305,2301; // Item Price setarray @ItemCost[0],20,22,34,445,52,641; break; // Case 4,5,6.....etc... default: ErrorNotice( "Invalid Menu Selection for Menu "+@menu+"." ); close; } if( @Currency$ == "" ) ErrorNotice( "Invalid Currency Setting in Menu "+@menu+" ." ); if( getarraysize( @ItemCost ) != getarraysize( @ItemLists ) || getarraysize( @ItemLists ) != getarraysize( @ItemCost ) ) ErrorNotice( "Missing or Extra Value of Item or Cost Settings in Menu "+@menu+" ." ); return; } function ErrorNotice { mes "^FF0000ERROR^000000 - "+getarg(0); mes "^00FF00____________________________^000000"; mes "Inform this Message to ^0000FFGame Staffs^000000 immediately !"; close; } function CurrencyInfo { if( getitemname( atoi( getarg(0) ) ) != "null" ){ mes "Item Currency : ^FF0000"+getitemname( atoi( getarg(0) ) )+"^000000"; mes "Available Amount : ^0000FF"+ValueConvert( countitem( atoi( getarg(0) ) ) )+"^000000"; }else if( getitemname( atoi( getarg(0) ) ) == "null" ){ mes "Variable Currency : ^FF0000"+getarg(0)+"^000000"; mes "Available Amount : ^0000FF"+ValueConvert( getd( getarg(0) ) )+"^000000"; } return; } function ValidateCost { if( getitemname( atoi( getarg(0) ) ) != "null" ){ if( countitem( atoi( getarg(0) ) ) < getarg(1) ) return 1; }else{ if( getd( getarg(0) ) < getarg(1) ) return 1; } return 0; } function ClearData { set @Currency$,""; set @TotalCost,0; deletearray @bought_nameid[0],getarraysize( @bought_nameid ); deletearray @bought_quantity[0],getarraysize( @bought_quantity ); deletearray @ItemLists[0],getarraysize( @ItemLists ); deletearray @ItemCost[0],getarraysize( @ItemCost ); return; } function ValueConvert { set .@num, atoi(""+getarg(0)); if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); set .@l, getstrlen(""+.@num); for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; } return .@num$; } OnBuyItem: ShopSettings( @menu ); for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1) for(set @j,0; @j < getarraysize( @ItemLists ); set @j,@j+1) if( @ItemLists[@j] == @bought_nameid[@i] ) set @TotalCost,@TotalCost + ( @ItemCost[@j] * @bought_quantity[@i] ); mes "^FF0000 BILLING LIST^000000"; mes "^00FF00____________________________^000000"; for( set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1 ) mes "^FF0000"+@bought_quantity[@i]+" x ^0000FF"+getitemname( @bought_nameid[@i] )+"^000000"; mes "^00FF00____________________________^000000"; if( getitemname( atoi( @Currency$ ) ) != "null" ) mes "Total Cost : ^0000FF"+ValueConvert( @TotalCost )+" x "+getitemname( atoi( @Currency$ ) )+"^000000"; else if( getitemname( atoi( @Currency$ ) ) == "null" ){ mes "Total Cost : ^0000FF"+ValueConvert( @TotalCost )+" "+@Currency$+"^000000"; } mes "^00FF00____________________________^000000"; if( ValidateCost( @Currency$,@TotalCost ) ){ if( getitemname( atoi( @Currency$ ) ) != "null" ) mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+getitemname( atoi( @Currency$ ) )+"^000000"; else{ mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+@Currency$+"^000000"; } }else{ if( select( "^0000FFPurchase^000000:Cancel" ) == 1 ){ if( getitemname( atoi( @Currency$ ) ) != "null" ) delitem atoi( @Currency$ ),@TotalCost; else{ set getd( @Currency$ ),getd( @Currency$ ) - @TotalCost; } for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1) getitem @bought_nameid[@i],@bought_quantity[@i]; message strcharinfo(0),"Purchased "+getarraysize( @bought_nameid )+" Items."; mes "Thank you for shopping."; } } ClearData(); close; } //############################################################ //By:/"/################################################\"\### //##| |# # # # #### ### ## ### #| |## //##\ \# ## #### #### # # # # ## #/ /## //###\__ ### # #### # # # # # __/### //###### ## #### #### # # # # # ###### //###### # # # # ### ## ## ###### //############################################################ //############################################################ // Clench your eyes a little to see the message above. like this >.< ... lol //== Mega Lotto // //####################################################### //== Edited by Keldon //####################################################### //Mega Lotto-------------------------------------------------------------------------------------------------------- prontera,147,174,5 script Mega Lotto 874,{ waitingroom "MEGA LOTTO",0; mes "[^FF0000Mega Lotto^000000]"; mes "Wanna put your money where your mouth is?"; mes "I'm thinking of a number between ^0000FF1^000000 and ^0000FF100^000000, can you guess what it is? If you get it right i'll give you ^FF0000"+.jackpot+"^000000 cash points, if you get it wrong i'll take away ^FF000050^000000 cash points from you."; mes "So, are you up for it?"; menu "Sure",L_oklotto,"Nah...",L_nolotto; L_oklotto: if (#cashpoints < 50) goto L_nocash; next; mes "[^FF0000Mega Lotto^000000]"; mes "Put a number between 1 and 100"; set @number,rand(1,100); input @guess; if (@guess == @number) goto L_winlotto; if (@guess == 0) goto L_invalidnumber; if (@guess > 100) goto L_invalidnumber; next; mes "[^FF0000Mega Lotto^000000]"; mes "WRONG!!! Ha! Ha! Ha!"; emotion 18; specialeffect2 585; set #cashpoints,#cashpoints -50; mes "You now have ^FF0000"+#cashpoints+"^000000 cash points."; set .jackpot,.jackpot +500; announce "Mega Lotto: The winning price for the lotto currently is "+.jackpot+" cash points",0; close; L_nolotto: next; mes "[^FF0000Mega Lotto^000000]"; mes "Whats the matter? CHICKEN!!"; emotion 18; close; L_winlotto: next; mes "[^FF0000Mega Lotto^000000]"; mes "Congratulations! You won ^FF0000"+.jackpot+"^000000 cash points!"; emotion 46; specialeffect2 371; announce "Mega Lotto: "+strcharinfo(0)+" just won "+.jackpot+" cash points!",0; set #cashpoints,#cashpoints +.jackpot; mes "You now have ^FF0000"+#cashpoints+"^000000 cash points."; set .jackpot,.jackpot +1000; close; L_nocash: next; mes "[^FF0000Mega Lotto^000000]"; mes "Stop shittin' me you don't even have cash to give me."; close; L_invalidnumber: next; mes "[^FF0000Mega Lotto^000000]"; mes "The number you gave me is not between ^0000FF1^000000 and ^0000FF100^000000."; close; }
  2. thanks for the script Euphy. can this have an announce script when u got items with 10% chance?
  3. i dont know what is the problem here, i think cash points is not being detected by my npcs or am i using wrong currency?
  4. Sealed Dracula Card Compounded on: Weapon Description: There's 5% rate that 5% of damage dealt to enemies will be absorbed as SP. If compounded equipment is refined to +15 and above, the absorb rate increase to 7%. Sealed Turtle General Card Compounded on: Weapon Description: ATK increases by 10%, Activate Auto Spell during physical attack to cast [Magnum Break] Lv10. If compounded equipment is refined to +15 and above, ATK increases by 5%. Sealed Knight of Windstorm Card Compounded on: Weapon Description: Activate Auto Spell during physical attack to cast skill [storm Gust] Lv1. When character attacks enemy, have chance to inflict Frozen status on enemies. If compounded equipment is refined to +15 and above, have higher chance to inflict Frozen status on enemies. Sealed Lady Tanee Card Compounded on: Shoes Description: MHP -60%, MSP +50%. Have chance to drop Banana when defeating monsters; Increases effect of Banana by 50%. If compounded equipment is refined to +15 and above, MHP -50%, MSP +50%; Have chance to drop Banana when defeating monsters; Increases effect of Banana by 80%. Sealed Tao Gunka Card Compounded on: Armor Description: MaxHP + 50%, DEF, MDEF - 50. If compounded equipment is refined to +15 and above, MaxHP + 75%, DEF, MDEF - 50. Sealed Amon Ra Compounded on: Shoes Description: All status +1. When character receives damage of physical attack, there is certain rate to activate Auto Spell and cast skill [Kyrie Eleison] Lv5. If this card is equipped by character with 99 INT, the rate of using skill [Kyrie Eleison] is increased. If compounded equipment is refined to +15 and above, cast skill [Kyrie Eleison] Lv8. Sealed Ktullanux Card Compounded on: Armor Description: Increases physical damage to Fire monsters by 25%. Adds a chance to auto casting Lv 10 Frost Nova when wearer receives physical or magic damage. If compounded equipment is refined to +15 and above, increases physical damage to fire monsters by 10% Sealed Mistress Card Compounded on: Headgear Description: Can use magical spells without consuming gemstones. Spend extra 50% SP when using skills. If compounded equipment is refined to +15 and above, spend extra 35% SP when using skills Sealed Kiel Card Compounded on: Headgear Description: Reduce Cast Delay of all skills by 15%. If the compounded equipment is refined to +15 and above, reduce cast delay 5% Sealed Boss Ygnizem Card Compounded on: Shoes Description: Every 15 seconds will recover 50 HP and 10 SP, MHP and MSP +5% If compounded equipment is refined to +15 and above, HP and SP recovery period shortened to 10 seconds, MHP and MSP +2%. Sealed Beelzebub Card Compounded on: Accessory Description: Reduce Floating Cast Time by 15% Sealed Sniper Card Compouned on: Weapon Description: Adds 5% chance of absorbing 10% of the physical damage inflicted on an enemy by the wearer as HP, but also reduces HP Recovery by 100%. If compounded equipment is refined to +15 and above, 5% chance of absorbing 10% of the physical damage inflicted on an enemy by the wearer as HP Sealed Orc Lord Card Compounded on: Armor Description: Can reflect 15% damage to enemies when being physically attacked in short range. If compounded equipment is refined to +15 and above, can reflect 25% damage to enemies. Sealed High Priest Card Compounded on: Armor Description: Adds a chance of autocasting Lv1 Assumption on the wearer each time the wearer is physically or magically attacked. If compounded equipment is refined to +15 and above, it has higher chance to autocast the skill Sealed Master Smith Card Compounded on: Weapon Description: Adds a 5% chance of destroying an enemy's weapon and a 4% chance of destroying its armor each time the wearer physically attacks. If compounded equipment is refined to +15 and above, has a 8% chance of destroying an enemy's weapon and a 6% chance of destroying its armor each time the wearer physically attacks. Sealed Vesper Card Compound on: Headgear Description: Ignores 15% of Boss Monster's Magic Defense Rate when inflicting magic attacks againts them. If compounded equipment is refined to +15 and above, Ignores 25% of Boss Monster's Magic Defense Rate when inflicting magic attacks againts them. Dex + 2 Sealed Eddga Card Compounded on: Shoes Description: Unlimited use of [Endure] skill. Reduces 50% MaxHP, If compounded equipment is refined to +15 and above, Reduces 35% MaxHP. Sealed Gloom Under Knight Card Compounded on: Armor Description: Increases Physical damage to Holy, Shadow, Angel and Demon monsters by 20%, If the compounded equipment is refined to +15 and above, increases Physical damage to Holy, Shadow, Angel and Demon monsters by 10%. Sealed Dark Lord Card Compounded on: Shoes Description: When character receives damage, there will be certain rate of activating Auto Spell to cast Level5 skill of Meteor Storm. If equipped with Dark Illusion Card, MAXHP+10% and MAXSP+10%. If compounded equipment is refined to +15 and above, MAXHP+5% and MAXSP+5% upon equipped with Dark Illusion Card. Sealed Fallen Bishop Card Compounded on: Shoes Description: MATK+5%, MaxSP-50%. Increases magic damage to Demihuman and Angel monsters by 25%. If compounded equipment is refined to +15 and above, MATK+8%, MaxSP-50%. Increases magic damage to Demihuman and Angel monsters by 33%. Sealed Moonlight Flower Card Compounded on: Headgear Description: Can use Increase AGI Lv.1. If compounded equipment is refined to +15 and above, can use Increase AGI Lv.5. Sealed Orc Hero Card Compounded on: Headgear Description: 40% rate avoids being Stun. VIT+3 If compounded equipment is refined to +15, 60% rate avoids being Stun. Sealed Garm Card Compounded on: Armor Description: Whenever character receives damage from physical attack, there is 25% chance to inflict enemies with Frozen status. If compounded equipment is refined to +15 and above, there is 40% chance to inflict enemies with Frozen status. Sealed Ifrit Card Compounded on: Accessory Description: ATK, Critical, Hit is increased depending on the 50% of wearer's job level divided by 10. Autospell Earthquake lvl2 by a certain chance when receiving physical attack. Sealed Lord of the Death Card Compounded on: Weapon Description: There is a certain rate to inflict Coma status on enemies, There is a certain rate to inflict Stunned, Cursed, Silence, Poisoned, Wound status in melee combat. If compounded equipment is refined to +15 and above, the rate to inflict the status aboveis increased. Sealed High Wizard Card Compounded on: Headgear Description: The wearer's attack will ignore the MDEF of regular monsters, Increase Floating Casting Time by 150% and reduces SP Recovery by 150%, drains 3000 SP when the compounded headgear is unequipped. If compounded equipment is refined to +15 and above, increase Floating Casting Time by 120%, reduces SP Recovery by 120%, drains 2000 SP when the compounded headgear is unequipped. Sealed Incantation Samurai Card Compounded on: Weapon Description: Pierce Defense of normal monster. HP of wearer will not recover automatically and losses 888 HP every 5seconds. When equip wearers will loses 999HP. If compounded equipment is refined to +15 and above, wearer will losses 777HP every 8seconds. Sealed Atroce Card Compounded on: Weapon Description: ATK+15 Has a chance attack speed increases by 50% for 10 seconds during physical attack. If compounded equipment is refined to +15 and above, ATK+25, Has a chance attack speed increases by 75% for 10 seconds during physical attack. Sealed Dark Snake Lord Card Compounded on: Headgear Description: INT+3 Have chance resist to Darkness and Curse. If compounded equipment is refined to +15 and above, have higher chance resist to Darkness and Curse Sealed Phreeoni Card Compounded on: Weapon Description: HIT +50 If compounded equipment is refined to +15 and above, HIT +75
  5. Item Name: Hankie In Mouth Description: Biting the handkerchief with delicate and charming look. Damage from Demi-Human-3%. Series : Headgear Defense : 1 Location:Lower Weight : 10 Level Requirement :12 Job :All job make the item script please! thank you! collection.bmp item.bmp
  6. war of emperium is always running even the war of emperium is inactive. there's always an emperium in all castles //===== rAthena Script ======================================= //= Euphy's WOE Controller //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.3b //===== Compatible With: ===================================== //= rAthena SVN r16571+ //===== Description: ========================================= //= A controller for War of Emperium designed for //= simplicity and ease of use. //= Many concepts taken from ToastOfDoom's script, //= and "rewards" function originally by Goddameit. //===== Additional Comments: ================================= //= Be sure to disable the default agit controllers! //== npc\guild\agit_controller.txt //== npc\guild2\agit_start_se.txt //============================================================ prontera,149,193,4 script WOE Information 835,{ doevent "WOE_CONTROL::OnMenu"; end; OnAgitStart: while(agitcheck()) { misceffect 58; sleep 425; } end; } - script WOE_CONTROL -1,{ function Disp_Owner; function Add_Zero; OnInit: // -------------------------------------------------------------------------------------------------------------------------- set .CastleWarp,0; // 1: Always enable all castle warps. | 0: Warp only to active castles. set .AutoKick,1; // Automatically kick players from inactive castles during WOE? (1:yes / 0:no) set .ExitWarp,1; // Warp all players from castles when WOE ends? (1:yes / 0:no) set .GMAccess,99; // GM level required to access Session Manager (cannot be 0) setarray .Reward[0],14001,1; // Reward for all members of conquering guilds, per castle: <ID>,<Count>{,...} (0 to disable) // -------------------------------------------------------------------------------------------------------------------------- set .Size, getarraysize($WOE_CONTROL); setarray .Castles$[0], "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05", "payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05", "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05", "aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05", "arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05", "schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05"; setarray .EndLabel$[0],"ar01","ar02","ar03","ar04","ar05","sc01","sc02","sc03","sc04","sc05"; setarray .Days$[0],"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"; setarray .Regions$[0],"Prontera","Payon","Geffen","Aldebaran","Arunafeltz","Schwaltzvalt"; setarray .Map$[0],"prt_gld","pay_gld","gef_fild13","alde_gld","aru_gld","sch_gld"; setarray .MapX[0],134,240,153,111,208,121,295,317,140,204,214,308,143,193,305,48, 95,142,239,264,158,83, 68,299,292,293,288, 97,137, 71; setarray .MapY[0], 65,128,137,240,240,233,116,293,160,266, 75,240,240,278, 87,83,249, 85,242, 90,272,47,155,345,107,100,252,196, 90,315; if (!agitcheck() && !agitcheck2()) sleep 4000; set .Init,1; OnMinute00: freeloop(1); if (agitcheck() || agitcheck2()) { for(set .@i,0; .@i<.Size; set .@i,.@i+4) if (gettime(4)==$WOE_CONTROL[.@i] && gettime(3)==$WOE_CONTROL[.@i+2]) { OnWOEEnd: announce "The War Of Emperium is over!",bc_all|bc_woe; AgitEnd; AgitEnd2; sleep 1000; for(set .@j,0; .@j<30; set .@j,.@j+1) { if (.Active[0]&(1<<.@j)) Disp_Owner(.Castles$[.@j],1); else if (.AutoKick) removemapflag .Castles$[.@j], mf_loadevent; if (.ExitWarp) maprespawnguildid .Castles$[.@j],0,3; } if (.Reward[0] && .Active[0] && .ForceEnd != 2) callsub OnReward, .Active[0]; deletearray .Active[0],2; if (.ForceEnd) { set .ForceEnd,0; end; } break; } } if ((!agitcheck() && !agitcheck2()) || .Init) { if (!agitcheck() && !agitcheck2()) set .Init,0; for(set .@i,0; .@i<.Size; set .@i,.@i+4) if (gettime(4)==$WOE_CONTROL[.@i] && gettime(3)>=$WOE_CONTROL[.@i+1] && gettime(3)<$WOE_CONTROL[.@i+2]) { deletearray .Active[0],2; set .Active[0], $WOE_CONTROL[.@i+3]; if (.Init) { AgitEnd; AgitEnd2; } else announce "The War Of Emperium has begun!",bc_all|bc_woe; sleep 1000; AgitStart; AgitStart2; for(set .@j,0; .@j<30; set .@j,.@j+1) { if (.Active[0]&(1<<.@j)) { if (!.Init) Disp_Owner(.Castles$[.@j],0); set .Active[1], .Active[1] | (1<<((.@j/5)+1)); } else { if (.AutoKick) setmapflag .Castles$[.@j], mf_loadevent; if (.@j<20) { donpcevent "Agit#"+.Castles$[.@j]+"::OnAgitEnd"; killmonster .Castles$[.@j], "Agit#"+.Castles$[.@j]+"::OnAgitBreak"; } else { donpcevent "Manager#"+.Castles$[.@j]+"::OnAgitEnd2"; killmonster .Castles$[.@j], "Steward#"+.EndLabel$[.@j-20]+"::OnStartArena"; } } } break; } } set .Init,0; freeloop(0); end; function Disp_Owner { set .@o, getcastledata(getarg(0),1); if (.@o) announce "The ["+getcastlename(getarg(0))+"] castle "+((getarg(1))?"has been conquered":"is currently held")+" by the ["+getguildname(.@o)+"] guild.",bc_all|bc_woe; else announce "The ["+getcastlename(getarg(0))+"] castle is currently unoccupied.",bc_all|bc_woe; return; } function Add_Zero { return ((getarg(0)<10)?"0":"")+getarg(0)+(getarg(1,0)?".":":")+"00"; } OnReward: for(set .@i,0; .@i<30; set .@i,.@i+1) if (getarg(0)&(1<<.@i)) { set .@guild, getcastledata(.Castles$[.@i],1); if (.@guild) { deletearray .@acc[0], getarraysize(.@acc); deletearray .@char[0], getarraysize(.@char); query_sql("SELECT account_id,char_id FROM `guild_member` WHERE guild_id = '"+.@guild+"'", .@acc, .@char); for(set .@j,0; .@j<getarraysize(.@acc); set .@j,.@j+1) if (isloggedin(.@acc[.@j],.@char[.@j])) { for(set .@k,0; .@k<getarraysize(.Reward); set .@k,.@k+2) getitem .Reward[.@k], .Reward[.@k+1], .@acc[.@j]; message rid2name(.@acc[.@j]),"You have been rewarded for conquering "+getcastlename(.Castles$[.@i])+"."; } } } return; OnPCLoadMapEvent: if (!compare(strcharinfo(3),"g_cas")) end; sleep2 1000; message strcharinfo(0), getcastlename(strcharinfo(3))+" is inactive during this WOE session."; sleep2 5000; if (compare(strcharinfo(3),"g_cas")) warp "SavePoint",0,0; end; OnMenu: while(1) { mes "[WOE Information]"; if (agitcheck() || agitcheck2()) { if (!.Size) mes "The War of Emperium is ^0055FFactive^000000."; else { for(set .@i,0; .@i<.Size; set .@i,.@i+4) if (gettime(4)==$WOE_CONTROL[.@i] && gettime(3)>=$WOE_CONTROL[.@i+1] && gettime(3)<$WOE_CONTROL[.@i+2]) { set .@i, $WOE_CONTROL[.@i+2]; break; } mes "The War of Emperium is ^0055FFactive^000000 until ^FF0000"+Add_Zero(.@i)+"^000000 in the following regions:"; mes " "; for(set .@i,0; .@i<6; set .@i,.@i+1) if (.Active[1]&(1<<(.@i+1))) mes " > ^777777"+.Regions$[.@i]+"^000000"; } } else { set .@j,0; set .@k,0; for(set .@i,0; .@i<.Size; set .@i,.@i+4) if ((gettime(4)==$WOE_CONTROL[.@i] && gettime(3)<=$WOE_CONTROL[.@i+1]) || gettime(4)<$WOE_CONTROL[.@i]) { set .@j, $WOE_CONTROL[.@i]; set .@k, $WOE_CONTROL[.@i+1]; break; } if (!.@j && !.@k) { set .@j, $WOE_CONTROL[0]; set .@k, $WOE_CONTROL[1]; } mes "The War of Emperium is ^777777inactive^000000."; if (.Size) { mes " "; mes "The next session will begin"; mes "on ^0055FF"+.Days$[.@j]+"^000000 at "+Add_Zero(.@k)+"^000000."; } } next; switch(select(""+((.CastleWarp || .Active[1])?" ~ Warp to castles...":"")+": ~ Check schedule...: ~ View castle owners...:"+((getgmlevel()<.GMAccess || !getgmlevel())?"":" ~ Manage sessions...")+": ~ ^777777Cancel^000000")) { case 1: set .@menu$,""; for(set .@i,0; .@i<6; set .@i,.@i+1) { if (.CastleWarp || .Active[1]&(1<<(.@i+1))) set .@menu$, .@menu$+" ~ "+((.Active[1]&(1<<(.@i+1)))?"^0055FF":"^777777")+.Regions$[.@i]+" Castles^000000"; set .@menu$, .@menu$+":"; } set .@i, select(.@menu$)-1; set .@menu$,""; for(set .@j,.@i*5; .@j<(.@i*5)+5; set .@j,.@j+1) { if (.CastleWarp || .Active[0]&(1<<.@j)) set .@menu$, .@menu$+" ~ "+((.Active[0]&(1<<.@j))?"^0055FF":"^777777")+getcastlename(.Castles$[.@j])+"^000000"; set .@menu$, .@menu$+":"; } set .@j, select(.@menu$)-1; warp .Map$[.@i],.MapX[(.@i*5)+.@j],.MapY[(.@i*5)+.@j]; close; case 2: mes "[schedule]"; if (.Size) { freeloop(1); for(set .@i,0; .@i<.Size; set .@i,.@i+4) { mes "> ^FF0000"+.Days$[$WOE_CONTROL[.@i]]+" ("+Add_Zero($WOE_CONTROL[.@i+1])+"-"+Add_Zero($WOE_CONTROL[.@i+2])+")^000000"; for(set .@j,0; .@j<30; set .@j,.@j+1) if ($WOE_CONTROL[.@i+3]&(1<<.@j)) mes " ~ "+getcastlename(.Castles$[.@j])+" ^777777("+.Castles$[.@j]+")^000000"; if (.@i+4<.Size) mes " "; } freeloop(0); } else mes "No times are configured."; next; break; case 3: mes "[Castle Ownership]"; for(set .@i,0; .@i<6; set .@i,.@i+1) { set .@k, .@i*5; mes "> ^FF0000"+.Regions$[.@i]+"^000000"; for(set .@j,.@k; .@j<(.@k+5); set .@j,.@j+1) { set .@t, getcastledata(.Castles$[.@j],1); mes " ~ "+getcastlename(.Castles$[.@j])+": "+((.@t)?"^0055FF"+getguildname(.@t):"^777777unoccupied")+"^000000"; } if (.@i<5) mes " "; } next; break; case 4: while(1) { mes "[session Manager]"; mes "There are ^0055FF"+(.Size/4)+" session(s)^000000 configured."; mes "What would you like to do?"; next; switch(select(" ~ Add a session...: ~ Delete a session...: ~ Reload settings...:"+((agitcheck() || agitcheck2())?" ~ End WOE session...":"")+": ~ ^777777Go back^000000")) { case 1: mes "[New Session]"; if (.Size > 127) { mes "You have already reached the maximum of 32 sessions."; next; break; } mes "Select a day."; next; set .@Day, select(" ~ "+implode(.Days$,": ~ "))-1; mes "[New Session]"; mes "Select a start time for ^0055FF"+.Days$[.@Day]+"^000000."; next; set .@menu$,""; for(set .@i,0; .@i<23; set .@i,.@i+1) set .@menu$, .@menu$+" ~ "+Add_Zero(.@i,1)+":"; set .@Start, select(.@menu$)-1; mes "[New Session]"; mes "Select an end time for ^0055FF"+.Days$[.@Day]+"^000000."; next; set .@menu$,""; for(set .@i,.@Start+1; .@i<24; set.@i,.@i+1) set .@menu$, .@menu$+" ~ "+Add_Zero(.@i,1)+":"; set .@End, select(.@menu$)+.@Start; for(set .@i,0; .@i<.Size; set .@i,.@i+4) if (.@Day==$WOE_CONTROL[.@i] && ((.@Start >= $WOE_CONTROL[.@i+1] && .@Start < $WOE_CONTROL[.@i+2]) || (.@End > $WOE_CONTROL[.@i+1] && .@End <= $WOE_CONTROL[.@i+2]) || (.@Start <= $WOE_CONTROL[.@i+1] && .@End >= $WOE_CONTROL[.@i+2]))) { mes "[New Session]"; mes "The chosen times overlap with an existing session."; next; set .@d,1; break; } if (.@d) { set .@d,0; break; } set .@Castle,0; while(1) { mes "[New Session]"; mes "^0055FF"+.Days$[.@Day]+" ("+Add_Zero(.@Start)+"-"+Add_Zero(.@End)+")^000000"; mes " > Castles:"; if (!.@Castle) mes " ~ ^777777(none selected)^000000"; else for(set .@i,0; .@i<30; set .@i,.@i+1) if (.@Castle&(1<<.@i)) mes " ~ "+getcastlename(.Castles$[.@i])+" ("+.Castles$[.@i]+")"; next; set .@menu$,((.@Castle)?" ~ ^FF0000Finished...^000000":"")+":"; for(set .@i,0; .@i<30; set .@i,.@i+1) set .@menu$, .@menu$+" ~ "+((.@Castle&(1<<.@i))?"^0055FF":"")+getcastlename(.Castles$[.@i])+" ("+.Castles$[.@i]+")^000000:"; set .@i, select(.@menu$)-1; if (.@i) set .@Castle, .@Castle^(1<<(.@i-1)); else { mes "[New Session]"; mes "Are you sure?"; next; switch(select(" ~ ^0055FFAdd session...^000000: ~ Continue selecting castles...: ~ ^777777Cancel^000000")) { case 1: for(set .@i,0; .@i<.Size; set .@i,.@i+4) if ((.@Day==$WOE_CONTROL[.@i] && .@End<=$WOE_CONTROL[.@i+1]) || .@Day<$WOE_CONTROL[.@i]) { set .@d,1; break; } if (!.@d) { set .@d,1; set .@i,.Size; } copyarray $WOE_CONTROL[.@i+4], $WOE_CONTROL[.@i], .Size-.@i; setarray $WOE_CONTROL[.@i], .@Day, .@Start, .@End, .@Castle; set .Size, getarraysize($WOE_CONTROL); case 3: mes "[New Session]"; mes ((.@d)?"Session added.":"Cancelled."); next; set .@d,1; case 2: break; } if (.@d) { set .@d,0; break; } } } break; case 2: mes "[Remove Session]"; if (!.Size) { mes "There are no sessions configured."; next; break; } mes "Select a session to remove."; next; set .@menu$,""; for(set .@i,0; .@i<.Size; set .@i,.@i+4) set .@menu$, .@menu$+" ~ "+.Days$[$WOE_CONTROL[.@i]]+" ("+Add_Zero($WOE_CONTROL[.@i+1],1)+"-"+Add_Zero($WOE_CONTROL[.@i+2],1)+"):"; set .@menu$, .@menu$+" ~ ^777777Cancel^000000"; set .@i, select(.@menu$)-1; if (.@i==(.Size/4)) break; mes "[Remove Session]"; mes "Delete ^0055FF"+.Days$[$WOE_CONTROL[.@i*4]]+"'s^000000 session?"; mes "This action cannot be undone."; next; set .@j, select(" ~ ^FF0000Delete session...^000000: ~ ^777777Cancel^000000"); mes "[Remove Session]"; if (.@j==2) mes "Cancelled."; else { deletearray $WOE_CONTROL[.@i*4],4; set .Size, getarraysize($WOE_CONTROL); mes "Session deleted."; } next; break; case 3: mes "[Reload Settings]"; mes "This will trigger all events related to new session configurations, if any."; if (agitcheck() || agitcheck2()) { mes " "; mes "Be aware that this will disrupt the current WOE session."; } next; set .@i, select(" ~ ^0055FFReload settings...^000000: ~ ^777777Cancel^000000"); mes "[Reload Settings]"; if (.@i==2) mes "Cancelled."; else { set .Init,1; donpcevent "WOE_CONTROL::OnMinute00"; mes "Variables have been re-initialized."; } next; break; case 4: mes "[Force Agit End]"; if (!agitcheck() && !agitcheck2()) { mes "WOE has already ended."; next; break; } mes "This command will safely execute all AgitEnd events."; mes " "; mes "Kill the current WOE session?"; next; set .@i, select(" ~ ^FF0000End session...^000000:"+((.Reward[0])?" ~ ^FF0000End session without rewards...^000000":"")+": ~ ^777777Cancel^000000"); mes "[Force Agit End]"; if (.@i==3) mes "Cancelled."; else { set .ForceEnd, .@i; donpcevent "WOE_CONTROL::OnWOEEnd"; mes "WOE session terminated."; } next; break; case 5: set .@d,1; break; } if (.@d) { set .@d,0; break; } } break; case 5: close; } } }
  7. Sir KeiKun Can You ReDiff Make Client? This Time Remove Load Lua Before Lub. Thanks! Client Name: Recant Ragnarok Online Client Date: 2010-11-16 SVN of Client: eAthena trunk r14801 Client Diffs: + All recommended Except [Data] Read Data Folder First . Cause I Want My Client To Read Grf Files. + Disable Nagle Algorithm + Use Custom Aura Sprites + Enable Multiple Grfs + Enable Quest Window + Enable Title Bar Menu + Extended Chat Box + Extended Chat Room Box + Extended Pm Box + Remove Gravity Ads + Remove Gravity Logo + Skip Resurrection Button + Skip Service Select + Use Normal Guild Brackets + Use Ragnarok Icon + Increase Zoom Out 75%
  8. this is due to load lua before lub problem you requested that diff LOL so what should i do? dont apply that diff?
  9. Sir KeiKun I have a problem with my requested client.. When I press My Macro Key Alt + 1 ( I put /sit ) . it doesn't Sit. But When i Press Alt + 2 .. It Sits. But In My Macro Key Alt + 2 I Put .. What Is The Problem Sir? Client : Recant Ragnarok Online
  10. Client Name: Recant Ragnarok Online Client Date: 2010-11-16 SVN of Client: eAthena trunk r14801 Client Diffs: + All recommended Except [Data] Read Data Folder First . Cause I Want My Client To Read Grf Files. + Disable Nagle Algorithm + Load Lua Before Lub + Use Custom Aura Sprites + Enable Multiple Grfs + Enable Quest Window + Enable Title Bar Menu + Extended Chat Box + Extended Chat Room Box + Extended Pm Box + Remove Gravity Ads + Remove Gravity Logo + Skip Resurrection Button + Skip Service Select + Use Normal Guild Brackets + Use Ragnarok Icon + Increase Zoom Out 75% This Is My Second Client Request Sir. Hope You'll Accept It This Time. If u see diffs that don't exists just ignore it sir .. Thanks.
  11. Sir Can u Just ignore the missing diffs? and change the client from 2010-08-17 to 2010-11-16. Thanks Sir. Reminder Sir. I want My client To Read Grf Files. Thanks
  12. Client Name: Recant Ragnarok Online Client Date: 2010-08-17 SVN of Client: eAthena trunk r14801 Client Diffs: +All recommended + Unlimited Loading Screens + Enable 127 Hairstyles +Enable Title Bar Menu +Remove Gravity Logo and Ads +Use Ragnarok Icon +Only First Login Background + Increase HG View ID 2000 + Reads GRF + Skip Service Select + Use Custom Aura Sprites + Use Normal Guild Brackets Thanks Sir !!! ) I Hope you accept my request ... Thanks Again Sir!
×
×
  • Create New...