Jump to content
  • 0

Menu Script


Question

Posted

Hi guys,

Can anyone create or help me with this script?

 

I want a script that on the message box, I want to create a menu options that will automatically appear on it.

screenNexusRO001.jpg

 

a menu that will automatically read the names on the message box. the one that dont need some modification.

 

i hope someone got the idea that i have and apply this into a script. I hope someone could help me with this...

 

thanks for future help guys.

post-20951-0-51590500-1423573127_thumb.jpg

7 answers to this question

Recommended Posts

Posted

Can anyone help me with this script?

I am creating an NPC Script that when a player logged in it will appear as Online in the Red box showing in the image and if the player logged out it will appear as Offline automatically.

post-20951-0-17020600-1423822110_thumb.jpg

Posted

thanks for the help Luciar but this is not the one that I am looking for. This Online players should appear in the menu options. cause after the NEXT button a menu will appear automatically and it should contain all the online players.

 

I am doing this for almost a week but I really cant make it. Please help me with this.

Posted

Can anyone has an idea for making a script for this?

 

for the correct char_id entered in the *input:

 

NPC ==> Message that contains all the GM ==> next ==> input (char_id) ==> message box that contains the information for the selected GM's char_id ==> close...

 

for the incorrect char_id entered in the *input:

 

NPC ==> Message that contains all the GM ==> next ==> input (char_id) ==>  message box saying that this ID is invalid ==> close...

 

Is there anyone that can create this NPC for. even the sample NPC is simple as long as all the details above included to that NPC I can modify it.. I am hoping that someone understand the detail above..

Posted

Could be done better with menus instead...

prontera,100,100,1	script	test_npc	100,{
	donpcevent("test_npc::OnBuildList");
	.@len = getarraysize(.gm_list$);
	mes "[ test_npc ]";
	if( !.@len ) {
		mes "Sorry no gms are online right now.";
		close;
	}
	mes "Input the gms charid to view information.";
	for(.@a = 0; .@a < .@len; .@a++ )
		mes ""+.gm_list$[.@a];
	next;
	input(.@input);
	mes "[ test_npc ]";
	for(.@a = 0; .@a < .@len; .@a++ )
		if( .gm_list[.@a] == .@input )
			mes .gm_info$;
	if( .@a == .@len )
		mes "I couldn't find that ID Sorry...";
	close;
	
OnBuildList:
	deletearray .gm_list$;
	deletearray .gm_list;
	deletearray .gm_info$
	addrid(0);
	if( getgmlevel() >= 60 ) {
		.gm_list$[getarraysize(.gm_list$)] = strcharinfo(0)+" - "+getcharid(0);
		.gm_list[getarraysize(.gm_list)] = getcharid(0);
		.gm_info$[getarraysize(.gm_info$)] = "Class: "+ Class +", Base Level: "+ BaseLevel +", Job Level: "+ JobLevel +".";
	}
	end;
}
Posted (edited)

 

Could be done better with menus instead...

prontera,100,100,1	script	test_npc	100,{
	donpcevent("test_npc::OnBuildList");
	.@len = getarraysize(.gm_list$);
	mes "[ test_npc ]";
	if( !.@len ) {
		mes "Sorry no gms are online right now.";
		close;
	}
	mes "Input the gms charid to view information.";
	for(.@a = 0; .@a < .@len; .@a++ )
		mes ""+.gm_list$[.@a];
	next;
	input(.@input);
	mes "[ test_npc ]";
	for(.@a = 0; .@a < .@len; .@a++ )
		if( .gm_list[.@a] == .@input )
			mes .gm_info$;
	if( .@a == .@len )
		mes "I couldn't find that ID Sorry...";
	close;
	
OnBuildList:
	deletearray .gm_list$;
	deletearray .gm_list;
	deletearray .gm_info$
	addrid(0);
	if( getgmlevel() >= 60 ) {
		.gm_list$[getarraysize(.gm_list$)] = strcharinfo(0)+" - "+getcharid(0);
		.gm_list[getarraysize(.gm_list)] = getcharid(0);
		.gm_info$[getarraysize(.gm_info$)] = "Class: "+ Class +", Base Level: "+ BaseLevel +", Job Level: "+ JobLevel +".";
	}
	end;
}

 

the script that you provided to me is quite near with what I want for the script. Like what my post is. all the GM on the message should appear automatically under the menu window.

Edited by dfabsgwapings

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