About This File
HPM (Script command: rentitem2) (AtCommand: @rentitem) complete package.
Compatible with Windows System Only
if you are using Linux, ignore other files and use only rentitem2.c
some Linux Systwem got many bugs with files what are all ready compiled under VS2010 .
(Windows Compiled wont work on *nix)
Instruction.
1. Download and extract files using 7z or any application that can extract it.
2. extract it in your server directory ex: C:/RO Server/Hercules/
2.1. edit conf/plugins.conf and add rentitem2
3. find rentitem2/rentitem2.sln and recompile it.
4. You can now start using your ready made plugins
Pre-Compiled features, ready made MSVC. you can easily rebuild and its ready to go without any trouble on setup.
as simple as Download>Recomple>Play
if you are using VS2010/VS2009/vs2013 or whatsoever and you are failing to compile because of platform issue.
this is what you need to do.
rightclick rentitem2>Configuration Properties>General>
search for Platform Toolset, change VS2012(v110) to VS2010(v100) or VS2009(v90)
then try to recompile again..
Note: Recompile if you modify the script.
the command is rentitem2
If you want to edit look for src/plugins/rentitem2.c
Sample Script:
// Structure*rentitem2 <Item_ID>,<time>, <identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>;*rentitem2 "<Item_Name>",<time>, <identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>;// Scriptrentitem2 @inventorylist_id[.@item],.rentime,@inventorylist_identify[.@item],@inventorylist_refine[.@item],@inventorylist_attribute[.@item],@inventorylist_card1[.@item],@inventorylist_card2[.@item],@inventorylist_card3[.@item],@inventorylist_card4[.@item];
Note: cannot rent pet eggs/armor, stackable items.
// AtCommand Structureusage: @rentitem <item name/ID> <Minutes>
*getequipexpiretick(<equipment slot>)
Returns the number of seconds before the item expires.0 means it never expires (not a rental item)-1 means no item is equipped
Sample Script:
if (getequipexpiretick(.@part)) { mes "Sorry. I don't sign rental items."; emotion e_sry; close; }
If you have any questions feel free to drop a comment.
for more info on how to to use HPM visit Here
(Tested on Hercules rev. 137**)
What's New in Version 3.0 See changelog
Released
- 1.0 Initial script
- 2.0 Added [AtCommand]rentitem
- 3.0 Added [Script]getequipexpiretick
Recommended Comments
There are no comments to display.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.