Jump to content
  • 0

Need a modification of this script


PandaLovesHamster

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   35
  • Joined:  12/18/14
  • Last Seen:  

source: https://rathena.org/board/topic/90618-guild-limit-script/

 

-	script	kjdfhkdjsfs	-1,{
OnPCLoadMapEvent:
	if ( !getd( "."+ strcharinfo(3) ) ) end;
	.checkmap$ = strcharinfo(3);
	.count = 0;
	.@origin = getcharid(3);
	addrid 3, 0, getcharid(2);
	if ( strcharinfo(3) == .checkmap$ )
		.count++;
	if ( !.@origin ) end;
	if ( .count > 30 ) {
		message strcharinfo(0), "Your guild members are over the limit";
		sleep2 2000;
		warp "Save", 0,0;
	}
	end;
OnInit:
	setarray .@map$, "hugel", "payon";
	.@size = getarraysize( .@map$ );
	for ( .@i = 0; .@i < .@size; .@i++ ) {
		setmapflag .@map$[.@i], mf_loadevent;
		setd "."+ .@map$[.@i], 1;
	}
	end;
}

Credits to AnnieRuru for the script above.

What I want this script to do is:

 

1. Game Master will REGISTER a guild. Any guild on the list will go through the check above. Any guild not registered on will skip the check entirely.

I hope this is do-able. Thank you.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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...