I am trying to get a script to create a menu from an httprequest output (or the same output in a notecard, the easiest and fastest way preferred) But I'm not quite sure how to do.
This is the output I get from the httprequest I make:
25_128_NADJ=450,25,128,30#
50_128_ADJ1024=1450,50,128,1024#
50_128_ADJ512=1200,50,128,512#
50_128_ADJ256=1000,50,128,256#
50_128_NADJ=650,50,128,30#
100_128_ADJ1024=1800,100,128,1024#
100_128_ADJ512=1550,100,128,512#
100_128_ADJ256=1350,100,128,256#
100_128_NADJ=1000,100,128,30#
96_50_ADJ512=1000,50,96,30#
100_96_NADJ=750,100,96,30#
100_96_ADJ256=1100,100,96,256#
100_96_ADJ512=1300,100,96,512#
100_96_ADJ1024=1550,100,96,1024#
50_96_ADJ256=800,50,96,256#
50_96_ADJ512=1000,50,96,512#
50_96_ADJ1024=1250,50,96,1024#
100_64_NADJ=550,100,64,30#
100_64_ADJ256=900,100,64,256#
100_64_ADJ512=1100,100,64,512#
100_64_ADJ1024=1350,100,64,1024#
50_64_NADJ=300,50,64,30#
50_64_ADJ256=650,50,64,256#
50_64_ADJ512=850,50,64,512#
50_64_ADJ1024=1100,50,64,1024#
50_96_NADJ=450,50,96,30#
50_128_25percent=488,50,128,30#
The output is however not cut up like this. It's outputed on one single row.
This is the script I have managed to make so far.
-----
key check_plancost;
string PLANS;
integer PRICE;
integer SLOTS;
integer BITRATE;
integer UPLOAD;
list PLANLIST;
default
{
touch_start(integer total_number)
{
check_plancost = llHTTPRequest("URL_HERE", [ HTTP_METHOD, "GET" ], ""

}
http_response(key request_id, integer status, list metadata, string body)
{
if (request_id == check_plancost)
{
list temp = llParseString2List(body, ["#"], []);
integer row = 0;
integer length = llGetListLength(temp);
for (; row < length; ++row)
{
// list PLANLIST = [ llList2String(temp, row) ];
llOwnerSay(llList2String(temp, row));
llOwnerSay(".."

}
string PLANS = llList2String(temp,0);
PRICE = llList2Integer(temp,1);
SLOTS = llList2Integer(temp,2);
BITRATE = llList2Integer(temp,3);
UPLOAD = llList2Integer(temp,4);
llOwnerSay("There are " +(string)length + " entries in the list!"

//llMessageLinked(LINK_THIS, 0, username, NULL_KEY);
}
}
}
-------------
What I want is to make the plans (temp,0) as a dropdown menu, with each item (everything before "="

And when one button (lets say "25_128_NADJ"

with the text "You have chosen the a plan with 25 listeners at 128 kbit with 30 mb upload which will cost you 450 Lindens. Is this correct?" and a "yes" and "no" button.
If "Yes is clicked" PLAN, PRICE, SLOTS, BITRATE and UPLOAD should all be set accordingly. If no, the first menue comes back again.
Now, I can do menues, but what I can't figure out how to do, is how to cut up the output as I want, and create menu items from it.
Could someone please help me with the cuttings and creating the "menu buttons list"? I will be bald soon, because I just can't figure out how to do it.
