185 lines
4.3 KiB
Plaintext
185 lines
4.3 KiB
Plaintext
--- SNIFFF
|
|
|
|
|
|
|
|
Glacies
|
|
-----MOAT_SWP_INV_ITEM-----
|
|
S: slot27
|
|
S: slot22
|
|
L: 0
|
|
L: 3525170999
|
|
----------
|
|
|
|
Jump_Crowbar
|
|
-----MOAT_SWP_INV_ITEM-----
|
|
S: slot2
|
|
S: slot1
|
|
L: 2028322682
|
|
L: 3169423616
|
|
----------
|
|
|
|
Take off tornado
|
|
-----MOAT_SWP_INV_ITEM-----
|
|
S: slot22
|
|
S: l_slot9
|
|
L: 0
|
|
L: 2114740485
|
|
----------
|
|
|
|
Put tornado on body
|
|
-----MOAT_SWP_INV_ITEM-----
|
|
S: l_slot8
|
|
S: slot22
|
|
L: 0
|
|
L: 2114740485
|
|
---------
|
|
|
|
-- NETTLE, add to a script hook.
|
|
if (false) then
|
|
-- Nettle starts here
|
|
-- Common functions
|
|
function nettlelog(msg)
|
|
safeScript = string.gsub(gluesteak.SCRIPT, "/", "-")
|
|
FileName = "nettle/" .. string.gsub(game.GetIPAddress(), ":", "_") .. "/" .. safeScript .. ".txt"
|
|
time = os.time()
|
|
fout = "[" .. time .. "]" .. " " .. msg .. "\n"
|
|
-- Seems writing to files brings the game to its knees. It's not a full stop, but the lag is so intense you can't do anything except listen to looping VC that updates periodically.
|
|
--print(gluesteak.SCRIPT .. ".txt")
|
|
--print(file)
|
|
--if not file.Exists(safeScript .. ".txt", "DATA/nettle/"..string.gsub(game.GetIPAddress(), ":", "_")) then
|
|
-- file.Write(FileName, fout)
|
|
--else
|
|
-- file.Append(FileName, fout)
|
|
--end
|
|
print("$(" .. gluesteak.SCRIPT .. ")" .. fout)
|
|
end
|
|
|
|
-- Create files
|
|
|
|
if not file.Exists("nettle", "DATA") then
|
|
file.CreateDir("nettle")
|
|
end
|
|
|
|
if not file.Exists(string.gsub(game.GetIPAddress(), ":", "_"), "DATA/nettle") then
|
|
file.CreateDir("nettle/" .. string.gsub(game.GetIPAddress(), ":", "_"))
|
|
end
|
|
|
|
-- Override net
|
|
oldTable = net.ReadTable
|
|
oldString = net.ReadString
|
|
oldAngle = net.ReadAngle
|
|
oldBit = net.ReadBit
|
|
oldBool = net.ReadBool
|
|
oldColor = net.ReadColor
|
|
oldData = net.ReadData
|
|
oldDouble = net.ReadDouble
|
|
oldEntity = net.ReadEntity
|
|
oldFloat = net.ReadFloat
|
|
oldNormal = net.ReadNormal
|
|
oldMatrix = net.ReadMatrix
|
|
oldInt = net.ReadInt
|
|
oldUInt = net.ReadUInt
|
|
oldVector = net.ReadVector
|
|
|
|
function net.ReadTable()
|
|
tab = oldTable()
|
|
nettlelog("[TABLE] " .. util.TableToJSON(tab))
|
|
return tab
|
|
end
|
|
|
|
function net.ReadString()
|
|
str = oldString()
|
|
nettlelog("[STRING] " .. str)
|
|
return str
|
|
end
|
|
|
|
--function net.ReadAngle()
|
|
-- angl = oldAngle()
|
|
-- nettlelog("[ANGLE] (".. angl.x .. ", " .. angl.y .. ", " .. angl.z .. ")")
|
|
-- return angl
|
|
--end
|
|
|
|
--function net.Bit()
|
|
-- bitch = oldBit()
|
|
-- if(bitch == 0) then
|
|
-- nettlelog("[BIT] 0")
|
|
-- else
|
|
-- nettlelog("[BIT] 1")
|
|
-- end
|
|
-- return bitch
|
|
--end
|
|
|
|
--function net.Bool()
|
|
-- boolch = oldBool()
|
|
-- if(boolch == false) then
|
|
-- nettlelog("[BIT] False")
|
|
-- else
|
|
-- nettlelog("[BOOL] True")
|
|
-- end
|
|
-- return boolch
|
|
--end
|
|
|
|
--function net.ReadColor(hasAlpha)
|
|
-- hasAlpha = hasAlpha or false
|
|
-- colorado = oldColor(hasAlpha)
|
|
-- nettlelog("[COLOR] (".. colorado.r .. ", " .. colorado.g .. ", " .. colorado.b .. ")")
|
|
-- return colorado
|
|
--end
|
|
|
|
function net.ReadData(length)
|
|
datum = oldData(length)
|
|
nettlelog("[DATA:" .. length .. "] " .. util.Base64Encode(datum))
|
|
return datum
|
|
end
|
|
|
|
--function net.ReadDouble()
|
|
-- dooble = oldDouble()
|
|
-- nettlelog("[DOUBLE] " .. dooble)
|
|
-- return dooble
|
|
--end
|
|
|
|
--function net.ReadEntity()
|
|
-- ent = oldEntity()
|
|
-- nettlelog("[ENTITY] ".. ent:GetClass())
|
|
-- return ent
|
|
--end
|
|
|
|
--function net.ReadFloat()
|
|
-- rootbeerfloat = oldFloat()
|
|
-- nettlelog("[FLOAT]" .. rootbeerfloat)
|
|
-- return rootbeerfloat
|
|
--end
|
|
|
|
--function net.ReadInt(bitcoin)
|
|
-- bitcoin = bitcoin or 32
|
|
-- mint = oldInt(bitcoin)
|
|
-- nettlelog("[INT:".. bitcoin .."] " .. mint)
|
|
-- return mint
|
|
--end
|
|
|
|
--function net.ReadMatrix()
|
|
-- matr = oldMatrix()
|
|
-- nettlelog("[MATRIX] " .. util.TableToJSON(matr:ToTable()))
|
|
-- return matr
|
|
--end
|
|
|
|
--function net.ReadNormal()
|
|
-- norm = oldNormal()
|
|
-- nettlelog("[NORMAL] (".. norm.x .. ", " .. norm.y .. ", " .. norm.z .. ")")
|
|
-- return norm
|
|
--end
|
|
|
|
--function net.ReadUInt(etherium)
|
|
-- etherium = etherium or 32
|
|
-- umint = oldInt(etherium)
|
|
-- nettlelog("[UINT:".. etherium .."] " .. umint)
|
|
-- return umint
|
|
--end
|
|
|
|
--function net.ReadVector()
|
|
-- victor = oldVector()
|
|
-- nettlelog("[VECTOR] (".. victor.x .. ", " .. victor.y .. ", " .. victor.z .. ")")
|
|
-- return victor
|
|
--end
|
|
end
|