List Function - Rann-Studio/PowerKuy_Lib GitHub Wiki
Below is a list of functions included in PowerKuy_Lib, along with a brief description of each function and an example of how to use it:
add_magplant
This function is used to press the add item button on magplant
[email protected]: add_magplant
[email protected]: {position: string, offset: int}
[email protected]: no return
[email protected]:
--position: top, bottom, left, right [required]
--offset: int [optional] (default 0)
[email protected]:
add_magplant{
position = "top",
offset = 1
}
retrieve_magplant
This function is used to press the retrieve button on magplant
[email protected]: retrieve_magplant
[email protected]: {position: string, offset: int}
[email protected]: no return
[email protected]:
--position: top, bottom, left, right [required]
--offset: int [optional]
[email protected]:
retrieve_magplant{
position = "top",
offset = 1
}
break_item
This function is used to break item (block or background)
[email protected]: break_item
[email protected]: {x: int, y: int}
[email protected]: no return
break_item{
x = 23,
y = 24
}
place_item
This function is used to place item (block or background)
[email protected]: place_item
[email protected]: {x: int, y: int, item_id: int}
[email protected]: no return
place_item{
x = 23,
y = 24,
item_id = 123
}
clear_island
This function is used to clear world island automatically
[email protected]: clear_island
[email protected]: no param needed
[email protected]: no return
clear_island()
find_item
This function is used to find for items and get them
[email protected]: find_item
[email protected]: {item_id: int}
[email protected]: no return
[email protected]:
--item_id: id of the item you want to find [required]
[email protected]:
find_item{
item_id = 123
}
recycle_item
This function is used to recycle items in backpack
:warning: Warning: Please don't abuse this function
[email protected]: recycle_item
[email protected]: {item_id: int, amount: int}
[email protected]: no return
[email protected]:
--item_id: id of the item you want to recycle [required]
--amount: amount of the item you want to recycle [required]
[email protected]:
recycle_item{
item_id = 123,
amount = 200
}
recycle_all_item
This function is used to recycle all items in backpack
:warning: Warning: Please don't forget to drop all important items and don't abuse this function
[email protected]: recycle_all_item
[email protected]: no param needed
[email protected]: no return
[email protected]:
recycle_all_item()
drop_item
This function is used to drop items in backpack
[email protected]: drop_item
[email protected]: {item_id: int, amount: int}
[email protected]: no return
[email protected]:
--item_id: id of the item you want to drop [required]
--amount: amount of the item you want to drop[required]
[email protected]:
drop_item{
item_id = 123,
amount = 200
}
drop_all_item
This function is used to drop all items in backpack
[email protected]: drop_all_item
[email protected]: no param needed
[email protected]: no return
[email protected]:
drop_all_item()
grind_food
This function is used to grind item using grinder
[email protected]: grind_food
[email protected]: {position: string, offset: int, item_id: int, amount: int}
[email protected]: no return
[email protected]:
--position: top, bottom, left, right [required]
--offset: int [optional] (default 0)
[email protected]:
grind_food{
position = "left",
offset = 1,
item_id = 880,
amount = 5
}
auto_suck_bgems
This function is used to auto suck black gems based on the set time
[email protected]: auto_suck_bgems
[email protected]: {second: int, minute: int, hour: int}
[email protected]: no return
[email protected]:
auto_suck_bgems{
second = 30
}
show_notification
This function is used to display adventure notification and you can edit the icon and sound
[email protected]: show_notification
[email protected]: {icon: path, message: str, sound: path}
[email protected]: no return
[email protected]:
--icon: Icon to show in notification [optional] (default: interface/large/adventure.rttex)
--message: Message to show in notification [required]
--sound: Sound to play when a notification is shown [optional] (default: audio/gong.wav)
[email protected]:
show_notification{
icon = "interface/large/adventure.rttex",
message = "Hello Growtopians"
sound = "audio/achievement.wav"
}
:information_source: Info: For windows device, icon and sound path can be found at: %LOCALAPPDATA%/Growtopia (I don't know where files are stored in android 😂 )