File Name: [script Command] addrid
File Submitter: Mhalicot
File Submitted: 04 Dec 2013
File Category: Plugins
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
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
Quote
A small example to how it works:
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:
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:
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"
Main Link~
Note: It is compiled already, so don't bother to recompile it.
use recompile if you modify the script.
for more info on how to to use HPM visit Here
Click here to download this file
File Submitter: Mhalicot
File Submitted: 04 Dec 2013
File Category: Plugins
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:1. Download and extract files using 7z or any application that can extract it.some Linux Systwem got many bugs with files what are all ready compiled under VS2010 .
(Windows Compiled wont work on *nix)
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
Code:
/*========================================================================= * 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. *-------------------------------------------------------------------------*/
A small example to how it works:
Code:
- script bla -1,{ end;OnClock0820: addrid(0); if (zeny>20000) set zeny,0; end;}
Another example:
Code:
prontera,120,120,2 script bla 120,{ addrid(2000001); set cake,2; dispbottom "soup"; end;}
And a last one:
Code:
prontera,120,120,2 script bla 120,{ addrid(3,1,getcharid(2)); mes "hey my guild"; close;}
Main Link~
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
Click here to download this file
Last edited by a moderator: