Jump to content
  • 0

Menu Script


Reborn

Question


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

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

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

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

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:  

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


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

 

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


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

bump ***

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