Static
Private
_currentStatic
Private
_currentStatic
Private
_lastStatic
Private
desiredStatic
Private
isStatic
Private
lastStatic
Private
lastStatic
AquireStatic
BotStatic
BuyRequires NPCShopWindow to be open. The user is responsible for checking that they have enough penya and inventory space to buy items.
The targetID of the npc.
The gamePropID of the item you want to buy.
The amount of items to buy. Ensure the quantity is not greater than the max item stack limit. ie: arrows = 1 to 9,999. If you try buying 10,000 arrows, the purchase won't go through.
boolean
Static
CircleStatic
CircleStatic
CreateStatic
DeleteStatic
FocusStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetStatic
GetReturns script configuration object.
Static
GetStatic
HasStatic
IsStatic
IsStatic
IsStatic
LeaveStatic
LevelStatic
OffStatic
OnSubscribes to an event
Static
OnceStatic
PauseStatic
PointStatic
ReleaseStatic
ReloadStatic
SellStatic
SendStatic
SendStatic
SendRequires Mailbox window to be open.
targetID of the mailbox npc.
name of the player you want to send mail to
The amount of penya to send. Set to 0 to not send any Penya.
the slot of the item you want to send. Set to undefined if you don't want to send any items.
the amount of items to send. Set to undefined if you don't want to send any items.
the subject of the mail message.
the body of the mail message.
boolean
Static
SendStatic
SendStatic
SetStatic
SetStatic
SetStatic
SetStatic
SetStatic
TimeStatic
TimeStatic
ToggleStatic
UseThis function can be used to trigger the use of a regular item. (Blinkwings, Premium Items and co.)
The position of the item in inventory.
Additional parameter passed with the usage of the item (for map selection blinkwings this is the selected index).
Static
UseStatic
readStatic
sleepStatic
waitStatic
writeStatic
ClickStatic
CollectStatic
FindStatic
GetStatic
IsStatic
SetStatic
UseStatic
DrawDraw a circle centered at a position (Point is world position) Note at the moment the circle is 2d not 3d
Static
DrawDraw a line from point A to point B (Points are world positions)
Static
LogStatic
GetStatic
GetStatic
GetReturns a mover by an arbitrary property and its value.
Static
GetStatic
GetStatic
AcceptAccepts a quest. Must have the NPC's Dialog window open for it to work.
The targetID of the NPC.
The quest ID. Turn on QuestLogger to see questIDs printed to the console when you accept a new quest.
Static
CompleteCompletes a quest. Must have the NPC's Dialog window open for it to work.
The targetID of the NPC.
The quest ID. Turn on QuestLogger to see questIDs printed to the console when you accept a new quest.
Static
ForfeitStatic
CreateStatic
OnThis function can be used to register a hook listener that will be called when the original hook code is executed. You can either use the callback to execute code before the hooked code runs or return a value to prevent execution of the original hook code.
Name of the hook to listen for.
Hook callback function, return a value to prevent execution of the original hook code overwriting its return value.
Triggers when MeleeBot decides if it should remain in IDLE state or not. Use this hook to prevent the bot from entering combat again allowing you to do custom actions.
Return nothing to fallback to normal behaviour. Return true to allow the bot to leave IDLE state, false to remain in IDLE state.
Triggers when MeleeBot decides if it wants to fight against a potential target.
Return nothing to fallback to normal behaviour. Return true to treat the target as desireable, false to treat it as not desireable.
Triggers when MeleeBot decides if it wants collect a specific world drop.
Return nothing to fallback to normal behaviour. Return true to treat the world drop as desireable, false to treat it as not desireable.
Triggers when MeleeBot executes the state IDLE
Return true to completely skip the existing state behaviour, return nothing or undefined to continue with the existing state behaviour.
Triggers when MeleeBot executes the state DEATH
Return true to completely skip the existing state behaviour, return nothing or undefined to continue with the existing state behaviour.
Triggers when MeleeBot executes the state KITE
Return true to completely skip the existing state behaviour, return nothing or undefined to continue with the existing state behaviour.
Triggers when MeleeBot executes the state FLEE
Return true to completely skip the existing state behaviour, return nothing or undefined to continue with the existing state behaviour.
Triggers when MeleeBot executes the state AUTO_PANGBUFF
Return true to completely skip the existing state behaviour, return nothing or undefined to continue with the existing state behaviour.
Triggers when MeleeBot executes the state QUICK_SELL
Return true to completely skip the existing state behaviour, return nothing or undefined to continue with the existing state behaviour.
Triggers when MeleeBot executes the state NAVIGATE_TO_LEVELAREA
Return true to completely skip the existing state behaviour, return nothing or undefined to continue with the existing state behaviour.
Triggers when MeleeBot executes the state PICKUP_LOOT
Return true to completely skip the existing state behaviour, return nothing or undefined to continue with the existing state behaviour.
Triggers when MeleeBot executes the state KEEP_PROTECTEES_AROUND
Return true to completely skip the existing state behaviour, return nothing or undefined to continue with the existing state behaviour.
Triggers when MeleeBot decides which state to execute.
Return "IDLE" to force MeleeBot to wait while your script is doing something else, dont return anything or return undefined to resume normal behaviour.
Triggers when MeleeBot picks a LevelArea.
Return a LevelArea to override it. Return "undefined" to resume default behavior. Example: UniCore.OnHook("MeleeBot_CurrentLevelArea ", () => { if (yourCustomCondition) return { minLevel: 1, mobsWhiteList: ["Small Burudeng"], location: { x: 6755, z: 3564 }, maxDistance: 45 }; else return undefined; })
Static
CalculateStatic
CalculateStatic
LimitStatic
NormalizeStatic
VecStatic
VecStatic
PerformHTTPGetStatic
PerformHTTPPostGenerated using TypeDoc
Class representing the Core functionality consumed by User scripts. Usage:
const { UniCore } = require("UniCore");