quest elixire begin
state start begin
when 30122.chat."Elixire" begin
local s = select ( "Elixir PV" , "Elixir PM" , "Închide" )
if s == 1 then
if pc . count_item ( 100400 ) <= 9 then
say ( "Ai nevoie de 10:" )
say_item_vnum ( 100400 )
elseif pc . count_item ( 100400 ) >= 10 then
say ( "Ai primit:" )
say_item_vnum ( 39038 )
pc . remove_item ( 100400 , 10 )
pc . give_item2 ( 39038 , 1 )
end
elseif s == 2 then
if pc . count_item ( 100300 ) <= 9 then
say ( "Ai nevoie de 10:" )
say_item_vnum ( 100300 )
elseif pc . count_item ( 100300 ) >= 10 then
say ( "Ai primit:" )
say_item_vnum ( 39041 )
pc . remove_item ( 100400 , 10 )
pc . give_item2 ( 39041 , 1 )
end
end
end
end