Resource icon

[Script Command] addrid 1.1

No permission to download
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

some Linux Systwem got many bugs with files what are all ready compiled under VS2010 .

(Windows Compiled wont work on *nix)
Instructions: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

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. *-------------------------------------------------------------------------*/
Quote

A small example to how it works:

Code:
-	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:

Code:
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:

Code:
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"

Main Link~

Note: It is compiled already, so don't bother to recompile it.

use recompile if you modify the script.

If you want to edit look for src/plugins/addrid.c
If you have any questions feel free to drop a comment.
for more info on how to to use HPM visit Here

Author
Mhalicot
Downloads
269
Views
13,077
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Mhalicot

  • Costume Item Plugins
    Costume Item Plugins
    HPM @costumeitem complete package.   Compatible with Windows System Only   if you are using...
  • Party Script Plugins
    Party Script Plugins
    Works only in HERCULES. Due to insistent public demand HPM party script complete package...
  • [AtCommand] afk
    HPM @afk complete package.   Compatible with Windows System Only   if you are using Linux...
  • autopots
    autopots
    HPM autopots complete package.   Compatible with Windows System Only   if you are using Linux...
  • [AtCommand] autoatk
    HPM @autoatk complete package.   Compatible with Windows System Only   if you are using Linux...

Latest updates

  1. Version 1.1

    1.0 ~ Initial Plugin Release rev. 13300 1.1 ~ Fixed map server crash, thanks to ossi0110 for...
  2. Version 1.1

    1.0 ~ Initial Plugin Release rev. 13300 1.1 ~ Fixed map server crash, thanks to ossi0110 for...
  3. Version 1.0

    1.0 ~ Initial Plugin Release rev. 13300
Back
Top