Search the Community
Showing results for tags 'functions'.
Found 8 results
-
Hey guys, this is my first published script (in Hercules Community). Name: Multiple Extra Drops Creator: Me (@@Cretino) Description: Add unlimited drops to monsters or in global mode. (Global mode = Items that can be dropped by any monster) Version: 1.8b (Little mistake fixed.) Contributors: @@Aeromesi (Script revised to English. Thank you very much!), @@evilpuncker (Idea to add 'bindatcmd') Q: 'What features have 'Multiple Extra Drops'?' R: Q: 'How to use these features?' R: 'You will need read a little my comments for understand, but you can try use '@drop' to see all commands and prototypes.' Q: 'How do I configure it?' R: 'You can go to line '245' in script, and you will see details like:' About percentage system: It work almost identical to emulator. I'm accepting suggestions. If you found any bug, report in topic or send me a private message. I'll solve the problem as quickly as possible. I think is it. multiple_extra_drops_v1.8.txt multiple_extra_drops_v1.8.txt multiple_extra_drops_v1.8.txt multiple_extra_drops_v1.7.txt
-
[Ragnarok Gacha System] Pull for Weapons. Pull for Armor. Pull for Cards. Simply Gacha. New features: 1) Be able to cycle back to main menu and quickly select new item to roll for. 2) Sound is disabled by default, so if you don't want to add client files, don't worry about it. Just put the script in server and test it out. 3) If your weight is above or equal to 50% you won't be able to gacha pull. Just imagine hitting 100% weight and your gacha item drops and someone snatches it real quick, that would be horrible. Default values (Edit OnInit Label): .gachaPulls = 20; // How many gacha pulls they need until they can pull for a card .weaponChance = 2; // Weapon chance 2% .armorChance = 2; // Armor chance 2% .weaponFee = 500000; // Weapon fee .armorFee = 400000; // Armor fee .cardFee = 900000; // Card fee $@godItems is an array of item ID's, these item ID's cannot be pulled (god items, super rare cards like gtb, etc, basically any item you don't want pulled add to the array). Link to download: https://github.com/Aeromesi/AeromesiCodes/blob/master/Scripts/customnpc/gacha.txt
-
another lame script that has been around for a very long time ... just a function to show the item name exactly like on the client side Download: 2.6 script Display Item name just as the client version 2 onward has color code for display inside npc dialog original topic from eathena and rathena ...
-
The following script emulates the Bounty Board Quests from iRO. This was made by having direct interaction with all the npcs, directly doing some of this quest and also using iRO Wiki information as a source. This quest uses a special function designed to concentrate and manage all the bounties in a few lines, to make it easy to update, modify or even create custom bounties. iRO Bounty Boards v1.0.rar For more details please check: Bounty Board Quests - iRO Wiki Special thanks to: Trixtan and ZacktheBear from AtlantisRO. This would not have been possible without their invaluable help. Some notes about this: There are some errors in iRO's npc. In example, in Juno the Bounty 70-110 for Juno with a char base level 127, the Bounty says it is for levels 70-100 (not 110, as his name says). This error was caused because this quests were implemented before update that expands max base level to 175 and it seems that iRO's npc were scripted individually one by one, not as a function, so, this errors may be only little bugs when updating values. This kind of error is present in some bounties for Lighthalzen, Hugel, and don't remember which other one. However, all the npcs presented here are using the information provided by iRO Wiki and presents information ingame avoiding this kind of errors. I have not added the questinfo command to show quest mark, because the equivalent in iRO has an argument to check player's base level, so the mark doesn't active with all the players, but only the ones that are in the base level limit. Some to-do : I'm missing base/job exp for False Angel and Mini Demon (Geffen Bounties), since that information is not present in iRO Wiki and I haven't The Sign quest. If somebody can open Portal to Geffenia, i will update that values. Bounties for biolab 2 and 3 has a special function, it is like containing two boards in one, since a player can choose to do all bounties for monsters from 3rd level and all bounties for monsters from 4th level (to receive the reward for all the bounties completed). I also forget to add the vip function to Collect All Bounties. This quests are a close emulation to iRO's Bounty Boards. We hope players can enjoy this quests. If you detect any error or have a suggestion, please feel free to comment it.
-
Hi there! I've tried to make a Fallen Angel Wing Enchanment NPC as similar to iROwiki's definition http://irowiki.org/wiki/Fallen_Angel_Wing_Enchants Features: I moved the npc to prontera. Removed the ASPD and Critical from the categories, because I can't find the items needed to enchant it. It automatically enchants the slots from the first to the third slot. Randomly put enchanment on slot 1 and 2 according to iroWiki, and fixed enchantment on the 3rd slot instead of adding possible enchants, I made it 100% chance of enchanting the enchants listed in the additional enchants. Has reset enchantment which requires Silvervine Fruite - ID6417. this is my first time to code in C, so feel free to post any bugs or suggestions here. fallenangelenchant.txt
-
I really need a topic for this shuffle algorithm or I have to keep press the search button non-stop what is Shuffle Algorithm ? - it generate a set of numbers in random order that the numbers are not repeated Wiki -> http://en.wikipedia.org/wiki/Fisher–Yates_shuffle This script is no longer necessary, use the one inside Global Function Commit Link Credit to @Haru Pull #872
-
My kiel card not working I don't know why Im using Pre renewal thanks kindly help me asap thank youu.
-
Hey everyone. So roughly three years ago, i stopped being a dedicated scripter/admin for a server, and left RO behind. Recently i fell into talks with an old friend, and was encouraged to throw some of my old stuff up, for others to possibly benefit from. Thus, my Fishing Minigame is what i'll throw up here. Hopefully it will meet some positive response. WARNING: As this is three years old, while i do believe it will still work, i cannot completely guarantee it. However i'm sure that no matter what might be outdated, it should only take a few adjustments to bring it up to speed. IMPORTANT: This was originally made for an rAthena server, but aside from the slightly changed monster format (which i have accounted for), everything else should work like this. If not, please reply and we'll see if we can get this heap working properly. DISCLAIMER: You may not sell this script or any part of it, nor release it as your own or remove the credits or commented sections of the code. You are however allowed make modifications for your servers usage. QUICK OVERVIEW: This package includes a custom MVP, custom items, a custom map (tiny one. don't be disappointed) and the actual script. I will try to describe what i did, but each server setup varies, so you might have to get your hands dirty, if my instructions doesn't line up with your setup properly. DIFFICULTY: 3/10 if your server works like mine. 7/10 if you need to adjust the instructions, and figure out how to add all this on your own. You will learn/need to know how to add custom monsters, custom items, custom maps and custom scripts. DESCRIPTION: This will introduce a fishing minigame to your server. You will have to talk to Old Fisherman Kingle, who will start you on the "quest" towards great fishing glory. Once equipping a fishing rod and talking to him, the player will be presented with an introduction to how the minigame is played. At the special fishing spots scattered throughout the entire world, the player can sit down, let out their lines, and try to fish up all the rare fish. Once all rare fish have been caught, the player can ask Kingle to let him face off against the custom MVP, the Lord of the Sea (Leviathan). Statistically, the player can reach the MVP at around 6 hours gameplay (not counting having to actually FIND all the fishing spots), but the main goal is supposed to be a minigame, with the MVP being the cherry on top. INSTALLATION: Right then, the attached file is an archive (you will need WinRAR or equivalent software to unpack it), with a long list of files. There is the "fishing_minigame.txt" file, which is the actual script. It's roughly 2300 lines of code, so it might seem overwhelming to both scripters and non-scripters alike. It is however very well commented, explaining the parts that needs describing. Following the instructions inside the script should make it easy to add new fishing spots or other small modifications/additions. Then there's a folder called "client". In there you'll find the "/data" folder, containing sprites, textures and the custom map files. This should all line up perfectly for you to simply merge it with your own grf or data folder. Additionally, there is a "/System" folder, with an ItemInfo.lua file, that you'll need to properly integrate with your own ItemInfo.lua. It contains all the items i added, both for custom fish and custom drops for the MVP. Finally there's the "server" folder, which houses all the large amounts of text, needed to add to your servers existing files, to add the custom mvp and the custom items. NOTE: The files there are NOT all the modifications you need to do on your server, to finish the install. So to do a proper step-by-step list of instructions: 1: Merge the "client/data/" folder with your clients "/data/" folder OR your grf file OR make another grf file and link it. 2: Install the custom map by: 2.1: In your "<server>/conf/maps.conf" file, add "map: fishmvp_dun" at the bottom, along with your other custom maps. 2.2: In your "<server>/db/map_index.txt" file, add "fishmvp_dun" at the bottom, along with your other custom maps 2.3: Rebuild your mapcache. You do this by backing up your "<server>/db/(pre-)re/map_cache.dat, and then running your "<server>/mapcache.exe" program. Make sure you open a separate cmd first, and navigate to it, to run it, so you can see its output in case it doesn't finish properly. 2.4: <optional> in your "<client>/data/mapnametable.txt" file, add "fishmvp_dun.rsw#Lair of the Lord#" at the bottom 3: Install the custom mvp by: 3.0: <important> The custom monster will need an ID not already in use. In this case, my mvp uses the custom ID 2900. If this ID is already in use on your server, you will need to replace the ID with an appropriate ID instead. This will is for both the mob declaration as well as the related skills. 3.1: Check your downloaded files, in the "/server/db" folder, you'll find "mob_db2.txt". It contains a single line of text, that needs to be copied to the bottom of your "<server>/db/mob_db2.txt" file. Remember to change the ID if it doesn't work for you. 3.2: The same way as before, you need to take everything in the "mob_skill_db2.txt" file, and copy it to the bottom of your "<server>/db/mob_skill_db2.txt" file. Remember to change the IDs if they don't match the one you gave your monster in the previous step. They must be the exact same or your mvp will do nothing at all. 3.3: You now need to add it to your client. In the "<client>/data/luafiles514/lua files/NPCIdentity.lub", you need to add "JT_LEVIATHAN = 2900," near the bottom of the file, among your other custom mobs. make sure the ID is the same as the ID you gave it on the server earlier. 3.4: The same way as before, in the "<client>/data/luafiles514/lua files/jobname.lub", you need to add "[jobtbl.JT_LEVIATHAN] = "leviathan"," near the bottom of the file, among your other custom mobs. 3.5: <notice> This mvp is scaled to be moderately strong, on an advanced server. Therefore you might want to test the mvp's strength and adjust to work with your own servers relative strength. The idea is to make it roughly the same challenge level as Drake. <important> Players WILL face this mvp ALONE; so if your server balance makes significantly weaker characters, you will need to scale back very much. If your low/mid tier mvps require a full team of players, you should consider lowering both its amount of slaves, as well as its base stats and spell levels. Balancing is up to you. 4: Install the custom items by: 4.0: <important> All the custom items added here, are added with the ID i gave them when adding this whole deal. If these conflict with your server setup, you will need to alter all the ids, making sure they are the same both serverside and clientside. 4.1: In your downloaded archive file, you need to find "server/db/item_db2.conf". The full contents of this file needs to be added to your "<server>/db/item_db2.conf" among your custom items. <notice> If you add them as the last items on the list, make sure you remove the trailing "," at the end of my file, and add an extra "," before it, so the syntax fits with the rest of the file, so there's a "," between each item, and none after the last one in the list. 4.2: In your downloaded archive file, you need to find "client/System/ItemInfo.lua". The whole content of that file needs to be added to your "<client>/System/ItemInfo.lua" file, among your other custom items. <notice> If you add them as the last items on the list, make sure you remove the trailing "," at the end of my file, and add an extra "," before it, so the syntax fits with the rest of the file, so there's a "," between each item, and none after the last one in the list. 4.3: <IMPORTANT> <warning> If you change any of these id's, you will need to change the related ID's in all other parts of the package as well. First off, if you change the item ID's for the three mvp drop items or the mvp card, you need to go back to step 3.1, and alter that line to use the new item ids for the drops. If you change the IDs for any of the fish, you'll need to open the actual main script and change the ID throughout the entire script. There will be the ID listing in the comment, and 5 other occurances in the related fishing spot duplicate names, for each rare fish with a changed ID. On top of that, non-rare id's changed will have 3 occurances, the ID listing in the top comments, and two separate for the drop-list. 5: Install the actual minigame script by: 5.1: In the downloaded archive, find the "fishing_minigame.txt" file, and copy it to your "<server>/npc/custom/" folder. 5.2: In your "<server>/npc/scripts_custom.conf" file, near the bottom, add "npc: npc/custom/fishing_minigame.txt" among your other custom scripts. 6: With all your new client edits, make a patch and let all your players update. 7: restart your server. And with that overly lengthy list of things to do, we should be done! I sure hope i remembered everything. It gets easy to overlook a detail when you do so many different things at the same time. Feel free to reply with questions, complaints, errors or everything else related. Hopefully it works, but if not, a couple of edits and iterations should iron out any residing bugs/oversights. Good luck with it, and happy fishing! fish.rar