Post by Darth Maul on Aug 10, 2018 10:09:44 GMT
PK Related Scripts while Cavebotting
PK Checking Script
PK Checking Script: This script will go to the 'Leave Hunt' label when attacked and wait x time (15mins) before going to the 'Travel Hunt' label.
It will run back to the Thais DP and wait 15minutes if you're attacked. After 15minutes it will return to hunt.
You will need to set up a 'LEAVE HUNT' label that will take you out of your spawn and into a safe location.
You will need to set up a 'TRAVEL HUNT' label that will take you back to your spawn to continue to hunt.
It displays 'Safe to hunt' on your hud when it's safe to hunt;
It displays a timer when waiting with the time left.
You can change the amount of time to wait by changing this amount in the first line: (set $minstowait '15')
PK Checking Script: This script will go to the 'Leave Hunt' label when attacked and wait x time (15mins) before going to the 'Travel Hunt' label.
It will run back to the Thais DP and wait 15minutes if you're attacked. After 15minutes it will return to hunt.
You will need to set up a 'LEAVE HUNT' label that will take you out of your spawn and into a safe location.
You will need to set up a 'TRAVEL HUNT' label that will take you back to your spawn to continue to hunt.
It displays 'Safe to hunt' on your hud when it's safe to hunt;
It displays a timer when waiting with the time left.
You can change the amount of time to wait by changing this amount in the first line: (set $minstowait '15')
set $minstowait '15'
auto 100 listas 'Player Attacking Check' | ifplayerattacking {gotolabel 'LEAVE HUNT' | pm '$self.name' 'leaving' | set $tt [60*$minstowait] | wait [$tt*1000] | pm '$self.name' 'returning' | gotolabel 'TRAVEL HUNT' | wait 5000}
auto 1000 | dontlist | if [$tt >1] {set $tt '[$tt-1]}
auto 1000 | dontlist | setpos [$screenleft-253] [$screentop+110] | if [$tt > 1]{setcolor 250 0 0 | displaytext 'Returning in $formattime.$tt'} | if [$tt <=1] {setcolor 0 150 0 | displaytext 'Safe to hunt'}
Anti RS
Anti RS: If the bot kills someone, it turns the targeting and the cavebot off.
You could adjust this script so that it leaves the hunting location and logs out, or just tries logging out in the cave.
Anti RS: If the bot kills someone, it turns the targeting and the cavebot off.
You could adjust this script so that it leaves the hunting location and logs out, or just tries logging out in the cave.
auto 1 | dontlist | [$curmsg.content ? 'the murder of'] {say 'Fail ;/ ' | savescreen | wait 2000 | settargeting off | setfollowwaypoints off |}
PK Alert
PK Alert: If you get pked, it will send a msg to your guild with who is killing you, alongside some other information.
You can adjust and configure this to display a bunch of other information if you want too. You can also send this message directly to other players, or in any other channel.
Other information you can send:
PK Alert: If you get pked, it will send a msg to your guild with who is killing you, alongside some other information.
You can adjust and configure this to display a bunch of other information if you want too. You can also send this message directly to other players, or in any other channel.
Other information you can send:
$pk.property, it will check something of the last player that attacked you that the bot has chosen
name -> will return the name of someone, for example: $target.name will return your target's name
id -> will return the ID of someone, for example: $enemy.id will return your best enemy's ID
posx -> will return the posx of someone, for example: $friend.posx will return your best friend's posx
posy -> will return the posy of someone, for example: $friend.posy will return your best friend's posy
posz -> will return the posz of someone, for example: $friend.posz will return your best friend's posz
dir -> will return the direction that someone is facing (check the end of this thread for more information), for example: $self.dir will return your own direction number
isonnavi -> will return 1 if someone is connected to the navigation, and 0 if not, for example: $friend.isonnavi will return 1 if the best friend chosen by the bot is connected to the navigation server, and 0 if not
outfit -> will return the outfit number of someone, for example: $subenemy.outfit will return your best sub-enemy's outfit number
hppc -> will return the percentage of HP of someone, for example: $target.hppc will return your target's HP percent
speed -> will return the speed of someone, for example: $anyenemy.speed will return your best enemy (or best sub-enemy)'s speed
skull -> will return the skull type of someone (check the end of this thread for more information), for example: $self.skull will return your own skull type
party -> will return the party icon of someone is in a party (check the end of this thread for more information), and 0 if not on party, for example: $self.party will return 4 if you are in the leader of a party
warbanner -> will return the war banner of someone (check the end of this thread for more information), and 0 if not on a guild war, for example: $target.warbanner will return 2 if your target is a guild enemy
isenemy -> will return 1 if someone is an enemy, and 0 if not, for example: $target.isenemy will return 1 if your current target is an enemy, and 0 if not
isfriend -> will return 1 if someone is a friend, and 0 if not, for example: $target.isfriend will return 1 if your current target is a friend, and 0 if not
issubenemy -> will return 1 if someone is a sub-enemy, and 0 if not, for example: $target.issubenemy will return 1 if your current target is a sub-enemy, and 0 if not
issubfriend -> will return 1 if someone is a sub-friend, and 0 if not, for example: $target.issubfriend will return 1 if your current target is a sub-friend, and 0 if not
isleader -> will return 1 if someone is a combo leader listed in Aimbot dialog, and 0 if not, for example: $target.isleader will return 1 if your current target is a leader, and 0 if not
distx -> will return how many sqms to the west or east someone is from you, $target.distx will return how many sqms to the west or east your target is from you
disty -> will return how many sqms to the north or south someone is from you, $target.disty will return how many sqms to the north or south your target is from you
distance -> will return the highest number of .distx and .disty, $target.distance will return how many sqms a target is from you
ismonster -> will return 1 if someone is a monster or a npc, 0 if not, $followed.ismonster will return 1 if your current followed is a monster, 0 if not
isnpc -> will return 1 if someone is a npc, 0 if not, $followed.isnpc will return 1 if your current followed is a npc, 0 if not
isplayer -> will return 1 if someone is a player, 0 if not, $followed.isplayer will return 1 if your current followed is a player, 0 if not
isonscreen -> will return 1 if someone is on the same floor as you and on the visible portion of the screen, 0 if not, $followed.ismonster will return 1 if your current followed is on your screen, 0 if not
isshootable -> will return 1 if nothing obstructs a projectile trajectory between you and him, 0 if not, $followed.ismonster will return 1 if your current followed is shootable, 0 if not
isparalyzed -> will return 1 if someone is paralyzed, 0 if not, $target.isparalyzed will return 1 if your target is paralyzed, 0 if not
color1 -> will return the head color's number of someone, $self.color1 will return yours head color's number, 0 if not
color2 -> will return the primary color's number of someone, $self.color2 will return yours primary color's number, 0 if not
color3 -> will return the secondary color's number of someone, $self.color3 will return yours secondary color's number, 0 if not
color4 -> will return the detail color's number of someone, $self.color4 will return yours detail color's number, 0 if not
canshoot.'name' -> will return 1 if someone can shoot the creature 'name', $friend.canshoot.'Bubble' will return 1 if your best friend can shoot 'Bubble', 0 if not
exposedcount -> will return how many friends/yourself can shoot someone, $coretarget.exposedcount will return how many friends + you can shoot the coretarget
shotcount -> will return how many sudden death runes someone has recieved on the last 2 seconds, $self.shotcount will return how many sudden death runes you have recieved on the last two seconds
Also, there will be some exclusive variables if the bot managed to get a look at the player, it will have the 'haslookinfo' property set. You should verify that it's set before using the below fields:
haslookinfo -> will return 1 if player has the below properties available: if [$target.haslookinfo && $target.hp < 400] sd $target.id (since $target.hp is only available if $target.haslookinfo is set. Otherwise, $target.hp would return 0 and the alone condition $target.hp < 400 would be true!)
guild -> will return someone's guild, for example: $target.guild will return your target's guild
level -> will return someone's level, for example: $enemy.level will return the best enemy's level
voc -> will return someone's vocation (short), for example: $pattacker.voc will return the current player attacking you's vocation (like NV, D, S, P, K, ED, MS, RP, EK)
vocation -> will return someone's vocation (long), for example: $attacked.vocation will return the attacked player's vocation (like No Vocation, Druid, Sorcerer, Paladin, Knight, Elder Druid, Master Sorcerer, Royal Paladin, Elite Knight)
isknight -> will return 1 if someone is a knight, and 0 if not, for example: $target.isknight will return 1 if your current target is a knight, and 0 if not
ispaladin -> will return 1 if someone is a paladin, and 0 if not, for example: $target.ispaladin will return 1 if your current target is a paladin, and 0 if not
issorcerer -> will return 1 if someone is a sorcerer, and 0 if not, for example: $target.issorcerer will return 1 if your current target is a sorcerer, and 0 if not
isdruid -> will return 1 if someone is a druid, and 0 if not, for example: $target.isdruid will return 1 if your current target is a druid, and 0 if not
ismage -> will return 1 if someone is a druid or a sorcerer, and 0 if not, for example: $followed.ismage will return 1 if the current followed player is a mage, 0 if not
maxhp -> will return someone's max hp, for example: $friend.maxhp will return the best friend's max hp
hp -> will return someone's current hp, for example: $friend.hp will return the best friend's current hp
maxmp -> will return someone's max mp, for example: $subenemy.maxmp will return the best sub-enemy's maxmp
mp -> will return someone's max hp, for example: $subenemy.mp will return the best sub-enemy's current mp
attackedme -> will return 1 if someone attacked you, and 0 if not, for example: $friend.attackedme will return 1 if the best friend attacked you, and 0 if not
name -> will return the name of someone, for example: $target.name will return your target's name
id -> will return the ID of someone, for example: $enemy.id will return your best enemy's ID
posx -> will return the posx of someone, for example: $friend.posx will return your best friend's posx
posy -> will return the posy of someone, for example: $friend.posy will return your best friend's posy
posz -> will return the posz of someone, for example: $friend.posz will return your best friend's posz
dir -> will return the direction that someone is facing (check the end of this thread for more information), for example: $self.dir will return your own direction number
isonnavi -> will return 1 if someone is connected to the navigation, and 0 if not, for example: $friend.isonnavi will return 1 if the best friend chosen by the bot is connected to the navigation server, and 0 if not
outfit -> will return the outfit number of someone, for example: $subenemy.outfit will return your best sub-enemy's outfit number
hppc -> will return the percentage of HP of someone, for example: $target.hppc will return your target's HP percent
speed -> will return the speed of someone, for example: $anyenemy.speed will return your best enemy (or best sub-enemy)'s speed
skull -> will return the skull type of someone (check the end of this thread for more information), for example: $self.skull will return your own skull type
party -> will return the party icon of someone is in a party (check the end of this thread for more information), and 0 if not on party, for example: $self.party will return 4 if you are in the leader of a party
warbanner -> will return the war banner of someone (check the end of this thread for more information), and 0 if not on a guild war, for example: $target.warbanner will return 2 if your target is a guild enemy
isenemy -> will return 1 if someone is an enemy, and 0 if not, for example: $target.isenemy will return 1 if your current target is an enemy, and 0 if not
isfriend -> will return 1 if someone is a friend, and 0 if not, for example: $target.isfriend will return 1 if your current target is a friend, and 0 if not
issubenemy -> will return 1 if someone is a sub-enemy, and 0 if not, for example: $target.issubenemy will return 1 if your current target is a sub-enemy, and 0 if not
issubfriend -> will return 1 if someone is a sub-friend, and 0 if not, for example: $target.issubfriend will return 1 if your current target is a sub-friend, and 0 if not
isleader -> will return 1 if someone is a combo leader listed in Aimbot dialog, and 0 if not, for example: $target.isleader will return 1 if your current target is a leader, and 0 if not
distx -> will return how many sqms to the west or east someone is from you, $target.distx will return how many sqms to the west or east your target is from you
disty -> will return how many sqms to the north or south someone is from you, $target.disty will return how many sqms to the north or south your target is from you
distance -> will return the highest number of .distx and .disty, $target.distance will return how many sqms a target is from you
ismonster -> will return 1 if someone is a monster or a npc, 0 if not, $followed.ismonster will return 1 if your current followed is a monster, 0 if not
isnpc -> will return 1 if someone is a npc, 0 if not, $followed.isnpc will return 1 if your current followed is a npc, 0 if not
isplayer -> will return 1 if someone is a player, 0 if not, $followed.isplayer will return 1 if your current followed is a player, 0 if not
isonscreen -> will return 1 if someone is on the same floor as you and on the visible portion of the screen, 0 if not, $followed.ismonster will return 1 if your current followed is on your screen, 0 if not
isshootable -> will return 1 if nothing obstructs a projectile trajectory between you and him, 0 if not, $followed.ismonster will return 1 if your current followed is shootable, 0 if not
isparalyzed -> will return 1 if someone is paralyzed, 0 if not, $target.isparalyzed will return 1 if your target is paralyzed, 0 if not
color1 -> will return the head color's number of someone, $self.color1 will return yours head color's number, 0 if not
color2 -> will return the primary color's number of someone, $self.color2 will return yours primary color's number, 0 if not
color3 -> will return the secondary color's number of someone, $self.color3 will return yours secondary color's number, 0 if not
color4 -> will return the detail color's number of someone, $self.color4 will return yours detail color's number, 0 if not
canshoot.'name' -> will return 1 if someone can shoot the creature 'name', $friend.canshoot.'Bubble' will return 1 if your best friend can shoot 'Bubble', 0 if not
exposedcount -> will return how many friends/yourself can shoot someone, $coretarget.exposedcount will return how many friends + you can shoot the coretarget
shotcount -> will return how many sudden death runes someone has recieved on the last 2 seconds, $self.shotcount will return how many sudden death runes you have recieved on the last two seconds
Also, there will be some exclusive variables if the bot managed to get a look at the player, it will have the 'haslookinfo' property set. You should verify that it's set before using the below fields:
haslookinfo -> will return 1 if player has the below properties available: if [$target.haslookinfo && $target.hp < 400] sd $target.id (since $target.hp is only available if $target.haslookinfo is set. Otherwise, $target.hp would return 0 and the alone condition $target.hp < 400 would be true!)
guild -> will return someone's guild, for example: $target.guild will return your target's guild
level -> will return someone's level, for example: $enemy.level will return the best enemy's level
voc -> will return someone's vocation (short), for example: $pattacker.voc will return the current player attacking you's vocation (like NV, D, S, P, K, ED, MS, RP, EK)
vocation -> will return someone's vocation (long), for example: $attacked.vocation will return the attacked player's vocation (like No Vocation, Druid, Sorcerer, Paladin, Knight, Elder Druid, Master Sorcerer, Royal Paladin, Elite Knight)
isknight -> will return 1 if someone is a knight, and 0 if not, for example: $target.isknight will return 1 if your current target is a knight, and 0 if not
ispaladin -> will return 1 if someone is a paladin, and 0 if not, for example: $target.ispaladin will return 1 if your current target is a paladin, and 0 if not
issorcerer -> will return 1 if someone is a sorcerer, and 0 if not, for example: $target.issorcerer will return 1 if your current target is a sorcerer, and 0 if not
isdruid -> will return 1 if someone is a druid, and 0 if not, for example: $target.isdruid will return 1 if your current target is a druid, and 0 if not
ismage -> will return 1 if someone is a druid or a sorcerer, and 0 if not, for example: $followed.ismage will return 1 if the current followed player is a mage, 0 if not
maxhp -> will return someone's max hp, for example: $friend.maxhp will return the best friend's max hp
hp -> will return someone's current hp, for example: $friend.hp will return the best friend's current hp
maxmp -> will return someone's max mp, for example: $subenemy.maxmp will return the best sub-enemy's maxmp
mp -> will return someone's max hp, for example: $subenemy.mp will return the best sub-enemy's current mp
attackedme -> will return 1 if someone attacked you, and 0 if not, for example: $friend.attackedme will return 1 if the best friend attacked you, and 0 if not
auto 1 | dontlist | ifplayerattacking {set $pkmsg 'I am being attacked by $pkname at [$cur_location]! « ¶ Total Players: [$playersaround.20] ¶ » « • • Friends: $friendcount • • » « • • Enemies: $enemycount • • » ' | guildsay '$pkmsg' | pm '$self.name' '$pkmsg'} | wait 20000
Anti-Trap
Anti-Trap: The bot will try to use a disintegrate rune if certain items are around you.
You can adjust and add to this script if players are trying to block you with other items; simply add "useongrounditem 3197 itemid" to the script.
Anti-Trap: The bot will try to use a disintegrate rune if certain items are around you.
You can adjust and add to this script if players are trying to block you with other items; simply add "useongrounditem 3197 itemid" to the script.
auto 1500 dontlist | useongrounditem 3197 2524 | useongrounditem 3197 834 | useongrounditem 3197 831 | useongrounditem 3197 832 | useongrounditem 3197 833 | useongrounditem 3197 6115 | useongrounditem 3197 2776 | useongrounditem 3197 2775 | useongrounditem 3197 2802 | useongrounditem 3197 2778 | useongrounditem 3197 2777 | useongrounditem 3197 2795 | useongrounditem 3197 2804 | useongrounditem 3197 2799 | useongrounditem 3197 5086 | useongrounditem 3197 2812
auto 1500 dontlist | useongrounditem 3197 2790 | useongrounditem 3197 2801 | useongrounditem 3197 2782 | useongrounditem 3197 2792 | useongrounditem 3197 2809 | useongrounditem 3197 2808 | useongrounditem 3197 2806 | useongrounditem 3197 2811 | useongrounditem 3197 2785 | useongrounditem 3197 2800 | useongrounditem 3197 2791 | useongrounditem 3197 2803 | useongrounditem 3197 2784 | useongrounditem 3197 2783 | useongrounditem 3197 2786 | useongrounditem 3197 2981