Jump to content
  • 0

GmSupportRequest


max65

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  120
  • Reputation:   1
  • Joined:  10/02/18
  • Last Seen:  

Hi, i need your help for, this script:

Quote

// -------------------------------------------------------------------------------------------------
// Original Script by: greenmagic469
// Modified by: Panda - GM Kazehaya
// - Knights Ragnarok Online -
// v1.0(Original) - Simple @request sent to GMs
// v1.1 - Added Delay and Number of GMs online
// v1.2 - Added changing waitingroom title and check if there are available GMs
// - Modification End -
// -------------------------------------------------------------------------------------------------

prontera,148,195,5    script    GM Support Assistant    469,{

if(.GM_Online < 1  ){ mes "[ ^FF55FFGM Support Assistant^000000; ]"; mes "No available GMs."; close; }
mes "[ ^FF55FFGM Support Assistant^000000; ]";
mes "Number of GM(s) online: "+.GM_Online;
mes "Would you like to contact them?";
menu "Send a help request.",P_1,"Quit.",P_2;

P_1:
if(gettimetick(2) < #HelpDelay) {
        mes "You may only send a message every 5 minutes!";
        close;
}
atcommand "@request This player is in need of assistance.";
dispbottom "Notified the Game Masters.";
set #HelpDelay,gettimetick(2)+300;
emotion e_hlp;
close;
end;

P_2:
close;

OnInit:
set .MinGMLevel,10;
    reload:
    delwaitingroom;
    waitingroom "Number of online GMs: "+.GM_Online+"",0;
    sleep2 3000;
    delwaitingroom;
    waitingroom "Do you want to contact GMs?",0;
    sleep2 3000;
    delwaitingroom;
    waitingroom "If you need assistance, please click me.",0;
    sleep2 3000;
    goto reload;
end;


OnPCLoginEvent:
if( getgmlevel() >= .MinGMLevel ){
set .GM_Online,.GM_Online+1;
end;
}
else
end;

OnPCLogoutEvent:
if( getgmlevel() >= .MinGMLevel ){
set .GM_Online,.GM_Online-1;
end;
}
else
end;

}

my mapserv.bat tell me (gmsupportinfin.png.d5f27e5a5e192cb8a12f2a7c33d7a919.png

How i can solved that plz? ^^

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

don't use `sleep2`

 

Quoted from doc/script_commands.txt

sleep 10000; //pause the script for 10 seconds and ditch the RID (so no player is attached anymore)
sleep2 5000; //pause the script for 5 seconds, and continue with the RID attached.

 

I didn't test this but ohh well...

prontera,148,195,5	script	GM Support Assistant	469,{
	mes .n$;
	if ( !.onlinegm ) {
		mes "No available GMs at the moment";
		close;
	}
	mes "No. of GMs Online :"+ .onlinegm;
	mes " ";
	mes "Would you like to contact them?";
	next;
	if(select("Yes","No")==2) close;
	mes .n$;
	if(gettimetick(2) < #HelpDelay) {
		mes "You may only send a message every 5 minutes!";
        close;
	}
	atcommand "@request This player is in need of assistance.";
	#HelpDelay = gettimetick(2) + 300;
	mes "Game Masters has been notified.";
	close;

OnPCLoginEvent:
	if ( getgmlevel() > 10 ) 
		++.onlinegm; 
	end;
		
OnPCLogoutEvent:
	if ( getgmlevel() > 10 ) 
		--.onlinegm; 
	end;
	
OnInit:
	.n$ = "[ ^FF55FFGM Support Assistant^000000; ]";
L_Reload:
	waitingroom "Number of online GMs: "+.onlinegm,0;
	sleep 3000;
	delwaitingroom;
	waitingroom "Do you want to contact GMs?",0;
	sleep 3000;
	delwaitingroom;
	waitingroom "If you need assistance, please click me.",0;
	sleep 3000;
	delwaitingroom;
	goto L_Reload;
	end;
}

 

Edited by pajodex
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  120
  • Reputation:   1
  • Joined:  10/02/18
  • Last Seen:  

Thx ^^

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