Jump to content

kalabasa

Members
  • Posts

    478
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by kalabasa

  1. 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.
  2. Hmmm, If I click No it will add up to Yes
  3. 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") + " ?";
  4. It would be much faster if getting rid of the first menu and straight to the castle how to do that?
  5. 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; } }
  6. 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 )
  7. How would i add for left accessory since you can only add group starting 1?
  8. i want more like ex. Baby Lord knight ,High Priest, High Wizard etc. and put in item script
  9. 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
  10. 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
  11. 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)
  12. 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;
  13. can you do setarray list of orbs instead of str,agi,vit,int,dex,luk 1~10
  14. i want the item to be a permanent though
  15. how would i stop the event from auto starting when using @reloadscript?
  16. My setup is pre-re and my last entry in my statuspoint.txt was 7185 however i wanted to increased to 7368
  17. Fixed pet eggs as mail attachments #4506 https://github.com/rathena/rathena/pull/4506 i think it's related to this one.
  18. great! , but it affects all scripts that has announce (ex. event scripts poring catcher, dice event.) this will suit best with the broadcaster NPC https://rathena.org/board/topic/126404-additional-feature-for-my-own-broadcaster-npc/
  19. close button still appearing to me or i am doing it wrong? and i already enable the secure_npctimeout next; mes "this message will not close "; ignoretimeout 1; callshop "MvP Shop", 0; break;
  20. i am using callshop and after a couple of minutes the close button will pop out switch(select("Taming Item Shop")) { case 1: close2; mes "this message will not close "; callshop "MvP HG Shop", 0; break; }
×
×
  • Create New...