11:23 AM 09/06/2022
Are there problems let me know pls
const zombie = new Bot("Nut Seller")
const outfit = new Outfit()
.body("#ffbb00")
.torso("#ffbb00")
.rightLeg("#ffbb00")
.leftLeg("#ffbb00")
nutseller.setOutfit(outfit)
const astroOutfit = new Outfit()
.body('#ffbb00')
.leftLeg("#ffbb00")
.rightLeg("#ffbb00")
.leftArm("#ffbb00")
.rightArm("#ffbb00")
.hat1(30821)
.hat2(3111)
.hat3()
.face(71416)
.tshirt(73889)
.shirt(170907)
.pants(154159)
p.setOutfit(nutsellerOutfit)
})
})
Game.newBot(nutseller)
// We use bot.setinterval so that when the zombie is destroyed, the loop clears.
// It's good practice to do this to avoid memory leaks.
zombie.setInterval(() => {
let target = zombie.findClosestPlayer(20)
if (!target) return zombie.setSpeech("")
zombie.setSpeech("alabama has good nuts not gonna lie try some")
zombie.moveTowardsPlayer(target, 8)
}, 10)
let touchEvent = zombie.touching((p) => {
Game.messageAll(
p.kill()
})
const zombie = new Bot("Nut Seller")
const outfit = new Outfit()
.body("#ffbb00")
.torso("#ffbb00")
.rightLeg("#ffbb00")
.leftLeg("#ffbb00")
nutseller.setOutfit(outfit)
const astroOutfit = new Outfit()
.body('#ffbb00')
.leftLeg("#ffbb00")
.rightLeg("#ffbb00")
.leftArm("#ffbb00")
.rightArm("#ffbb00")
.hat1(30821)
.hat2(3111)
.hat3()
.face(71416)
.tshirt(73889)
.shirt(170907)
.pants(154159)
p.setOutfit(nutsellerOutfit)
})
})
Game.newBot(nutseller)
// We use bot.setinterval so that when the zombie is destroyed, the loop clears.
// It's good practice to do this to avoid memory leaks.
zombie.setInterval(() => {
let target = zombie.findClosestPlayer(20)
if (!target) return zombie.setSpeech("")
zombie.setSpeech("alabama has good nuts not gonna lie try some")
zombie.moveTowardsPlayer(target, 8)
}, 10)
let touchEvent = zombie.touching((p) => {
Game.messageAll(
[#ff0000]${p.username} ate rotten nuts what a sussy alabama citizen!
)p.kill()
})
08:34 PM 10/06/2022
It would be helpful if you shared a pastebin link instead of pasting your code into the forums where it would be formatted incorrectly.
https://pastebin.com/
https://pastebin.com/
09:25 AM 12/06/2022
I don't understand the programming language of brick hill very well so I can't help