phBot Plugins
  • Introduction
  • Example Plugins
  • phBot API
    • Client
    • Guild
    • Events
    • Players
    • Party
    • NPC
    • Character
    • Academy
    • Inventory
    • Pets
    • Monsters
    • Encoding
    • Locale
    • Config
    • Botting
    • Taxi
    • Packet Injection
    • Log
    • Game Data
    • Teleport
    • Training Area
    • Command Line Arguments
    • Movement
    • Quests
    • Drops
    • Paths
    • Script
    • Notifications
    • Alchemy
    • Misc
  • Chat API
  • Handling Script Commands
  • GUI API
Powered by GitBook
On this page
  • start_alchemy
  • stop_alchemy
  • reset_alchemy
  • add_alchemy(dict)
  • alchemy_update(slot, success, plus)
  1. phBot API

Alchemy

Controls alchemy through Python

start_alchemy

Starts alchemy

Usage

start_alchemy()

Returns

True or False if the function succeeded or not

stop_alchemy

Stops alchemy

Usage

stop_alchemy()

Returns

True or False if the function succeeded or not

reset_alchemy

Clears the alchemy queue

Usage

reset_alchemy()

Returns

True or False if the function succeeded or not

add_alchemy(dict)

Adds an item to the alchemy queue

Usage

add_alchemy({
    'type': 'plus',
    'slot': 13,
    'stop': 5,
    'success': 2000,
    'failure': 5000,
    'powder': 0,
    'astral': -1,
    'steady': -1,
    'immortal': -1,
    'lucky': -1,
    'stop_attempt': 100,
    'stop_destroyed': 1,
    'skip_fail': 0
})

Returns

True or False if the function succeeded or not

alchemy_update(slot, success, plus)

This event is sent to all plugins after an elixir is used on an item.

Example

def alchemy_update(slot, success, plus):

PreviousNotificationsNextMisc

Last updated 8 months ago