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
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
this is what you need to do.
Note: cannot rent pet eggs/armor, stackable items.
*getequipexpiretick(<equipment slot>)
Sample Script:
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**)
Credit: Original file by Brian and converted by Me
Compatible with Windows System Only
if you are using Linux, ignore other files and use only rentitem2.c
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
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.
Note: Recompile if you modify the script.
Sample Script:
Code:
// 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];
Code:
// AtCommand Structureusage: @rentitem <item name/ID> <Minutes>
Code:
Returns the number of seconds before the item expires.0 means it never expires (not a rental item)-1 means no item is equipped
Code:
if (getequipexpiretick(.@part)) { mes "Sorry. I don't sign rental items."; emotion e_sry; close; }
for more info on how to to use HPM visit Here
(Tested on Hercules rev. 137**)
Credit: Original file by Brian and converted by Me