Ok lol my next mission in learning what does what with .lua is getting this to work
I've advanced my survival menu script for the community survival scriptset to now have tabs
now i have to get them working
So could any of you really cleaver scripters point me into how to,
get the mouse on screen
and get it to change the menu to menu 2,3,4,5,6 etc on a mouse click (i am reading up on this but prompters are always best plus it gives you guys sommat to do while we wait on an update) lol
I'm making the other menus up also
then hopefully i will be able to use that knowledge to click on crafted items to use them and maybe start adding some sprites
Cheers guys heres the script up till now and how it looks so far
P.s added ActivateMouse() and DeactivateMouse() to the script but the mouse doesnt show in the menu
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
displaymode=0
delay=0
g_berriescollected=0
g_grasscollected=0
g_woodcollected=0
g_flintcollected=0
g_featherscollected=0
g_fiberscollected=0
g_tuberscollected=0
g_rootscollected=0
g_watercollected=0
g_crafted_items=0
g_berry_pie=0
g_berry_soup=0
g_mushroom_pie=0
g_mushroom_soup=0
g_fdagger=0
g_faxe=0
g_fhammer=0
g_ibow=0
g_arrow=0
g_meatcollected=0
g_hidecollected=0
g_meat_pie=0
g_meat_soup=0
g_camp_fire=0
g_shelter=0
g_workbench=0
g_cooker=0
-- higher grade mats
g_ironcollected=0
g_coppercollected=0
g_tungstencollected=0
g_titanitecollected=0
function survival_inventory_init(e)
--Hide(e)
end
function survival_inventory_main(e)
if GetTimer(e)>250 then
delay=0
end
if GetInKey()=="i" then
--if g_KeyPress==1 then
StartTimer(e)
if displaymode==0 and delay==0 then
displaymode=1
delay=1
end
if displaymode==1 and delay==0 then
displaymode=0
delay=1
end
end
if displaymode==1 then
Panel(1,1,10,7)--tab1
Panel(11,1,20,7)--tab2
Panel(21,1,30,7)--tab3
Panel(89,1,99,7)--tab4
Panel(78,1,88,7)--tab5
Panel(67,1,77,7)--tab6
Panel(0,0,100,88)--background
Panel(37,0,61,10)--Top
Panel(1,13,17,68)-- left
Panel(81,13,99,68)-- right
Panel(18,13,38,68)-- Center left
Panel(39,13,59,68)-- Center center
Panel(60,13,80,68)-- Center right
TextColor(3,4,1,"Menu 1",10,255,10)
TextColor(13,4,1,"Menu 2",10,255,10)
TextColor(23,4,1,"Menu 3",10,255,10)
TextColor(70,4,1,"Menu 4",10,255,10)
TextColor(81,4,1,"Menu 5",10,255,10)
TextColor(92,4,1,"Menu 6",10,255,10)
TextColor(38,3,1,"Suvival Collecting & Crafting Menu",10,255,10)
Text(40,7,1,"Press (i) to toggle on and off ")
--collected Items
TextColor(2,17,1,"Items Collected level 1",10,255,10)
--Text(2,15,1,"Fletching items: ")
Text(5,25,1,"Berries "..math.floor(g_berriescollected))
Text(5,28,1,"Grasses "..math.floor(g_grasscollected))
Text(5,31,1,"Water "..math.floor(g_watercollected))
Text(5,34,1,"Fibers "..math.floor(g_fiberscollected))
Text(5,37,1,"Tubers "..math.floor(g_tuberscollected))
Text(5,40,1,"Wood "..math.floor(g_woodcollected))
Text(5,43,1,"Flint "..math.floor(g_flintcollected))
Text(5,46,1,"Meat "..math.floor(g_meatcollected))
Text(5,49,1,"Hides "..math.floor(g_hidecollected))
--Crafting lvl 1
TextColor(23,17,1,"Crafting Level 1",10,255,10)
--Text(28,17,1,"Merchant: ")
Text(23,25,1,"Berry Pie "..math.floor(g_berry_pie))
Text(23,28,1,"Berry Soup "..math.floor(g_berry_soup))
Text(23,31,1,"Mushroom Pie "..math.floor(g_mushroom_pie))
Text(23,34,1,"Mushroom Soup "..math.floor(g_mushroom_soup))
Text(23,37,1,"Meat Pie "..math.floor(g_meat_pie))
Text(23,40,1,"Meat Soup "..math.floor(g_meat_soup))
Text(23,43,1,"Flint Dagger "..g_fdagger)
Text(23,46,1,"Flint Axe "..math.floor(g_faxe))
Text(23,49,1,"Flint Hammer "..math.floor(g_fhammer))
Text(23,52,1,"Camp Fire "..math.floor(g_camp_fire))
Text(23,55,1,"Shelter "..math.floor(g_shelter))
Text(23,58,1,"Workbench "..math.floor(g_workbench))
Text(23,61,1,"Cooking Stove "..math.floor(g_cooker))
--crafting lvl 2
TextColor(43,17,1,"Items Collected level 2",10,255,10)
--Text(60,17,1,"Rogue: ")
Text(43,25,1,"Iron "..math.floor(g_ironcollected))
Text(43,28,1,"Copper "..math.floor(g_coppercollected))
Text(43,31,1,"Tungsten "..math.floor(g_tungstencollected))
Text(43,34,1,"Titanite "..math.floor(g_titanitecollected))
--Text(43,45,1,"Shelter "..math.floor(g_shelter))
--Text(43,50,1,"Workbench "..math.floor(g_workbench))
--crafting lvl 3
TextColor(65,17,1,"Crafting Level 3:",10,255,10)
--Text(86,15,1,"Weapon Smithing: ")
Text(86,18,1,"Iron Bow "..math.floor(g_ibow))
Text(86,21,1,"Arrows "..math.floor(g_arrow))
--Text(86,24,1,"Fibers "..math.floor(g_fiberscollected))
end
end
NM guys even this old brain has its moments lol here's the start if the new sprite driven menu will post the rest on the survival script post and the buttons workie yay
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel
I only smile because i have absolutely no idea whats going on