hakuren Posted August 25, 2013 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
Patskie Posted August 29, 2013 Posted August 29, 2013 Try : prontera,150,150,0 script Sample 100,{ select ( ( countitem( 607 ) ) ? getitemname( 607 )+ " is there" : "" ); end; } Quote
1 hakuren Posted September 7, 2013 Author 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
Emistry Posted August 25, 2013 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
hakuren Posted August 25, 2013 Author 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
Patskie Posted August 28, 2013 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
hakuren Posted August 29, 2013 Author 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
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 hakuren6 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.