Search the Community
Showing results for tags 'script addrid'.
Found 2 results
-
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 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 /*========================================================================= * 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" 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. for more info on how to to use HPM visit Here Click here to download this file
- 16 replies
-
- addrid script
- script addrid
-
(and 1 more)
Tagged with:
-
Version 1.1
263 downloads
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. 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" 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. for more info on how to to use HPM visit Here-
- addrid script
- script addrid
-
(and 1 more)
Tagged with: