Description: Kinda got sick of people asking how to get ranks, so made this. It's my first script to fairly basic.
Players in range are asked if they want to buy a rank, if they click the NPC he gives a price list for Mod, Admin & Op and asks which they want. If they reply with any of the ranks he attacks and takes £200.
Usual denizen script: /npc assignment --set dave
His micey language is kinda english but you can change it to suit.
Options (as in, up to you):
- set trait sentry
- set sentry invincible
- set NPC strength to 20 so pretty much immediate kill.
I use a villager so can't equip him, hence the 20 strength.
To do:
- remember who he has scammed so he can mock them next time they're in range.
# Dodgy Dave rank seller/killer
"dave":
type: assignment
interact scripts:-10 first visit to dave
-20 second visit to dave
actions:
on assignment:
# Enable/disable triggers with NPC via chatting, clicking and entering proximity.
- trigger name:chat toggle:true- trigger name:click toggle:true- trigger name:proximity toggle:true radius:8
on enter proximity:- random 3- chat "<white>Pssst <gold><player.name><white>. You wanna buy a rank? Mod, Admin or Op?"- chat "<white>Pssst <gold><player.name><white>. You wanna buy a rank? Mod, Admin or Op?"- chat "<white>Pssst <gold><player.name><white>. You wanna buy a rank? Mod, Admin or Op?"
on exit proximity:- random 3- chat "<white>Tell your friends. Cheapest rank deals from Dave."- chat "<white>Don't go snitching mind. I know where you live <gold><player.name><white>."- chat "<white>Go on, get outta here. I don't need the heat."-^attack stop
on damage:-^random 3- chat "<red>You think you can take me? You're dead you mug."- chat "<red>You think you can take me? You're dead you mug."- chat "<red>You think you can take me? You're dead you mug."
#-^equip hand:276:20 chest:315 boots:317 head:314 legs:317-^attack
"first visit to dave":
type: interact
# requirements:
steps:'RipOff':
click trigger:
script:- chat "<white>Ok, which rank you want? <yellow>Mod<white> is £1000, <yellow>Admin<white> is £2500 & <yellow>Op<white> is £5000."
chat trigger:'Mod':
trigger: I<&sq>ll have /Mod/for £1000.
script:- chat "<white>Haha. You mug!"-^execute as_op "eco take <player.name> 200"-^attack
- chat "<white>Imma kill you <gold><player.name><white>."'Admin':
trigger: I<&sq>ll have /Admin/for £2500.
script:- chat "<white>Haha. You mug!"-^execute as_op "eco take <player.name> 200"-^attack
- chat "<white>Imma kill you <gold><player.name><white>."'Op':
trigger: I<&sq>ll have /Op/for £5000.
script:- chat "<white>Haha. You mug!"-^execute as_op "eco take <player.name> 200"-^attack
- chat "<white>Imma kill you <gold><player.name><white>."
Apart from the fact that this will reduce the amount of players on your server and has random random commands, its good.