Jump to content
  • 0

Count Guild Members in Castle Map


Question

Posted (edited)

Hi, I need a script that checks quantity of guild members in guild castles.


- Max users allowed per guild in the same castle = 15
-If users are > 15, the 16th user member of the same guild will be warped to save point automatically.

-Npc with gm access to modify the quantity of members allowed in guild castles maps.

note: i know there's a way to modify the guild members qty (like changing the guild extension skill lvl) but i prefer to use the script.

I would pay for the script if its necessary.

Edited by Akkarin
Modified title from "Guild Members" to "Count Guild Members in Castle Map"

4 answers to this question

Recommended Posts

  • 1
Posted

use this script command https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L3215-L3221

OnInit:
	setmapflag "prtg_cas01",mf_loadevent;
	end;

OnPCLoadMapEvent:
	.@map$ = strcharinfo(3);
	if ( getmapflag( .@map$,mf_gvg_castle ) ) {
		if ( getmapguildusers( .@map$, getcharid(2) ) > 15 ) {
			mes "max member reached. warp back to savepoint.";
			close2;
			warp "SavePoint",0,0;
		}
	}
	end;
	

 

  • Upvote 1
  • -2
Posted (edited)
4 hours ago, Yaoi said:

Hi, I need a script that checks quantity of guild members in guild castles.


- Max users allowed per guild in the same castle = 15
-If users are > 15, the 16th user member of the same guild will be warped to save point automatically.

-Npc with gm access to modify the quantity of members allowed in guild castles maps.

note: i know there's a way to modify the guild members qty (like changing the guild extension skill lvl) but i prefer to use the script.

I would pay for the script if its necessary.

message me. i have this already in my server. and i can modify it if you want too.

Edited by HappyMan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...