Jump to content

emundus

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by emundus

  1. emundus

    @quest

    what is happening when you use @quest?
  2. Tenta simplesmente alterar o "Type: Card" para "Type: Usable", usar o script correto para laphine_upgrade & randomopt
  3. I made a basic script just to show you how it works, here is YOUR updated script and attachment showing how it works: lhz_dun03,239,78,4 script Bio Entrance 651,{ function F_Warp; if (countitem(4359) > 0) goto case_1; end; case_1: //F_Warp("<map>",<x>,<y>,<item 1 ID>,<item 1 amount>{,<item 2 ID>,<item 2 amount>{...}} F_Warp("lhz_dun04",244,61,4359,5,4357,5,4367,5,4365,5,4363,5,4361,5); end; function F_Warp { .@map$ = getarg(0,""); .@x = getarg(1,0); .@y = getarg(2,0); //This loop fills a array with all the needed items for(.@i = 3; .@i < getargcount(); .@i += 2) { .@items[.@i2] = getarg(.@i); .@amount[.@i2] = getarg(.@i + 1); .@i2++; } //This loop checks for each item needed for (.@i = 0; .@i < getarraysize(.@items); .@i++) { if (countitem(.@items[.@i]) < .@amount[.@i]) { if (!.@header) { mes "I don't have enough items to use this warp.."; mes "I still need: "+mesitemlink(.@items[.@i])+"^FF0000"+countitem(.@items[.@i])+"^000000/^27FF00"+.@amount[.@i]+"^000000."; .@header = true; } mes .@amount[.@i] + " " + mesitemlink(.@items[.@i]); .@missing = true; } } if (.@missing) return; //This loop removes each item needed for (.@i = 0; .@i < getarraysize(.@items); .@i++) delitem .@items[.@i], .@amount[.@i]; warp .@map$, .@x, .@y; return; } }
  4. Give me the code that do you have until now, and I will do for you and edit here.
  5. How to put a clickable image from an item in the NPC dialog, like below?
  6. You can use an "if" condition checking if the player has the specific amount of items, if he doesn't he shows the name of the item in red, if he does he shows it in green. If you don't know how to use colors in NPCs, here's an example: "[^03fc0fAlekinho^000000]"; ^hexColor<name of npc>^000000
  7. Valid bound types are: Bound_Account : Account Bound item Bound_Guild : Guild Bound item Bound_Party : Party Bound item Bound_Char : Character Bound item
  8. I created 2 characters, one selecting 1x and the other 100x, in the chat debug it shows that more exp came but they have the same experience after killing the same amount of porings. Edit: I forgot the "multi_level_up: yes" xD Thanks
  9. When in doubt about which rate to keep on the server, I ended up creating a command for GMs to change the server rates and announce the rates to everyone if changed. Note: the language is in Brazilian Portuguese, feel free to modify the texts to your language. The script working: !!Don't forget to add the folder into "rAthena/npc/scripts_custom.conf"!! changerates.txt
  10. You need to put the Aegis_Name of the item in "Item:"
  11. Is working in the latest rAthena?
  12. I would like to request a "rate selector", which would be Low Rates, Mid Rates and High Rates (I would like to customize the values, if possible). I would also like some help with installation, thanks in advance! How it would work: when entering the character for the first time, the person chooses the rates they want to play and there is a "buff" showing the selected rates (or a command like @myrates).
  13. I ended up creating the command with the values manually, thanks for the support @Winterfox!
  14. This appears to be enchantment, look for something about custom enchantments.. Let me know if you find, I would like to learn about too!
  15. Can you help me to create a code for a command (@myrates) showing the selected rates? I thought about, when selecting the rates, saving a variable in the character (char_reg_num) specifying the chosen rates and then showing it in the command @myrates...
  16. the item buffs do not add up to the script buff
  17. - script RateSelect -1,{ OnSetRate: OnPCLoginEvent: switch(individual_rate) { case 1: .@exp_rate_bonus = .low_rate_exp_bonus; .@drop_rate_bonus = .low_rate_drop_bonus; break; case 2: .@exp_rate_bonus = .mid_rate_exp_bonus; .@drop_rate_bonus = .mid_rate_drop_bonus; break; case 3: .@exp_rate_bonus = .high_rate_exp_bonus; .@drop_rate_bonus = .high_rate_drop_bonus; break; default: mes "Selecione suas rates preferidas para este personagem."; mes "TENHA CUIDADO: VOCÊ NÃO PODE MUDAR DEPOIS!"; mes "[Rates EXP/Drop %]"; mes "- Low Rates:" + .low_rate_exp_bonus + ", " + .low_rate_drop_bonus + "."; mes "- Mid Rates:" + .mid_rate_exp_bonus + ", " + .mid_rate_drop_bonus + "."; mes "- High Rates:" + .high_rate_exp_bonus + ", " + .high_rate_drop_bonus + "."; individual_rate = select("- Low Rate:- Mid Rate:- High Rate"); close2; goto OnSetRate; } sc_start SC_EXPBOOST, INFINITE_TICK, .@exp_rate_bonus; sc_start SC_ITEMBOOST, INFINITE_TICK, .@drop_rate_bonus; end; OnInit: .low_rate_exp_bonus = 200; .mid_rate_exp_bonus = 2000; .high_rate_exp_bonus = 20000; .low_rate_drop_bonus = 200; .mid_rate_drop_bonus = 2000; .high_rate_drop_bonus = 20000; } I translated it into my language and added the information on rates, would the code be like this?
  18. Thank you so much, I will test and leave a feedback
  19. I would like to thank you very much for the support provided, could you answer some questions regarding the script? 1. Are other boost items applicable separately or do they accumulate with the script boosts? 2. is the rate based on, for example, 2x 20x and 200x? Thanks
  20. Thank you, I had some personal problems and couldn't see the answer.. I have a question: how will this influence that character's rates on the server?
  21. Looking for a solution to my problem, I ended up generating the solution to yours: // Criado por Alek Emundus // comando @loja // abre a lojinha básica para vender/comprar itens - shop ComandoShop -1,506:-1,501:-1,502:-1,503:-1,504:-1,525:-1,601:-1,602:-1,1065:-1,645:-1,656:-1,657:-1,610:-1,713:-1 - script ShopComando -1,{ OnInit: bindatcmd "loja",strnpcinfo(3) + "::OnAtcommand"; end; OnAtcommand: callshop "ComandoShop"; end; } I hope it helps!
  22. log in to your administrator account, enter the Downloads page and look for the option "Manage pages", create a new one and edit it as needed.
×
×
  • Create New...