About This File
Converted to plugins since its been a month in pull request e5d29d7 by Dastgir
topic request here
HPM addrid complete package.
Compatible with Windows System Only
if you are using Linux, ignore other files and use only addrid.c
Instructions: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 addrid
3. Your done. you can now try your plugins
/*========================================================================= * Attaches a set of RIDs to the current script. [digitalhamster] * addrid(<type>{,<flag>{,<parameters>}}); * <type>: * 0 : All players in the server. * 1 : All players in the map of the invoking player, or the invoking NPC if no player is attached. * 2 : Party members of a specified party ID. * [ Parameters: <party id> ] * 3 : Guild members of a specified guild ID. * [ Parameters: <guild id> ] * 4 : All players in a specified area of the map of the invoking player (or NPC). * [ Parameters: <x0>,<y0>,<x1>,<y1> ] * Account ID: The specified account ID. * <flag>: * 0 : Players are always attached. (default) * 1 : Players currently running another script will not be attached. *-------------------------------------------------------------------------*/
Quote
A small example to how it works:
- script bla -1,{ end;OnClock0820: addrid(0); if (zeny>20000) set zeny,0; end;}
means 08:20 each player who's currently logged in and has more than 20000 zeny would have his money set to 0;
Another example:
prontera,120,120,2 script bla 120,{ addrid(2000001); set cake,2; dispbottom "soup"; end;}
means that if someone talks with that npc, it'd also add the player with the acc_id 2000001 ,set both of their cake variables to 2 and display soup at the bottom of their chatwindow.
And a last one:
prontera,120,120,2 script bla 120,{ addrid(3,1,getcharid(2)); mes "hey my guild"; close;}
means that if someone in a guild talks with that npc , his entire guild as long as they aren't involved in a script currently, get a npcwindow with "hey my guild"
Note: It is compiled already, so don't bother to recompile it.
use recompile if you modify the script.
If you have any questions feel free to drop a comment.If you want to edit look for src/plugins/addrid.c
for more info on how to to use HPM visit Here
What's New in Version 1.0 See changelog
Released
- 1.0 ~ Initial Plugin Release rev. 13300
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.