Jump to content

41 files

  1. plugin-storagecount-item

    This is a fix for an existing plugin "storagecounteitem" which does not work with the newer storage architecture.
     
    I have simply changed the iterators for storage traversal.
     
     
     
    Original Author: Tranquility
    Original Plugin: 
     

    58 downloads

    1 comment

    Submitted

  2. check_bound command

    A simple command to check if the player currently has a bound item in their inventory. Thus eliminating the need to use getinventorylist; to do the check. Additionally, you can check for a number of parameters regarding that item.
    *checkbound(<item_id>{,<bound_type>{,<refine>{,<attribute>{,<card_1>{,<card_2>{,<card_3>{,<card_4>}}}}}}});This command allows you to check whether or not the attached player has the specified bound item in their inventory.Valid bound types are: 1 - Account Bound 2 - Guild Bound 3 - Party Bound 4 - Character BoundOptional Parameters: refine - checks to see if the item is refined to the given number. attribute - whether the item is broken (1) or not (0) card 1,2,3,4 - checks to see if the specified cards are compounded on the item as well.
    Example:
    if( checkbound(1205) ){ mes "You have a bound Cutter"; close;} else { mes "You do not have a bound Cutter"; close;}
    Example 2:
    if( checkbound(1205, 2) ){ mes "You have a guild_bound Cutter"; close;} else { mes "You don't have the required item."; close;}
    Example 3:
    if( checkbound(1205, 2, 7) ){ mes "You have a +7 guild_bound Cutter."; close;} else { mes "You don't have the required item."; close;}

    26 downloads

    0 comments

    Updated

  3. @storeit

    Hi guys!
     
    Just converted Akinari's @storeit command into a plugin.
     
    What does it do?
    With this command you can store all items in your inventory except currently equipped equipment.
     
    Have fun and God bless!

    123 downloads

    0 comments

    Submitted

  4. Channel Fee Plugin

    With this plugin you be able to set required Zeny and/or Items to players be able to send messages on channels.
     
    The idea came from this post, thank you @blaze.
     
    How to configure channels:
    // FIXME: make a better way to add fee on channels (directly on channels.conf) const struct { char name[HCS_NAME_LENGTH]; int zeny; int nameid; int amount; } channels_fee[] = { // -- Add channels with fee like the example: {"name", zeny, item id, item count}; {"main" , 1000, 0 , 0}, // #main - 1000z and no item };   Find 'channels_fee[]' declaration, and add an element just like the example.
     
    If you find any bugs please report them! Hope you enjoy it.

    57 downloads

    0 comments

    Updated

  5. race_resist

    A simple plugin that adds race_resist() into your emulator (Checks race resist of a player).
    //===== Description ========================================== //= Checks how much resistance a character has to a particular // race. // //= race_resist(<type>{, <account id>}); //= E.g. race_resist(RC_Player); //= E.g. race_resist(RC_Player, getcharid(CHAR_ID_ACCOUNT)); Its just actually a rip off plugin from @bWolfie's check_resist() plugin full credits goes to him.

    134 downloads

    0 comments

    Updated

  6. Broadcast Alarm

    @balarm <color> <type> <file name> <message> Type
    0 - Global message
    1 - Local message
     
    File name
    It's a file that is inside your grf\wav\file.wav
    WARNING! If nonexistent file is put all hexeds that receive this broadcast will crash!
     
    Color
    Uses the same configuration as '@kamic'
     
    Source-code:
    http://pastebin.com/TFS0GCDs v1.0
    http://pastebin.com/idsFvmhJ v1.1
    For more information see: http://herc.ws/board/topic/3525-broadcast-with-sound-alarm/

    57 downloads

    0 comments

    Updated

  7. Skill Error Messages

    Its more of a way to demonstrate how HPM overloading can be used (its going to be much more fun to play with once we get HPM Hooks released).

    SkillErrorMessages
    Replaces client-side error messages by custom server-side error messages, for skills.
    Not Enough Spirit Spheres Message
    %d requires a total mind bullets becomes
    %s requires a total %d spirit spheres (%s being the skill name, %d the amount of spirit spheres)



    Contribute / Customize
    Its available at our Staff Plugins Repo, pull requests are more than welcome.

    122 downloads

    0 comments

    Submitted

  8. Mob Drop Qty

    HPM Plugin.
    /** * Adds a 50% ( customizeable ) chance for ETC (customizeable) items to drop from mobs with double quantity * Adds a 25% ( customizeable as well ) chance for it to use tripple quantity (this dice is only played if the 50% one succeeded) * Adds a 10% ( customizeable as well ) chance for it to use quadruple quantity (this dice is only played if the 25% one succeeded) * Adds a 5% ( customizeable as well ) chance for it to use quintuple quantity (this dice is only played if the 10% one succeeded) * For example, after a player succeeds at dropping a jellopy (at any rate), theres a 50% chance it'll be 2 jellopies instead of 1, * and if that 50% succeeds, there'll be another 25% chance for it to be 3 instead of 2, and if that 25% succeeds, * there will be another 10% chance for it to drop 4 instead of 3, and if that 10% succeeds, there will be a 5% chance to drop 5 instead of 4. * - MvP drops are not affected * - Items looted by monsters are not affected **/ - Requires HPM Hooking
     
    Easy to Customize
    switch( data->type ) { /** * uncomment those you wanna affect, don't even try adding gear or non-stackable types -- they are not meant to have qty higher than 1! **/ //case IT_HEALING: //case IT_USABLE: //case IT_CARD: //case IT_AMMO: //case IT_DELAYCONSUME: //case IT_CASH: case IT_ETC: /** * Feel free to modify the formula here! **/ if( rand()0 > 50 ) /* if rand > 50, break and do not affect the qty */ break; *qty += 1;//from 1 to 2 if( rand()0 > 25 ) /* if rand > 25, break and do not affect the qty further */ break; *qty += 1;//from 2 to 3 if( rand()0 > 10 ) /* if rand > 10, break and do not affect the qty further */ break; *qty += 1;//from 3 to 4 if( rand()0 > 5 ) /* if rand > 5, break and do not affect the qty further */ break; *qty += 1;//from 4 to 5 break; } You may also use the *nameid variable if you wish to further enhance the mechanic, for example
    if( *nameid == 604 ) /* if dead branch, qty + 2 */ *qty += 2; How to Install
    Check the wiki page on 'Building a Plugin' http://herc.ws/wiki/HPM#Building_a_plugin
     
    Contribute / Customize
    Its available at our Staff Plugins Repo, pull requests are more than welcome.

    89 downloads

    0 comments

    Submitted

  9. Server Side Manners.txt

    HPM Plugin.
    - Implements the 'server-side' manners.txt aka ability to blacklist words.
     
    Includes:
    - Ability to read 'conf/manners.txt' (you have to create the file, you can fill as you like, and use '//' to create commands as well).
    - The @reloadmanners command
    - Implements the 'mouthful' group permission, which allows individual groups to bypass the badwords filter.
     
    Requires:
    - HPM Hooking to be enabled.
     
    How to Install
    Check the wiki page on 'Building a Plugin' http://herc.ws/wiki/HPM#Building_a_plugin
     
    Contribute / Customize
    Its available at our Staff Plugins Repo, pull requests are more than welcome.

    175 downloads

    0 comments

    Submitted

  10. Instance Check Commands

    Additional Instance Check Commands to go along with the existing instance_check_party.
     
    Commands:
    *instance_check_guild(<guild_id>{,<amount>{,<min>{,<max>}}});This function checks if a guild meets certain requirements, returning 1 ifall conditions are met and 0 otherwise. it will only check online characters.amount - number of online guild members (default is 1).min - minimum level of all characters in the guild (default is 1).max - maximum level of all characters int he guild (default is max level in conf).Example:if( instance_check_guild(getcharid(2), 2, 1, 150) ){ mes "Your guild meets the Memorial Dungeon requirements.", mes "All online members are between levels 1-150 and at least two are online."; close;} else { mes "Sorry, your guild does not meet requirements."; close;}
    *instance_check_ready(<IOT_TYPE>,<owner_id>{,amount{,min{,max}}});This function checks if the Char, Party, Guild, etc... meets certain requirements, returning 1 ifall conditions are met and 0 otherwise. It will only check online characters.IOT_TYPE: IOT_NONE - Not sure what this is, but will return 1 regardless of settings due to it being unknown. IOT_CHAR - Character ( Will only check for min or max level. Amount doesn't matter since only 1 character can enter IOT_CHAR instance ). IOT_PARTY - Party IOT_GUILD - Guildamount - number of online party members (default is 1).min - minimum level of all characters in the party (default is 1).max - maximum level of all characters in the party (default is max level in conf).Example:if( instance_check_ready(IOT_CHAR, getcharid(0), 1, 75) ){ mes "The player has met all the requirements to enter the instance.", mes "The player is at least level 75 and is online."; close;} else { mes "The player does not meet all the requirements or is offline."; close;}Example 2:if( instance_check_ready(IOT_PARTY, getcharid(1), 5, 10, 50) ){ mes "The party meets all the requirements to enter the instance.", mes "All online members are between the levels 10-50 and at least 5 members are online."; close;} else { mes "Sorry, your party does not meet all the requirements."; close;}Example 3:if( instance_check_ready(IOT_GUILD, getcharid(2), 36, 140, 150) ){ mes "The guild meets all the requirements to enter the instance."; mes "All online members are between the levels 140-150 and at least 36 of them are online."; close;} else { mes "Sorry, your guild does not meet the requirements."; close;}
    [Credits: malufett for providing the base for which these commands were derived from].

    24 downloads

    0 comments

    Submitted

  11. bonus3 bAtkEnemyStat

    Hercules Plugin
    bonus3 bAtkEnemyStat
     
    Description:
    Will increase Damage by z% if Enemy Stat is >= y
     
    Repo Link:
    https://github.com/Normynator/Ragnarok/blob/master/HPM-Plugins/bonustargetstats/bonustargetstats.c
     
    Credits:
    Senpai Dastgir, for giving me inspiration
     
     
    How to install?
    https://github.com/HerculesWS/Hercules/wiki/Hercules-Plugin-Manager
     
    How to use?
     
    Format:
     
    STR = 1
    AGI = 2
    VIT = 3
    INT = 4
    DEX = 5
    LUK = 6
     
    bonus3 bAtkEnemyStat, x, y, z;
    x = Stat
    y = Stat enemy must have
    z = damage increase (10 = 10%);
     
    e.g:
    bonus3 bAtkEnemyStat, 3, 50, 10;
    Increase Damage by 10% if enemy vit >= 50.

    32 downloads

    0 comments

    Updated

  12. @storeitem

    HPM Plugin. Implements the @storeitem command
    @storeitem <item name or ID> <quantity> <refine> <char name> Designed by Beowulf/Nightroad
     
    How to Install
    Check the wiki page on 'Building a Plugin' http://herc.ws/wiki/HPM#Building_a_plugin
     
    Contribute / Customize
    Its available at our Staff Plugins Repo, pull requests are more than welcome.

    120 downloads

    0 comments

    Submitted

  13. [Atcommand]itemmap

    Itemmap Plugin
     
    usage

    @itemmap <mapname> <itemid> <amount>
     
     
     
    Note: The code of @itemmap isn't mine, credit goes to the owner , I just converted it to a plugin for Hercules

    134 downloads

    0 comments

    Submitted

  14. getrandmob (script command)

    Hi guys!
     
    Just converted Akinari's getrandmob script command into a plugin.
     
    What does it do?
    Grabs a random monster from one of the branch databases.
    Useful for hunter quests, disguise events, and anything else you can think of.
    Uses database stored in memory, so it's faster and more efficient than running SQL queries and doesn't require you to use SQL dbs for items and mobs.

    67 downloads

    0 comments

    Submitted

  15. @autobuyammo

    Hi guys!
     
    Just converted Goddameit's @autobuyammo
     
    This files includes the plugin + script for the bind command (will try to make it a real command soon)
     
    How does it works?
    Just activate the command and when your ammo is depleted it will be replenished with the same ammo by 10s as long as you have zeny
     
    Have fun and God bless!

    112 downloads

    0 comments

    Submitted

  16. Hash table

    This plugin exposes the internal hash table (strdb) to the script engine to provide a key-value store.
    See documentation on hercules-hashtable/doc/script_commands.txt
     
    Download here: https://github.com/Helianthella/hercules-hashtable

    7 downloads

    0 comments

    Updated

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.