0% found this document useful (0 votes)
7 views1 page

Lua Script for Item Purchase Automation

The document contains a script that automates the buying and adding of items in a game. It defines functions to send packets for buying items and adding them to a player's inventory based on their position. The script runs in an infinite loop, executing the buy and add functions with a specified delay between actions.

Uploaded by

akuuuuuun991
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)
7 views1 page

Lua Script for Item Purchase Automation

The document contains a script that automates the buying and adding of items in a game. It defines functions to send packets for buying items and adding them to a player's inventory based on their position. The script runs in an infinite loop, executing the buy and add functions with a specified delay between actions.

Uploaded by

akuuuuuun991
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

```

delay = 500

x = [Link](getLocal().pos.x/32)
y = [Link](getLocal().pos.y/32 +1)

function buy()
SendPacket(2,"action|dialog_return\ndialog_name|buyitems\nbuttonClicked|struk_9928\
ncount|250\n")
SendPacket(2, "action|dialog_return\ndialog_name|buy_item_9928_count_250\n")
end

function add()
sendPacket(2, "action|dialog_return\ndialog_name|itemaddedtosucker\nx|"..x.."|\
ny|"..y.."|\nitemtoadd|200\n")
end

while true do
buy()
sleep(delay)
add()
end
```

You might also like