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

Google Script

This document contains a script for a game modification tool that allows users to manipulate item prices in a shop. Users can choose to set item prices to -5000 to gain coins or to 0 for free purchases. The script runs in a loop, displaying a menu for the user to select their desired action.
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

Google Script

This document contains a script for a game modification tool that allows users to manipulate item prices in a shop. Users can choose to set item prices to -5000 to gain coins or to 0 for free purchases. The script runs in a loop, displaying a menu for the user to select their desired action.
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

gg.

clearResults()
[Link](gg.REGION_ANONYMOUS)

function Main()
menu = [Link]({
"1. Set Item Price to -5000 (Gain Coins)",
"2. Set Item Price to 0 (Free Buy)",
"3. Exit"
}, nil, "CPM2 Shop Tool")

if menu == 1 then Buy_Gain() end


if menu == 2 then Buy_Free() end
if menu == 3 then [Link]() end
end

function Buy_Gain()
-- Step 1: Search for the price of a cheap coin item (e.g., 100)
[Link]("100", gg.TYPE_DWORD)
[Link](100)
-- Step 2: Change it to negative. Buying it now adds 5000 coins.
[Link]("-5000", gg.TYPE_DWORD)
[Link]("Price is now -5000. Go buy the item!")
end

function Buy_Free()
[Link]("100", gg.TYPE_DWORD)
[Link](100)
[Link]("0", gg.TYPE_DWORD)
[Link]("Price is now 0. Enjoy!")
end

while true do
if [Link](true) then
[Link](false)
Main()
end
end

You might also like