Jump to content
  • 0

Count Guild Members in Castle Map


Yaoi

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  06/13/14
  • Last Seen:  

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"
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  06/13/14
  • Last Seen:  

Thanks Emistry I'll try your script.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  193
  • Reputation:   41
  • Joined:  07/21/16
  • Last Seen:  

Take a look at this

http://pastebin.com/e3meqR3m

 

credits to the owner

Link to comment
Share on other sites

  • -2

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  191
  • Reputation:   24
  • Joined:  07/19/14
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...