0% found this document useful (0 votes)
29 views2 pages

Auto-Consume 020428

The document contains a script that manages player actions based on specific game events, particularly focusing on consuming items like Clover and Arroz. It includes functions to place items in the game world and respond to dialog requests, as well as a command to warp to a specific location. The script operates in a continuous loop to check conditions and execute actions accordingly.

Uploaded by

ajimlahtol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views2 pages

Auto-Consume 020428

The document contains a script that manages player actions based on specific game events, particularly focusing on consuming items like Clover and Arroz. It includes functions to place items in the game world and respond to dialog requests, as well as a command to warp to a specific location. The script operates in a continuous loop to check conditions and execute actions accordingly.

Uploaded by

ajimlahtol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

consumeClover = false -- Don't Touch --

consumeArroz = false -- Don't Touch --

AddHook("onvariant", "onHook", function(var)


if var[0] == "OnDialogRequest" and var[1]:find("add_player_info") then
if var[1]:find("|528|") then
consumeClover = true
else
consumeClover = false
end

if var[1]:find("|4604|") then
consumeArroz = true
else
consumeArroz = false
end
return true
end
end)

local function place(id, x, y)


pkt = {}
pkt.type = 3
pkt.value = id
pkt.px = math.floor(GetLocal().pos.x / 32 +x)
pkt.py = math.floor(GetLocal().pos.y / 32 +y)
pkt.x = GetLocal().pos.x
pkt.y = GetLocal().pos.y
SendPacketRaw(false, pkt)
end

local function wrenchMe()


SendPacket(2, "action|wrench\n|netid|".. GetLocal().netid)
Sleep(100)
end

while true do
wrenchMe()
if not consumeArroz then
Sleep(100)
for i = 1, 1 do
place(4604, 0, 0)
break
end
end

wrenchMe()
if not consumeClover then
Sleep(100)
for i = 1, 1 do
place(528, 0, 0)
break
end
end
end

local function split(inputstr, sep)


t = {}
for str in string.gmatch(inputstr, "([^".. sep .."]+)") do
table.insert(t, str)
end
return t
end

AddHook("onsendpacket", "lovelymoan", function(type, packet)


args = split(packet:gsub("action|input\n|text|", ""), " ")
command = string.lower(args[1])
if command == "/warp BFGMMRS" then
RequestJoinWorld(GetWorld().name)
return true
end
return false
end)

--// Usage; /warp BFGMMRS

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy