Jump to content
  • 0

Offline invitation?


Question

Posted

Hey all just wondering if its posibble to invite people to a guild even if he/she is offline? When the player invited cms online this is the mesage he gets: The guild "xxx" has invited you to join them. To accept type /accept or to reject type /reject. This should be a mesage in a diferent colour so that the player cn easily see it. It should not be a pop up coz then ths wld iritate players if too many invitations are sent to them. The guild name is also required to accept. Example /accept xxx thx guys :o

Bump

4 answers to this question

Recommended Posts

Posted

i think that will need src mod. unless there is a script that can read when a plaer without guild has been tryied to be invited while offline lol

 

sorry, i'm not being helpful D:

Posted

Doing anything in sql dealing with guild information doesn't updating instantly and uselessly requires a server restart. So, unless there's a new command I don't know about. A request like this just isn't very practical.

 

On the other hand I did build a script that allows GMs to change guild leaders while they're offline...

-	script	GLC	-1,{
function f_recovery;
OnWhisperGlobal:
	if(@whispervar0$ == ""  || getgmlevel() < 60) end;
	set .@a, getcharid(2,@whispervar0$)?getcharid(2,@whispervar0$):atoi(@whispervar0$);
	set .@e, getcharid(3,@whispervar1$)?getcharid(3,@whispervar1$):atoi(@whispervar1$);
	set .@g, getarraysize(.recovery$);
	set .@d$, getguildmaster(.@a);
	set .@f$, strcharinfo(0);
	
	if(@whispervar1$ == "" && .@a) set .@b$, @whispervar0$;
	if(!getcharid(0,@whispervar0$)) {
		if(!f_recovery()) {
			set(.recovery$[.@g],@whispervar0$);
			message .@f$,"Character is offline but will be granted guild leader when logged in."; 
		} else message .@f$,"Character has been removed from the list!";
		end;
	}
	if(isloggedin(.@e)) {
		set .@b$, rid2name(.@e);
		if( rid2name(.@e) == @whispervar1$ )
			set .@b$, @whispervar1$;
	}
	if(!.@a) { message .@f$,"No guild was found!"; end; }
	if(.@d$ == .@b$) { message .@f$,"He's already the guild master!"; end; }
	message .@f$, guildchangegm(.@a,.@b$)?
		"Guild leader successfully changed!":"Player not found!";
	end;

OnPCLoginEvent:
function f_recovery;
	sleep2 2000;
	if(f_recovery())
		guildchangegm(getcharid(2),strcharinfo(0));
	
	function	f_recovery	{
		while(.@i<getarraysize(.recovery$)) {
			if(.recovery$[.@i]==strcharinfo(0)) {
				deletearray .recovery$[.@i],1;
				return 1;
			}
			set .@i,.@i+1;
		} return 0;
	}
}
Posted

huh i can only think that, something like send a mail to the char @mail throu npc or just using @mail lol

 

and a script or something that reads when someone has a new email and then it would pop up, or a emoticon o:

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