Jump to content
  • 0

Offline invitation?


Santafe

Question


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   34
  • Joined:  06/01/13
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Why not using the mailbox for invitation?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

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:

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