id = 242 count = 1 function OnDialogRequest() local var = {} var[0] = "OnDialogRequest" var[1] = [[set_default_color|`o add_label_with_icon|big|`cSetting `1{It's Free Script}``|left|32| add_text_input|id|ID|]] .. id .. [[|5| add_text_input|count|Count|]] .. count .. [[|3| add_spacer|small| add_label_with_icon|small|`9Special Thanks To|left|9472| add_textbox|`0pode9935 { Owner Of This Script } || add_textbox|`0AfneStore { Script Sharer And Remake } || add_spacer|small| add_textbox|`#Join our Discord Server || add_url_button||`3Discord Server|NOFLAGS|https://discord.com/invite/QHBSdtGBBJ|Would You like to visit our Discord Server?|0|0| add_spacer|small| end_dialog|set_scam_trade|Cancel|OK|]] sendVariant(var, -1, 350) end function trade(v) if v[0] == "OnDialogRequest" and v[1]:find("end_dialog|trade_item") then sendPacket(2, "action|dialog_return\ndialog_name|trade_item\nitemID|" .. id .. "|\ncount|" .. count) sendPacket(2, "action|trade_accept\nstatus|1") RemoveHook("trade") return true end return false end function hook(type, pkt) if pkt:find("action|input\n|text|") then if pkt:find("/set") then OnDialogRequest() return true elseif pkt:find("/scam") then AddHook("OnVarlist", "trade", trade) sendPacket(2, "action|mod_trade\nitemID|" .. id) return true end elseif pkt:find("dialog_name|set_scam_trade") then id = tonumber(pkt:match("\nid|(%w+)\n")) count = tonumber(pkt:match("\ncount|(%w+)\n")) return true end end AddHook("OnTextPacket", "jdjjx", hook)