/7Script by Normynator - script Gamemaster -1,{ OnWhisperGlobal: if(getgmlevel() >= 10){ if (@whispervar0$ == "Start"){ setarray .@in$[0], "Yggdrasil Berry","Yggdrasil Seed","Apple"; mes "List of Available Items: "; for(.@i = 0; .@i < getarraysize(.@in$); .@i++){ mes .@in$[.@i]; } next; mes "You can choose 3 items."; mes "How many do you need?"; input .@count; if(.@count > 3){ next; mes "Max 3!!"; close; }else next; mes "Which items do you want?"; mes "How many do you want?"; mes "List of Available Items: "; for(.@i = 0; .@i < getarraysize(.@in$); .@i++){ mes .@in$[.@i]; } for(.@i = 0; .@i < .@count; .@i++){ set .@cheat, 0; input .@item$[.@i]; input .@amount[.@i]; for(.@a = 0; .@a < getarraysize(.@in$); .@a++){ //dispbottom "a"; //dispbottom .@item$[.@i]; if(.@item$[.@i] == .@in$[.@a]){ set .@cheat, 1; } } if(.@cheat == 0){ next; mes "Error!"; close; } //dispbottom .@cheat; } next; mes "Whats the name of the player?"; input .@name$; next; mes "Your Input:"; for(.@i = 0; .@i < .@count; .@i++){ mes .@amount[.@i] + " " + .@item$[.@i]; } mes "Name: " + .@name$; mes ""; mes "Is your input correct?"; if(select("Yes:No") -1) end; next; set .@account, getcharid(3, .@name$); if(isloggedin(.@account) == 0){ mes "Player is offline"; }else mes "Player is online and got the Item(s)"; for(.@i = 0; .@i < .@count; .@i++){ getitem .@item$[.@i], .@amount[.@i], .@account; } close; } } }