hakuren Posted August 25, 2013 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Share Posted August 25, 2013 (edited) how to make an npc that with the item is on the inventory the name and amount of that item will show on the menu ex. yggseed yggberry if in the inventory with you talk to npc the menu will show those item if not in the inventory or didnt have it will not show Edited August 25, 2013 by hakuren Quote Link to comment Share on other sites More sharing options...
Patskie Posted August 29, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: November 10, 2024 Share Posted August 29, 2013 Try : prontera,150,150,0 script Sample 100,{ select ( ( countitem( 607 ) ) ? getitemname( 607 )+ " is there" : "" ); end; } Quote Link to comment Share on other sites More sharing options...
1 hakuren Posted September 7, 2013 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Author Share Posted September 7, 2013 Try : prontera,150,150,0 script Sample 100,{ select ( ( countitem( 607 ) ) ? getitemname( 607 )+ " is there" : "" ); end; } works! thank you sir Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 25, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 3 hours ago Share Posted August 25, 2013 like this .@count = countitem( 607 ); if( .@count ){ if( select( getitemname( 607 )+" X "+.@count,"close" ) == 1 ){ mes "Done ??"; } }else{ mes "You dont have any."; } close; Quote Link to comment Share on other sites More sharing options...
hakuren Posted August 25, 2013 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Author Share Posted August 25, 2013 (edited) setarray .@Position$[1],"Top","Mid","Low"; setarray .@Position[1], 1, 9, 10; set .@Menu$,""; for( set .@i, 1; .@i < 5; set .@i, .@i + 1 ) { if( getequipisequiped(.@Position[.@i]) ) set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i]) + "]"; set .@Menu$, .@Menu$ + ":"; } set .@Part, .@Position[ select(.@Menu$) ]; if( !getequipisequiped(.@Part) ) { mes "[Clown]"; mes "Your not wearing anything there..."; close; } mes "You want to Costume your " + getitemname(getequipid(.@Part)) + "?"; next; if( select("Yes, proceed:No, I am sorry.") == 2 ) { mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } like this it in the menu it will show the item on the equipment what i need it will show the ygg if it is on the inventory if not blank Edited August 25, 2013 by Capuche in BBCode Quote Link to comment Share on other sites More sharing options...
Patskie Posted August 28, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: November 10, 2024 Share Posted August 28, 2013 how to make an npc that with the item is on the inventory the name and amount of that item will show on the menu ex. yggseed yggberry if in the inventory with you talk to npc the menu will show those item if not in the inventory or didnt have it will not show Like this? prontera,150,150,0 script Sample 100,{ if ( select ( ( countitem( 607 ) ) ? countitem(607)+ "x " +getitemname(607)+ ":Close" : "Close" ) - 1 ) { mes "Test"; close; } } Quote Link to comment Share on other sites More sharing options...
hakuren Posted August 29, 2013 Group: Members Topic Count: 120 Topics Per Day: 0.02 Content Count: 295 Reputation: 6 Joined: 12/02/11 Last Seen: November 6, 2023 Author Share Posted August 29, 2013 how to make an npc that with the item is on the inventory the name and amount of that item will show on the menu ex. yggseed yggberry if in the inventory with you talk to npc the menu will show those item if not in the inventory or didnt have it will not show Like this? prontera,150,150,0 script Sample 100,{ if ( select ( ( countitem( 607 ) ) ? countitem(607)+ "x " +getitemname(607)+ ":Close" : "Close" ) - 1 ) { mes "Test"; close; } } no what i mean like on .@menu$ or the menu or switch(select("name menu:name menu") it tell if the ygg is there if not it not show on the menu Quote Link to comment Share on other sites More sharing options...
Question
hakuren
how to make an npc that with the item is on the inventory the name and amount of that item will show on the menu
ex.
yggseed
yggberry
if in the inventory with you talk to npc the menu will show those item
if not in the inventory or didnt have it will not show
Edited by hakurenLink to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.