File Name: rentitem2 plugins
File Submitter: Mhalicot
File Submitted: 04 Jan 2014
File Category: Plugins
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
Instruction.some Linux Systwem got many bugs with files what are all ready compiled under VS2010 .
(Windows Compiled wont work on *nix)
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.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
this is what you need to do.
Note: Recompile if you modify the script.rightclick rentitem2>Configuration Properties>General>
search for Platform Toolset, change VS2012(v110) to VS2010(v100) or VS2009(v90)
then try to recompile again..
Sample Script:the command is rentitem2
If you want to edit look for src/plugins/rentitem2.c
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
Click here to download this file
Last edited by a moderator:
