Posts: 12
Threads: 4
Joined: Nov 2020
Reputation:
0
Hi, I am after a script that buys mana fluids from npc, i tried to use the buy ammo one in the helpful cavebot scripts but it wouldnt work.
also after a simple if attacked by player gotolabel('Pk attack')
thank you very much
Posts: 2,920
Threads: 484
Joined: Jul 2018
Reputation:
83
Hello.
What exactly didn't works there? That script works based on visible items. So you have all your mana fluids visible, so it can count how many left and purchase more.
Depending on how you organize your bps, I think you would need more advanced script. How do you organize your mana fluids? One bp with 20 bps inside or One bp inside another?
You can use Alerts->Player Attack->Enable Cavebot.
Enable Cavebot: If cavebot IS DISABLED, this will enable and go to label "alert_(NAME)". In your case: "alert_playerattack". Example: If Player attack you, it will enable cavebot and go to label "alert_playerattack", if label not found, it will go to first waypoint.