Professional Documents
Culture Documents
AutoCrime 2.lua
AutoCrime 2.lua
if var.v1:find("OnDialogRequest") then
if var.v2:find("Devil Ham``%'s `2Crush`` card `4melted") then
liq = "yes"
end
if var.v2:find("Ms%. Terry") and var.v2:find("Ban Hammer") then
ban = "yes"
end
if var.v2:find("|Battle%!|") then
x = var.v2:match("tilex|(%d+)")
y = var.v2:match("tiley|(%d+)")
LogToConsole("`0 Penjahat :" .. var.v2:match("add_textbox|(.*)`` is"))
liq = "no"
step = "1"
elseif var.v2:find("Ms%. Terry") then
c1 = 2294
c2 = 2316
c3 = 2322
c4 = 2328
c5 = 2338
use1 = c1
use2 = c2
use3 = c3
use4 = c4
use5 = c5
ban = "no"
end
SendPacket(
2,
"action|dialog_return\ndialog_name|crime_edit\ntilex|" ..
x ..
"|\ntiley|" ..
y ..
"|\nstate|0||\nbuttonClicked|button_ok\n\nc" ..
c1 .. "|1\nc" .. c2 .. "|1\nc" .. c3 .. "|1\nc"
.. c4 .. "|1\nc" .. c5 .. "|1\n"
)
elseif var.v2:find("Fighting Crime") and var.v2:find("Devil Ham") then
if liq == "no" then
if var.v2:find("c" .. use1) then
use = use1
else
use = "passturn"
end
elseif var.v2:find("c" .. use2) and step == "0" then
step = "1"
use = use2
elseif var.v2:find("c" .. use3) then
use = use3
elseif var.v2:find("c" .. use4) then
use = use4
elseif var.v2:find("c" .. use5) then
use = use5
else
use = "passturn"
end