Bridges

Client Side


LuaWorkSS() Description: Activates only on Select Server. Used to launch visual functions, windows, images etc... Example: require "System\ScriptCore" BridgeFunctionAttach("LuaWorkSS", "NewWorkSS") NewWorkSS = function() -- Your visual function here end


LuaWorkSC() Description: Activates only on Select Character. Used to launch visual functions, windows, images etc... Example: require "System\ScriptCore" BridgeFunctionAttach("LuaWorkSC", "NewWorkSC") NewWorkSC = function() -- Your visual function here end


LuaWorkMH() Description: Used to launch visual functions, windows, images etc... Example: require "System\ScriptCore" BridgeFunctionAttach("LuaWorkMH", "NewWorkMH") NewWorkMH = function() -- Your visual function here end


LuaWork() Description: Used to launch visual functions, windows, images etc... Example: require "System\ScriptCore" BridgeFunctionAttach("LuaWork", "NewWork") NewWork = function() -- Your visual function here end


LuaLoadImages() Description: Hook function for loading images, use with LoadImage() Example: require "System\ScriptCore" BridgeFunctionAttach("LuaLoadImages", "NewLoad") NewLoad = function() LoadImage("Interface\NewRender\Exemple.tga", 200000) -- Use image ID from 200000 onwards end


LuaMouseEvent() Description: Used to initiate keyboard and mouse functions Example: require "System\ScriptCore" BridgeFunctionAttach("LuaMouseEvent", "NewEvent") NewEvent = function() if IsRelease(0x4E) then PlaySound(25) end end


LuaEntryProc() Description: Starts functions that will be loaded once when opening Main.exe Example: require "System\ScriptCore" BridgeFunctionAttach("LuaEntryProc", "NewProc") NewProc = function() ConsoleOn(1) -- Open Main.exe with Debug Window end


LuaPacketRecv(aIndex, String) Description: Starts a function that receives packets from the GameServer Example: require "System\ScriptCore" require "System\ScriptDefines" BridgeFunctionAttach("LuaPacketRecv", "NewRecv")

local JoiaCunt = {aIndex, "", "", "", "", "", "", "", "", "", "", ""}

JBRecv = function(aIndex, str) if (obterElemento(str, 0) == "JewelBank") then if (obterElemento(str, 1) == "Open") then JoiaCunt[1] = obterElemento(str, 2) JoiaCunt[2] = obterElemento(str, 3) JoiaCunt[3] = obterElemento(str, 4) JoiaCunt[4] = obterElemento(str, 5) JoiaCunt[5] = obterElemento(str, 6) JoiaCunt[6] = obterElemento(str, 7) JoiaCunt[7] = obterElemento(str, 8) JoiaCunt[8] = obterElemento(str, 9) JoiaCunt[9] = obterElemento(str, 10) JoiaCunt[10] = obterElemento(str, 11) end end end


Last updated