Jump to content

kalabasa

Members
  • Posts

    478
  • Joined

  • Last visited

  • Days Won

    1

kalabasa last won the day on January 19 2023

kalabasa had the most liked content!

1 Follower

Recent Profile Visitors

5598 profile views

kalabasa's Achievements

Deviling

Deviling (12/15)

  • Problem Solver Rare
  • Dedicated
  • First Post
  • Collaborator
  • Reacting Well

Recent Badges

14

Reputation

12

Community Answers

  1. site cant reach? or just me?
  2. Same. it does not delete the item.
  3. I'll take not of this.
  4. So as the title says im getting error with these lines but when i initiate @reloadscript it works just fine if (!Class_Mastery) { message strcharinfo(0),"The book does not respond."; end; } if (!(Class_Mastery & pow(2,.@i))) and the full script im talking about.
  5. Hmmm, If I click No it will add up to Yes
  6. How would it display how many player chooses yes or no?, i want to be announced eg Yes: 99 No: 100 mes "" + " " + (.@s == 1 ? "Yes" : "No") + " ?";
  7. It would be much faster if getting rid of the first menu and straight to the castle how to do that?
  8. I would like to limit only the maximum deposit when using the Bank Agent i could not find any related to this so i decided to post it up here is the raw script. //===== rAthena Script ======================================= //= Banker Script //===== By: ================================================== //= Syrus22 (1.0) //===== Current Version: ===================================== //= 2.0 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= An account wide Banker to store Zeny //===== Additional Comments: ================================= //= Syrus22 - There's an optional transaction fee at the top of //= the script. To use it simply change the first set command //= to set the cost variable to whatever you want the fee to be. //= Version 2.0: Optimized and brought the script up to standard. [Jguy] //============================================================ prontera,132,217,5 script Banker 109,{ set @cost,500; mes "[Banker]"; mes "Welcome to the First Bank of Prontera. How can I help you today?"; next; switch(select("I'd like to make a deposit.:I'd like to make a withdrawal.:What's my current balance?:Cancel")) { case 1: mes "[Banker]"; mes "Very well... How much would you like to deposit? The maximum you can deposit at once is 999,999 Zeny."; next; if (@cost > 0) { mes "[Banker]"; mes "Oh, and do realize there is a " +@cost + " Zeny charge on all transactions!"; next; } input @deposit; if (@deposit < 1) { mes "Make sure you ask me to deposit a real amount."; close; } else if (@deposit > Zeny) { mes "It does not appear like you have the amount of zeny you're trying to deposit!"; close; } else if (@deposit > (Zeny - @cost)) { mes "You need " + @cost + " Zeny to cover the transaction fee!"; close; } else { set Zeny,Zeny - @deposit; set Zeny,Zeny - @cost; set #bankstorage,#bankstorage + @deposit; mes "[Banker]"; mes "Thank you very much... Your zeny is in good hands."; close; } case 2: mes "[Banker]"; mes "Very well... How much would you like to withdraw? The maximum you can withdraw at one time is 999,999 Zeny"; next; if (@cost > 0) { mes "[Banker]"; mes "Oh, and do realize there is a " +@cost + " Zeny charge on all transactions!"; next; } input @withdrawl; if (@withdrawl < 1) { mes "Please don't play games. I need a real amount to withdraw."; close; } else if (@withdrawl > #bankstorage) { mes "You only have ^00FF00" + callfunc("F_InsertComma",#bankstorage) +"^000000 zeny in your account!"; close; } else if ((@cost > Zeny) && ((Zeny + @withdrawl) > @cost)) { mes "[Banker]"; mes "You don't have the Zeny for the transaction fee right now. Would you like me to take the fee directly from your withdrawal?"; next; switch(select("Yes please.:No, Thanks")){ case 1: mes "[Banker]"; mes "Removing " + @cost + " from your withdrawal to cover the deposit fee..."; set @withdrawl,@withdrawl - @cost; set #bankstorage,#bankstorage - @cost; set @cost,0; next; set Zeny,Zeny - @cost; set Zeny,Zeny + @withdrawl; set #bankstorage,#bankstorage - @withdrawl; mes "[Banker]"; mes "There's your Zeny. Have a good day."; close; case 2: mes "[Banker]"; mes "Very well... come again soon."; close; } } else { set Zeny,Zeny - @cost; set Zeny,Zeny + @withdrawl; set #bankstorage,#bankstorage - @withdrawl; mes "[Banker]"; mes "There's your Zeny. Have a good day."; close; } case 3: mes "[Banker]"; mes "Hmmmm... let me check some paper work."; next; mes "*Rustle, Rustle*"; next; mes "[Banker]"; mes "You currently have " + callfunc("F_InsertComma",#bankstorage) + " Zeny in your account."; close; case 4: mes "[Banker]"; mes "Very well... come again soon."; close; } }
  9. I would love to know how could i seperate a weapon and a shield I wanted to create a menu that can only Read Shields and Weapons + Both hands on another one setarray .@indices[1], EQI_HEAD_TOP, EQI_ARMOR, EQI_HAND_R, EQI_HAND_L,EQI_GARMENT,EQI_SHOES,EQI_ACC_L,EQI_ACC_R; for(.@i = 1; .@i<getarraysize(.@indices); ++.@i) { if( getequipisequiped( .@indices[.@i] ) ) { .@menu$ += F_getpositionname(.@indices[.@i]) + "-[" + getequipname(.@indices[.@i]) + "]^000000"; .@equipped = 1; } .@menu$ += ":"; } if(!.@equipped){ end; } i want to put this but idk how this is for Shield Only. getiteminfo( getequipid( EQI_HAND_L ),2 ) != 4 )
  10. How would i add for left accessory since you can only add group starting 1?
  11. i want more like ex. Baby Lord knight ,High Priest, High Wizard etc. and put in item script
  12. is still possible? i search over but i could not find one and it's not available in @job where in i can see the job ID's
  13. i want only these item-id to be listed as for my test if you have 4703 on your inventory it will pop out in the menu but it should not
  14. i want exactly on the setarray .orbs to be exactly selected as for now its taking a range for example these first two 4702,4712 (this covers 4702,03,04,05,06,07,08,09,10,11,12)
  15. set .@menu$, ""; set .@a, .orbs[0]; while((set(.@a,.@a+1)-1)<=.orbs[1]) if(getiteminfo(.@a-1,2)>-1) if(set(.@c,countitem(.@a-1))) { set .@menu$, .@menu$+getitemname(.@a-1)+" x"+.@c+":"; set .@b,.@b+1; set .@item[.@b], .@a-1; } if(.@menu$=="") { mes .npc$; mes "Hmm, you don't seem to have any enchantment orbs."; close; } mes .npc$; mes "Please, select an enchantment from the menu."; next; select(.@menu$); set .@itm, .@item[@menu]; setarray .orbs, 4702,4712,4722,4732,4742,4752,4767,4834;
×
×
  • Create New...