Jump to content

41 files

  1. @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

  2. 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

  3. @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

  4. @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

  5. NpcTalk2

    NOTE: Hercules now provides this functionality by itself (check unittalk). I'm not updating this anymore.
    Hello,
    When converting iRO's Xmas event I missed a way to use npctalk to a specific player, so today I made it.
     
    This plugin adds the npctalk2 script command that allows you to show a message like npctalk, but to a specific player only (by default the one attached to the script).
    *npctalk2("<message>"{, "<npc name>",{"player name"}})This command will display a message to the a target player as if the NPC object running it was a player talking - that is, above their head and in the chat window. The display name of the NPC will get appended in front of the message to complete the effect.If NPC Name is given, the message will display on this npc's instead.If Player Name is given, the message will be displayed to that player instead of the attached one (if he's online)If the player is too far from the NPC (for example, in another map), the message will only show in the chatbox.   Usage Example:
    Assumming it's running in a NPC named Test and that there's a NPC named Test2 near.// Will display "I'm only talking to <Attached Player Name>" only to the attached player over NPC Testnpctalk2 "I'm only talking to "+strcharinfo(0);// Will display "I'm only talking to KirieZ" to player named KirieZ over NPC Testnpctalk2 "I'm only talking to KirieZ", "Test", "KirieZ";// Will display "Don't bother my friend, I'll talk to you" to the Attached player over NPC Test2npctalk2 "Don't bother my friend, I'll talk to you", "Test2";   If you find any bug let me know.

    100 downloads

    2 comments

    Updated

  6. 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

  7. 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

  8. Emo.c

    -This is just atcommand emo, i just learn and try to convert it into plugin
    -Original code by OnPlay
     
    Usage: @emo <1-81>

    65 downloads

    0 comments

    Submitted

  9. 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

  10. 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

  11. 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

  12. SetQuest2

    NOTE: This functionality got merged into Hercules (check setquest and getcalendartime). That being said, I'm NOT maintaining this plugin anymore.
    Hello,
    This plugin adds the setquest2 script command that allows you to add a quest with your own time limit, ignoring the one in quest_db, thus allowing you to, for example, make a quest end at a determined time next day independently of when it was originally given.
    *setquest(<ID>,<Time Limit>)Place quest of <ID> that will expire at <Time Limit> in the users quest log, the state of which is "active".    
    Examples:
     
    - Ask the player to come back in a random number of minutes (1 ~ 3)
    prontera,150,150,4 script SetQuest2 1_m_01,{ .@p = questprogress(7128,PLAYTIME); if (.@p == 1) { mes "Come back later!"; } else { if (.@p == 2) { mes "You came back!"; getitem Red_Potion, 1; erasequest 7128; } .@i = rand(1, 3); mes "Come back in " + .@i + " minutes"; setquest2 7128, gettimetick(2) + (.@i * 60); } close;}    
    - Ask the player to come back tomorrow (next day at 00:00)
    prontera,150,152,4 script SetQuest2b 1_m_01,{ .@p = questprogress(7126,PLAYTIME); if (.@p == 1) { mes "Come back later!"; } else { if (.@p == 2) { mes "You came back!"; getitem Red_Potion, 1; erasequest 7126; } .@i = 86400 - gettimetick(1); mes "Come back tomorrow"; setquest2 7126, gettimetick(2) + .@i; } close;}    
    If you find any bug let me know.

    36 downloads

    0 comments

    Updated

  13. 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

  14. 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

  15. 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

  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.