Please help Me with my init.lua File THXS
Posted: Tue Sep 24, 2013 1:10 pm
Hi again Guys...
Please I really need to work this (init.lua) file out desperately..
I want to add the following 2 Scripts to my init file.. I have tried hard but don't know how to do it, I have asked others but no replys (sorry not being rude here)...
1 - The function for:
-- Search Floor Script
-- Version: 3.0.0
-- Released: 12.8.2013
-- Author: AdrTru canibalized code
-- by JohnWordsworth QuickBar
onDrawGui = function(g) ----Not sure if this NEEDED----------
if ( search_script ~= nil and search_script.onDrawGui ~= nil ) then
search_script.onDrawGui(g);
end
end,
2 - The Function for:
-- Legend of Grimrock QuickBar
-- Version: 0.9.1
-- Author: JohnWordsworth
-- Quick Bar Hook
if ( qb_script ~= nil and qb_script.onDrawGui ~= nil ) then
qb_script.onDrawGui(g);
end
----------This My Current init.lua file..Need to Add the 2 Above Function to this init file ------------
--- USE THIS SCRIPT ALL GAMES ---
--- import standard assets---
import "assets/scripts/standard_assets.lua"
import "mod_assets/framework/framework.lua"
import "mod_assets/dx_sky_system/dx_sky_system.lua" --- By: Diarmund ---
import "mod_assets/gui/initgui.lua" --- This is the Shop Framework by:Allios ---
cloneObject {
name = "party",
baseObject = "party",
onDrawGui = function(g)
return gui.onDrawGui(g)
end,
onMove = function(self, dir)
skyScript.onMove(dir)
if (gui.globalVars["shopOn"]) then
return false
else
return true
end
end,
onPickUpItem = function(champion, item)
if ( item.name == "book_undead_v2" )then playSound("mine_horror07") end ----- Is this the problem, this is line 111 ----
if ( item.name == "the_king" )then playSound("mine_horror04")
end
end
}
This all works ATM but would like to know how to add the above Functions in, but I don't understand all the Ondrawgui functions and how to put them together..
Thxs again...
Please I really need to work this (init.lua) file out desperately..
I want to add the following 2 Scripts to my init file.. I have tried hard but don't know how to do it, I have asked others but no replys (sorry not being rude here)...
1 - The function for:
-- Search Floor Script
-- Version: 3.0.0
-- Released: 12.8.2013
-- Author: AdrTru canibalized code
-- by JohnWordsworth QuickBar
onDrawGui = function(g) ----Not sure if this NEEDED----------
if ( search_script ~= nil and search_script.onDrawGui ~= nil ) then
search_script.onDrawGui(g);
end
end,
2 - The Function for:
-- Legend of Grimrock QuickBar
-- Version: 0.9.1
-- Author: JohnWordsworth
-- Quick Bar Hook
if ( qb_script ~= nil and qb_script.onDrawGui ~= nil ) then
qb_script.onDrawGui(g);
end
----------This My Current init.lua file..Need to Add the 2 Above Function to this init file ------------
--- USE THIS SCRIPT ALL GAMES ---
--- import standard assets---
import "assets/scripts/standard_assets.lua"
import "mod_assets/framework/framework.lua"
import "mod_assets/dx_sky_system/dx_sky_system.lua" --- By: Diarmund ---
import "mod_assets/gui/initgui.lua" --- This is the Shop Framework by:Allios ---
cloneObject {
name = "party",
baseObject = "party",
onDrawGui = function(g)
return gui.onDrawGui(g)
end,
onMove = function(self, dir)
skyScript.onMove(dir)
if (gui.globalVars["shopOn"]) then
return false
else
return true
end
end,
onPickUpItem = function(champion, item)
if ( item.name == "book_undead_v2" )then playSound("mine_horror07") end ----- Is this the problem, this is line 111 ----
if ( item.name == "the_king" )then playSound("mine_horror04")
end
end
}
This all works ATM but would like to know how to add the above Functions in, but I don't understand all the Ondrawgui functions and how to put them together..
Thxs again...