//===== Hercules Script ====================================== //= Multiple Extra Drops //===== By: ================================================== //= Cretino (Yuri Moreira Lima) //= Revised English: Aeromesi //===== Current Version: ===================================== //= 1.7a (Revised English by Aeromesi) //===== Description: ========================================= //= Add new drops to the monsters and global extra drops with possibility of adding extra global drops by element and/or races. //===== Additional Comments: ================================= //= 1.1 Now you can add unlimited monsters with extra drops. // Command to change extra drops and percentage of a monster added. [Cretino] //= 1.2 Now you can add global extra drops. (Items that can be dropped by any monster) (Idea by [JulioCF]:[Cronus-Emulator]) // Now you can also add global extra drops with elements and/or races. [Cretino] //= 1.3 Calculation of percentage updated. // NPC optimized. // Fixes in commands: 'drop#add', 'drop#remove', 'drop#show', 'drop#edit'. [Cretino] //= 1.4 NPC optimized. // Command 'drop#add' more detailed in the comments below. [Cretino] //= 1.5 Now you can add global extra drops for Boss monsters. // Updated commands: 'drop#add', 'drop#remove', 'drop#show', 'drop#edit'. [Cretino] //= 1.6 Now you can add drops for a specified time. // Calculation percentage updated, now almost identical to the emulator. // Updated commands: 'drop#add', 'drop#remove', 'drop#show'. // Bug fix: Problem when trying to add global extra drops for Boss monsters. // NPC added in 'prontera' on coordinates '147 171', // So players can do research about extra drops. // Fixes in command: 'drop#remove'. // Functions added: 'extra_drop_compatibility', 'remove_expired_mob', 'global_drop_string_format', 'mob_drop_exists', // 'percent_format', 'cap_value' e 'max'. // Functions added to break array limit: 'deletearrayd', 'copyarrayd', 'cleararrayd', 'setarrayd', // 'getelementofarrayd', 'getarraysized'. [Cretino] //= 1.7 Updated to get Hercules compatibility. // Little translation from Portuguese to english. // TODO: Need to revise all script with comments for spelling errors. // TODO: Need to update old functions to remove 'break array limit', because // I created this script before the upgrade that allows you to create arrays with more than 127 data, // but no worries, it still works fine. [Cretino] //============================================================ // Q: How to manipulate the drops? // R: Send a whisper via Whispering System with 'npc:extradrop'. // Note: You can see the commands below. // Note 2: Read all comments to understand how it works. // Note 3: May have spelling errors. (Sorry for my english :x) // Fixed by Aeromesi :D // Note 4: If anyone with good english can revise this, I'd appreciate it. // Note 5: If you found any bug, report in topic or send me a private message. // Note 6: READ ALL COMMENTS TO UNDERSTAND HOW IT WORKS!! (Yes, again as a reminder!) :) // I will not teach how to use, because the comments are well explained. //Elements // None = -1 // Neutral = 0 // Water = 1 // Earth = 2 // Fire = 3 // Wind = 4 // Poison = 5 // Holy = 6 // Dark = 7 // Ghost = 8 // Undead = 9 //Races // None = -1 // Formless = 0 // Undead = 1 // Brute = 2 // Plant = 3 // Insect = 4 // Fish = 5 // Demon = 6 // DemiHuman = 7 // Angel = 8 // Dragon = 9 // All commands and example of usage: //drop#add########