Jump to content

Ninja

Members
  • Posts

    513
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Ninja

  1. I think a better way to handle this is to add a player variable that holds a timestamp when he last finished a quest you've made. example: OnQuestFinish: set CustomQuestTimeStamp, gettimetick(2); end; OnQuestCheck: set @TimeDelay, gettimetick(2) - CustomQuestTimeStamp; if (@TimeDelay < (.TimeBeforeAplayerCanDoThisQuestAgain)) mes "Sorry you can't do this quest right now. Please come back later."; close; else { //... quest stuff here } end; OnInit: set .TimeBeforeAplayerCanDoThisQuestAgain, 1 * 86400; //60 secs/min * 60 mins/hr * 24 hrs/day * how many days you want end;
  2. Are you trying to edit the iteminfo.lua? if so, make sure that you're using "Windows-1252" encoding. At least it works for me. I'm using notepad++
  3. I had a similar issue when I was trying to make a custom shield work. I think you are not able to create a new type of shield there instead just able to alter one. Idk if someone else has already made this work correctly
  4. Try to check your msgstringtable.txt and find that message then replace it. I might be wrong but it is worth the try.
  5. You can add a new line after containing In your HourlyPoints script you have to put a label at the start named "OnStart:" and remove "OnPCLoginEvent" if it contains any.
  6. Also if you really need their LuaFiles, go and ask the owner to give you the files instead.
  7. Are you trying to edit a skill for that purpose? How do you intend to use it? There's a script bonus that does that for you. You can use it via auto attack bonus as well.
  8. This is client-sided. The server only provides the information to be interpreted and presented on the client-side
  9. Just add something like "OnMonday:" before OnInit. For reference please see below. Pardon for the image as I'm replying through my mobile phone.
  10. View File Mad Hatter - Headgear Rental + Randomizer About This File Tested and working with: 264af55 No Source Modifications needed. Purpose Provides a nice set of hats which resets after x amount of days. It can give the possibility to try the headgear on. This is primarily targeted for Headgears but other items can also be sold and automatically takes off "View Item" in the menu if it is the item being bought is not a headgear. Has the ability to randomize or use a pre-defined set of items. Changelogs The Mad Hatter V 1.1.1: Fixed problem about checking rentals items in inventory when Randomize Hats option is enabled V 1.1.0: Public Release Swapped Yes/No sequence when a GM talks to the NPC to avoid accidental reroll. Added Randomization option of hats V 1.0.1: Fixed missing semi-colon in config part. V 1.0.0: Player can rent 1 headgear per day. Cannot rent another headgear, if the rented item is still present on their inventory. Configurable length of rental time Choose between Zeny or Coin payment Able to try headgear via "View Item" menu Weekly change of items. GMs can manually reroll the item set per week. Configurable amount of Headgears to be displayed per week *please see configuration part by searching "Configuration part" Preview of Configuration in Script End User License and Terms of Services: 1. I will retain all the rights in all the scripts that I create 2. Client cannot redistribute nor resell the scripts that I provide 3. No refunds 4. Maintenance of scripts does not include modification of the original intended behavior. If the script has been broken due to prior modification of the original behavior then it would mean a new service request 5. Modification of the original intended behavior would mean a new service request and would go through the process mentioned above 2. This can be redistributed anywhere in any form. 3. This shall not be in any way be branded for sale anywhere in any form. 4. Maintenance will not be provided. Feel free to use the support section. 5. See #3. 6. Ninja has the right to post all my free services to the release section and make it available for everybody to use 7. Maintenance of scripts will be provide free of charge 8. I will not keep any sensitive information from your server nor any credentials that you lend me 9. I will backup all my server files before I use this. 10. Ninja will not be liable in any way at any time. 11. The moment I use anything from here, I accept all the terms of services stated above. Where the script author is Ninja (https://rathena.org/board/profile/7005-ninja/). ====================================================================================================== Credits to Radian for the initial request. ====================================================================================================== Submitter Ninja Submitted 06/15/2017 Category Utilities Video Content Author Ninja  
  11. Version 1.1.1

    146 downloads

    About This File Tested and working with: 264af55 No Source Modifications needed. Purpose Provides a nice set of hats which resets after x amount of days. It can give the possibility to try the headgear on. This is primarily targeted for Headgears but other items can also be sold and automatically takes off "View Item" in the menu if it is the item being bought is not a headgear. Has the ability to randomize or use a pre-defined set of items. Changelogs The Mad Hatter V 1.1.1: Fixed problem about checking rentals items in inventory when Randomize Hats option is enabled V 1.1.0: Public Release Swapped Yes/No sequence when a GM talks to the NPC to avoid accidental reroll. Added Randomization option of hats V 1.0.1: Fixed missing semi-colon in config part. V 1.0.0: Player can rent 1 headgear per day. Cannot rent another headgear, if the rented item is still present on their inventory. Configurable length of rental time Choose between Zeny or Coin payment Able to try headgear via "View Item" menu Weekly change of items. GMs can manually reroll the item set per week. Configurable amount of Headgears to be displayed per week *please see configuration part by searching "Configuration part" Preview of Configuration in Script End User License and Terms of Services: 1. I will retain all the rights in all the scripts that I create 2. Client cannot redistribute nor resell the scripts that I provide 3. No refunds 4. Maintenance of scripts does not include modification of the original intended behavior. If the script has been broken due to prior modification of the original behavior then it would mean a new service request 5. Modification of the original intended behavior would mean a new service request and would go through the process mentioned above 2. This can be redistributed anywhere in any form. 3. This shall not be in any way be branded for sale anywhere in any form. 4. Maintenance will not be provided. Feel free to use the support section. 5. See #3. 6. Ninja has the right to post all my free services to the release section and make it available for everybody to use 7. Maintenance of scripts will be provide free of charge 8. I will not keep any sensitive information from your server nor any credentials that you lend me 9. I will backup all my server files before I use this. 10. Ninja will not be liable in any way at any time. 11. The moment I use anything from here, I accept all the terms of services stated above. Where the script author is Ninja (https://rathena.org/board/profile/7005-ninja/). ====================================================================================================== Credits to Radian for the initial request. ======================================================================================================
    Free
  12. What exactly does it do? Please describe a scenario.
  13. @Kero You don't have to limit yourself with what is currently available which is heavily made in PHP. If you want to ride the current trends in the market today for web development, all you have to take note is that you have to work with a MySQL database and try newer technologies than PHP such as javascript-based ones (e.g. AngularJS, MeteorJS, etc.) This way, you can hit 2 birds at the same time. 1, You will be able to contribute using new technologies. 2, your skills will be on par with the current market
  14. When you say "cast delay," what exactly do you mean? The time it takes before you can do another sonic blow or something else?
  15. it is because the declaration of the variable that handles the bonus in the src is type short. struct s_skill_bonus { //skillatk raises bonus dmg% of skills, skillheal increases heal%, skillblown increases bonus blewcount for some skills. unsigned short id; short val; Hence, C automatically truncates the decimals that follow after it. If you want to handle decimal values, you have a lot of choices but for me you can do this: change the variable type to any floating type variable (i.e. float, double, etc.) but you should make sure to cap those values to -32768.00 to +32767.00 to accommodate the original non-float type "short"
  16. battle.c :: battle_calc_attack_skill_ratio case WS_CARTTERMINATION: i = 10 * (16 - skill_lv); if (i < 1) i = 1; //Preserve damage ratio when max cart weight is changed. if (sd && sd->cart_weight) skillratio += sd->cart_weight / i * 80000 / battle_config.max_cart_weight - 100; else if (!sd) skillratio += 80000 / i - 100; break;
  17. Do you have any errors in your map server? If you do that, you will have map server errors if your list grows more.
  18. you mean even if there is no one there it will rain gold? no need to kill anything?
  19. Ninja

    Help whosell

    Just found out about this "Catalog" feature that RO has and is already supported in rAthena. It can open the store that's selling the item right then and there. http://www.playragnarok.com/news/updatedetail.aspx?id=183 in the source they are outlined as /// Search Store System void clif_search_store_info_ack(struct map_session_data* sd); void clif_search_store_info_failed(struct map_session_data* sd, unsigned char reason); void clif_open_search_store_info(struct map_session_data* sd); void clif_search_store_info_click_ack(struct map_session_data* sd, short x, short y); in the script commands *searchstores <uses>,<effect>; Invokes the store search window, which allows to search for both vending and buying stores. Parameter uses indicates, how many searches can be started, before the window has to be reopened. Effect value affects, what happens, when a result item is double-clicked and can be one of the following: 0 = Shows the store's position on the mini-map and highlights the shop sign with yellow color, when the store is on same map as the invoking player. 1 = Directly opens the shop, regardless of distance. Example: // Item Universal_Catalog_Gold (10 uses, effect: open shop) searchstores 10,1;
  20. Just like the question asks, Which part of the source is <NAVI> <INFO> and <URL> handled?
  21. The solution lies just above the code that you're trying to edit. Screenshots: flee2_rate is calculated as src code: if (bl->type&battle_config.enable_perfect_flee) { stat = status->flee2; stat += (status->luk*10/3) + 10; // (every 3 luk = +1 perfect flee) status->flee2 = cap_value(stat, 0, SHRT_MAX);
×
×
  • Create New...