For class-specific rotations (e.g., Rogue’s Backstab + Envenom):
automacro BackstabLoop
monster Zombie, Skeleton
while not targeting
aggression >
call
do skill "Backstab" 5
pause 1
do skill "Envenom" 3
pause 0.5
Phbot is a popular Discord bot used for various tasks, including moderation, music playback, and more. Phbot scripts are custom code snippets that can be used to extend the functionality of the bot. This report provides an overview of Phbot scripts, their uses, and a sample script.
Let’s create a simple farming script for Payon Cave (pay_dun00) targeting Zombies and Skeletons. phbot scripts
Step 1: Create a new file named payon_farm.txt.
Step 2: Add base configuration:
config
lockMap pay_dun00
attackAuto 2
attackUseWeapon 1
route_randomWalk 2
route_randomWalk_inTown 0
lootAuto 2
lootDistance 15
hpLower 40
spLower 20
useSelf_skill Heal
lvl 10
hp < 60%
Step 3: Define monsters to kill:
monster_control
Zombie 1 0 5
Skeleton 1 0 5
Spore 0 0 0
Step 4: Add a simple loot filter:
items_control
all 1 0 1
Jellopy 0 1 0
Empty_Bottle 0 0 0
Explanation:
Save the file and load it via PHBot’s console using load payon_farm.txt. For class-specific rotations (e
PHBot supports event-driven scripts using automacro blocks. Example: Teleport when a player approaches (for PvP servers):
automacro PlayerSpotted
player /.*/
distance <= 10
exclusive 1
call
do respawn
log "Player detected! Teleporting."