Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- on join:
- player has played before:
- if {pker.%player%.amount} is 1:
- set join message to "&c&o%player% Level I Criminal has joined"
- if {pker.%player%.amount} is 2:
- set join message to "&c&o%player% Level II Criminal has joined"
- if {pker.%player%.amount} is 3:
- set join message to "&c&o%player% Level III Criminal has joined"
- if {pker.%player%.amount} is 4:
- set join message to "&c&o%player% Level IV Criminal has joined"
- if {pker.%player%.amount} is 5:
- set join message to "&c&o%player% Level V Criminal has joined"
- every 1 minute:
- loop all players:
- if {pker.%loop-player%.amount} is set:
- if {pker.%loop-player%.pay} is not set:
- add 1 to {pker.%loop-player%.pay}
- if {pker.%loop-player%.pay} is more than 30:
- delete {pker.%loop-player%.pay}
- else:
- if {pker.%loop-player%.pay} is less than 30:
- add 1 to {pker.%loop-player%.pay}
- if {pker.%loop-player%.pay} is 30:
- delete {pker.%loop-player%.pay}
- if {pker.%loop-player%.amount} is 5:
- add {pk.%loop-player%.amount} * 0.15 to loop-player's money
- message "&c&oSometimes crime does pay!" to loop-player
- message "&7&oYou earned %{pk.%loop-player%.amount} * 0.15% &7&oRupees" to loop-player
- if {pker.%loop-player%.amount} is 4:
- add {pk.%loop-player%.amount} * 0.65 to loop-player's money
- message "&c&oSometimes crime does pay!" to loop-player
- message "&7&oYou earned %{pk.%loop-player%.amount} * 0.65% &7&oRupees" to loop-player
- if {pker.%loop-player%.amount} is 3:
- add {pk.%loop-player%.amount} * 0.95 to loop-player's money
- message "&c&oSometimes crime does pay!" to loop-player
- message "&7&oYou earned %{pk.%loop-player%.amount} * 0.95% &7&oRupees" to loop-player
- if {pker.%loop-player%.amount} is 2:
- add {pk.%loop-player%.amount} * 1.15 to loop-player's money
- message "&c&oSometimes crime does pay!" to loop-player
- message "&7&oYou earned %{pk.%loop-player%.amount} * 1.15% &7&oRupees" to loop-player
- if {pker.%loop-player%.amount} is 1:
- add {pk.%loop-player%.amount} * 1.25 to loop-player's money
- message "&c&oSometimes crime does pay!" to loop-player
- message "&7&oYou earned %{pk.%loop-player%.amount} * 1.25% &7&oRupees" to loop-player
- every 40 seconds:
- loop all players:
- remove loop-player from {crims::*}
- if {pk.%loop-player%.amount} is set:
- remove loop-player from {crims::*}
- add loop-player to {crims::*}
- if "%regions at loop-player%" contains "neverland":
- if {pk.%loop-player%.amount} is set:
- if {pk.%loop-player%.amount} is not 0:
- subtract 2 from {pk.%loop-player%.amount}
- if {pk.%loop-player%.amount} is less than 0:
- delete {pk.%loop-player%.amount}
- delete {pk.%loop-player%}
- delete {pker.%loop-player%.amount}
- delete {pker.%loop-player%}
- delete {pker.%loop-player%.pay}
- remove loop-player from {crims::*}
- execute console command "manudelsub %loop-player% criminal"
- if {pk.%loop-player%.amount} is 0:
- delete {pk.%loop-player%.amount}
- delete {pk.%loop-player%}
- delete {pker.%loop-player%.amount}
- delete {pker.%loop-player%}
- delete {pker.%loop-player%.pay}
- remove loop-player from {crims::*}
- execute console command "manudelsub %loop-player% criminal"
- else:
- if {pk.%loop-player%.amount} is more than 0:
- subtract 1 from {pk.%loop-player%.amount}
- if {pk.%loop-player%.amount} is less than 0:
- delete {pk.%loop-player%.amount}
- delete {pk.%loop-player%}
- delete {pker.%loop-player%.amount}
- delete {pker.%loop-player%}
- delete {pker.%loop-player%.pay}
- remove loop-player from {crims::*}
- execute console command "manudelsub %loop-player% criminal"
- if {pk.%loop-player%.amount} is 0:
- delete {pk.%loop-player%.amount}
- delete {pk.%loop-player%}
- delete {pker.%loop-player%.amount}
- delete {pker.%loop-player%}
- delete {pker.%loop-player%.pay}
- remove loop-player from {crims::*}
- message "&7&oYou are no longer a criminal!" to loop-player
- execute console command "manudelsub %loop-player% criminal"
- set {goodpk.%loop-player%} to 1
- if {pk.%loop-player%.amount} is more than 1440:
- set {pker.%loop-player%.amount} to 5
- else:
- if {pk.%loop-player%.amount} is more than 720:
- set {pker.%loop-player%.amount} to 4
- else:
- if {pk.%loop-player%.amount} is more than 360:
- set {pker.%loop-player%.amount} to 3
- else:
- if {pk.%loop-player%.amount} is more than 180:
- set {pker.%loop-player%.amount} to 2
- else:
- if {pk.%loop-player%.amount} is less than 180:
- set {pker.%loop-player%.amount} to 1
- on death of player:
- if attacker is online:
- if attacker is in world "world" or "world_nether" or "world_the_end":
- if "%regions at attacker%" does not contain "WarZone" or "fairpvp" or "nuketown":
- if {goodpk.%victim%} is set:
- if {pk.%attacker%.amount} is not set:
- set {pk.%attacker%.amount} to 180
- set {pker.%attacker%.amount} to 1
- add attacker to {crims::*}
- delete {goodpk.%attacker%}
- message "&c&oYou have been flagged a Level I criminal for killing %victim% a neutral player!" to attacker
- wait 1 tick
- message "&c&oAvoid town guards for the next 30 minutes!" to attacker
- execute console command "manuaddsub %attacker% criminal"
- message "&c&o%attacker% is now a Level I Criminal" to players
- stop
- else:
- if {pker.%attacker%.amount} is 1:
- set {pker.%attacker%.amount} to 2
- add 360 to {pk.%attacker%.amount}
- message "&c&oYou have been flagged a Level II criminal for killing %victim% a neutral player!" to attacker
- wait 1 tick
- message "&c&oAvoid town guards for the next hour of playtime!" to attacker
- wait 1 tick
- message "&c&o%attacker% is now a Level II Criminal" to players
- stop
- else:
- if {pker.%attacker%.amount} is 2:
- set {pker.%attacker%.amount} to 3
- add 720 to {pk.%attacker%.amount}
- message "&c&oYou have been flagged a Level III criminal for killing %victim% a neutral player!" to attacker
- wait 1 tick
- message "&c&oAvoid town guards for the next 2 hours of playtime!" to attacker
- wait 1 tick
- message "&c&o%attacker% is now a Level III Criminal" to players
- stop
- else:
- if {pker.%attacker%.amount} is 3:
- set {pker.%attacker%.amount} to 4
- add 1440 to {pk.%attacker%.amount}
- message "&c&oYou have been flagged a Level IV criminal for killing %victim% a neutral player!" to attacker
- wait 1 tick
- message "&c&oAvoid town guards for the next 4 hours of playtime!" to attacker
- wait 1 tick
- message "&c&o%attacker% is now a Level IV Criminal" to players
- stop
- else:
- if {pker.%attacker%.amount} is 4:
- set {pker.%attacker%.amount} to 5
- add 2880 to {pk.%attacker%.amount}
- message "&c&oYou have been flagged a Level V criminal for killing %victim% a neutral player!" to attacker
- wait 1 tick
- message "&c&oAvoid town guards for the next 8 hours of playtime!" to attacker
- wait 1 tick
- message "&c&o%attacker% is now a Level V Criminal" to players
- stop
- else:
- if {pker.%attacker%.amount} is 5:
- if {pk.%attacker%.amount} is less than 9999:
- add 90 to {pk.%attacker%.amount}
- message "&c&oYour criminal status has been extended an additional 15 minutes" to attacker
- message "&c&o%attacker%'s criminal bounty has increased"
- stop
- else:
- if {pk.%attacker%.amount} is more than 9999:
- message "&c&oYou have reached maximum criminal reputation, beware!"
- stop
- else:
- if {pker.%victim%.amount} is set:
- if {pker.%attacker%.amount} is set:
- subtract 10% from {pk.%victim%.amount}
- add 5% to {pk.%attacker%.amount}
- message "&c&oYou were slain by another criminal and have lost 10 percent of your criminal reputation!" to victim
- message "&c&oYouhave slain another criminal and increased your criminal reputation by 5 percent!"
- stop
- else:
- if {goodpk.%attacker%} is set:
- subtract 30% from {pk.%victim%.amount}
- message "&c&oYou were slain by the galliant %attacker% and have lost 30 percent of your criminal reputation!" to victim
- if {pker.%victim%.amount} is set:
- add {pk.%victim%.amount} / 100 * 20 to attacker's money
- message "&7&oYou earned %{pk.%victim%.amount} / 100 * 20% Rupees for killing criminal %victim%!" to attacker
- on rightclick holding stick:
- if name of player's held item is "&2&lLemonhaze Joint" or "&2&lNether Kush Joint" or "&2&lAfghan Kush Joint" or "&2&lWatermelon Kush Joint" or "&2&lSilverhaze Joint" or "&2&lPurplehaze Joint" or "&2&lCocoa Kush Joint" or "&2&lBubbleberry Joint" or "n&2&lNorthern Lights Joint" or "&2&lJamaican Pearl Joint" or "sour diesel joint" or "&2&lAlanthya Gold Joint":
- if player has flint and steel in their inventory:
- show smoke at block above event-location
- if {pk.%player%.amount} is not set:
- set {pk.%player%.amount} to 30
- add player to {crims::*}
- message "&c&oYou Have been flagged as a criminal for the next 5 minutes of gameplay!"
- wait 1 tick
- message "&c&oAvoid town guards!"
- execute console command "manuaddsub %player% criminal"
- else:
- if {pk.%player%.amount} is set:
- chance of 25%:
- if {pk.%player%.amount} is less than 9999:
- add 15 to {pk.%player%.amount}
- message "&c&oYou have been flagged as a criminal for an additional 2.5 minutes of gameplay!"
- if {pker.%player%.amount} is not set:
- set {pker.%player%.amount} to 1
- else:
- if {pk.%player%.amount} is more than 180:
- set {pker.%player%.amount} to 2
- if {pk.%player%.amount} is more than 360:
- set {pker.%player%.amount} to 3
- if {pk.%player%.amount} is more than 720:
- set {pker.%player%.amount} to 4
- if {pk.%player%.amount} is more than 1440:
- set {pker.%player%.amount} to 5
- on join:
- wait 10 seconds
- if {pk.%player%.amount} is not set:
- set {goodpk.%player%} to 1
- else:
- add player to {crims::*}
- execute console command "manuaddsub %player% criminal"
- on quit:
- if {goodpk.%player%} is set:
- delete {goodpk.%player%}
- if {pk.%player%.amount} is set:
- remove player from {crims::*}
- execute console command "manudelsub %player% criminal"
- add player to {offlinecrims::*}
- set {offlinecrims::%player%} to now
- every 10 minutes:
- loop {offlinecrims::*}:
- if difference between {offlinecrims::%loop-value%} and now is more than 7 days:
- delete {offlinecrims::%loop-value%}
- command /crimclear:
- trigger:
- if difference between now and {offlinecrims.%player%} is more than 7 days:
- delete {pker.%player%.amount}
- delete {pk.%player%.amount}
- delete {pker.%player%.amount}
- remove player from {crims::*}
- command /crimelevel [<player>]:
- trigger:
- if arg is not set:
- if {pk.%player%.amount} is not set:
- message "%player% &ais not a criminal %{pker.%arg-player%.pay}%"
- else:
- message "&c&oYou are a Level %{pker.%player%.amount}% Criminal"
- wait 1 tick
- message "&c&oCriminal Reputation <%{pk.%player%.amount}%>"
- else:
- if arg is online:
- if {pk.%arg-player%.amount} is not set:
- message "%arg-player% &ais not a criminal"
- else:
- message "&c&o%arg-player% is a Level %{pker.%arg-player%.amount}% Criminal"
- message "&c&oCriminal Reputation <%{pk.%arg-player%.amount}%>"
- if arg is not online:
- message "&c&o%arg-player% is not online."
- command /criminals:
- trigger:
- message "&c&oOnline Criminals: %{crims::*}%"
- command /crimes:
- trigger:
- message "&o&4=======&f&o&lCriminalActivity&9&o======="
- message "&c&oCrimes"
- message "&7&oPlayers become criminals for either killing a neutral player"
- message "&7&o(A player not listed in /criminals) or you can become a"
- message "&7&ocriminal by smoking weed cultivated with the weed plugin."
- message "&2&oWeed Guide -->http://www.alanthya.com/forum/m/4719887/viewthread/16975985-weed"
- command /crimeperks:
- trigger:
- message "&o&4=======&f&o&lCriminalActivity&9&o======="
- message "&c&oCriminal Perks"
- message "&7&o&c&oCriminals &7&oreceive a &b10%% &7&oMcMMO skill gain boost,"
- message "&7&oas well as criminal pay proportionate to their"
- message "&7&ocriminal level every 1/2 hour online."
- command /crimeguide [<text>]:
- trigger:
- if arg-1 is not set:
- message "&o&4=======&f&o&lCriminalActivity&9&o======="
- message "&c&o&nCriminal Guide"
- message ""
- message "&7&o*&b/crimelevel &7&ois reduced by &b1 &7&opoint every &b10 &7&oseconds"
- message "&7&o*&b/crimelevel &7&ois lost slower while in &c&oBuc's Den."
- message "&7&o*&b&oNon-Criminals &7&othat kill &c&oCriminals &7&oearn &b20%% &7&oof their &b/crimelevel &7&opaid in Rupees"
- message "&7&o*&c&oCriminals &7&okilled by &b&oNon-Criminals &7&olose &b20%% &7&oof &b/crimelevel"
- message "&7&o*&c&oCriminals &7&okilled by &c&oCriminals &7&olose &b10%% &7of &b/crimelevel"
- message "&7&o*&c&oCriminals &7&othat kill &cCriminals &7&owill boost their &b/crimelevel &7&oby &b5%%"
- message "&7&o*You will not be flagged as a &cCriminal &7&owhen killing in &cWarZones."
- message "&7&o*&c&oCriminals &7&oshould avoid Town Guards at all costs."
- command /adjudicate [<text>]:
- trigger:
- if arg-1 is not set:
- if {pker.%player%.amount} is not set:
- message "&7&oYou are not charged with any crimes!"
- if {pker.%player%.amount} is set:
- execute console command "manudelsub %player% criminal"
- delete {pk.%player%.amount}
- remove player from {crims::*}
- if {pker.%player%.amount} is 1:
- chance of 20%:
- delete {pker.%player%.amount}
- delete {pk.%player%.amount}
- delete {pker.%player%.amount}
- set {goodpk.%player%} to 1
- execute console command "jail %player% 10m bubba"
- message "&7&oThe High Court of Alanthya finds you guilty of"
- message "&7&oyour crimes and sentences you to 10 minutes of jail time"
- message "&7&oand fined 1%% of your balance: &f%player's balance% * 1.01 - %player's balance%"
- message "&7&o%player% has been found guilty of Level I criminal activity" to players
- message "&7&oand has been sentenced to 10 minutes in jail." to players
- subtract 1% from player's money
- else:
- message "Case dismissed, you are clear of all criminal charges!"
- message "&7&o%player% has been cleared of all criminal charges" to players
- delete {pker.%player%.amount}
- delete {pk.%player%.amount}
- set {goodpk.%player%} to 1
- if {pker.%player%.amount} is 2:
- chance of 35%:
- delete {pker.%player%.amount}
- delete {pk.%player%.amount}
- set {goodpk.%player%} to 1
- execute console command "jail %player% 15m bubba"
- message "&7&oThe High Court of Alanthya finds you guilty of"
- message "&7&oyour crimes and sentences you to 15 minutes of jail time"
- message "&7&oand fined 1.5%% of your balance: &f%player's balance% * 1.015 - %player's balance%"
- message "&7&o%player% has been found guilty of Level II criminal activity" to players
- message "&7&oand has been sentenced to 15 minutes in jail." to players
- subtract 1.5% from player's money
- else:
- message "&7&o%player% has been cleared of all criminal charges" to players
- message "Case dismissed, you are clear of all criminal charges!"
- delete {pker.%player%.amount}
- delete {pk.%player%.amount}
- set {goodpk.%player%} to 1
- if {pker.%player%.amount} is 3:
- chance of 40%:
- delete {pk.%player%.amount}
- delete {pker.%player%.amount}
- set {goodpk.%player%} to 1
- execute console command "jail %player% 20m bubba"
- message "&7&oThe High Court of Alanthya finds you guilty of"
- message "&7&oyour crimes and sentences you to 20 minutes of jail time"
- message "&7&oand fined 2%% of your balance: &f%player's balance% * 1.02 - %player's balance%"
- message "&7&o%player% has been found guilty of Level III criminal activity" to players
- message "&7&oand has been sentenced to 15 minutes in jail." to players
- subtract 2% from player's money
- else:
- message "&7&o%player% has been cleared of all criminal charges" to players
- message "Case dismissed, you are clear of all criminal charges!"
- delete {pker.%player%.amount}
- delete {pk.%player%.amount}
- set {goodpk.%player%} to 1
- if {pker.%player%.amount} is 4:
- chance of 45%:
- delete {pker.%player%.amount}
- delete {pk.%player%.amount}
- set {goodpk.%player%} to 1
- execute console command "jail %player% 25m bubba"
- execute console command "manudelsub %player% criminal"
- message "&7&oThe High Court of Alanthya finds you guilty of"
- message "&7&oyour crimes and sentences you to 25 minutes of jail time"
- message "&7&oand fined 2.5%% of your balance: &f%player's balance% * 1.025 - %player's balance%"
- message "&7&o%player% has been found guilty of Level IV criminal activity" to players
- message "&7&oand has been sentenced to 25 minutes in jail." to players
- subtract 2.5% from player's money
- else:
- message "Case dismissed, you are clear of all criminal charges!"
- message "&7&o%player% has been cleared of all criminal charges" to players
- delete {pker.%player%.amount}
- delete {pk.%player%.amount}
- set {goodpk.%player%} to 1
- if {pker.%player%.amount} is 5:
- chance of 55%:
- delete {pker.%player%.amount}
- delete {pk.%player%.amount}
- set {goodpk.%player%} to 1
- execute console command "jail %player% 30m bubba"
- execute console command "manudelsub %player% criminal"
- message "&7&oThe High Court of Alanthya finds you guilty of"
- message "&7&oyour crimes and sentences you to 30 minutes of jail time"
- message "&7&oand fined 3%% of your balance: &f%player's balance% * 1.03 - %player's balance%"
- message "&7&o%player% has been found guilty of Level V criminal activity" to players
- message "&7&oand has been sentenced to 30 minutes in jail." to players
- subtract 3% from player's money
- else:
- message "&7&o%player% has been cleared of all criminal charges" to players
- message "Case dismissed, you are clear of all criminal charges!"
- delete {pker.%player%.amount}
- delete {pk.%player%.amount}
- set {goodpk.%player%} to 1
- if arg-1 is "info":
- message "&o&4=======&f&o&lCriminalActivity&9&o======="
- message "&c&oAdjudication Process"
- message "&7&oAdjudication allows criminals a chance to present their case"
- message "&7&oto the High Court of Alanthya, which a player has a chance of"
- message "&7&ohaving their criminal charges being dropped instantly, or if"
- message "&7&othe powers that be decide the player is guilty, will fine"
- message "&7&oa Lv. I criminal 1%% of their balance or a maximum of"
- message "&7&o3%% fine for a Lv. 5 criminal."
- message "&7&oAs well, the guilty party will be sentenced to jail and"
- message "&7&oserve time based on their Criminal Level. Maximum 30 minute sentence."
- command /crimepay:
- trigger:
- if {pker.%player%.amount} is not set:
- message "&7&oDa boss doesnt know you, scram kid!"
- if {pker.%player%.amount} is 1:
- message "&7&oYour expected payout is %{pk.%player%.amount} * 1.25% Rupees"
- if {pker.%player%.amount} is 2:
- message "&7&oYour expected payout is %{pk.%player%.amount} * 1.15% Rupees"
- if {pker.%player%.amount} is 3:
- message "&7&oYour expected payout is %{pk.%player%.amount} * 0.95% Rupees"
- if {pker.%player%.amount} is 4:
- message "&7&oYour expected payout is %{pk.%player%.amount} * 0.65% Rupees"
- if {pker.%player%.amount} is 5:
- message "&7&oYour expected payout is %{pk.%player%.amount} * 0.15% Rupees"
- command /criminalset <player>:
- trigger:
- if player has the permission "criminal.admin":
- set {pk.%arg-player%.amount} to 9500
- set {pker.%arg-player%.amount} to 5
- delete {goodpk.%arg-player%}
- execute console command "manuaddsub %arg% criminal"
- command /criminalreset <player>:
- trigger:
- if player has the permission "criminal.admin":
- delete {pk.%arg-player%.amount}
- delete {pker.%arg-player%.amount}
- delete {pker.%arg-player%.pay}
- set {goodpk.%arg-player%} to 1
- delete {crims::*}
- execute console command "manudelsub %arg-player% criminal"
- command /crimehelp [<text>]:
- trigger:
- if arg-1 is not set:
- message "&o&4=======&f&o&lCriminalActivity&9&o======="
- message "&c&o&nCommands"
- message ""
- message "&7&o/criminals - Lists online criminals"
- message "&7&o/crimelevel - Shows your current criminal level and reputation"
- message "&7&o/crimelevel <player> - Shows an online players criminal level"
- message "&7&o/crimes - Criminal Actions"
- message "&7&o/crimeperks - The benefits of being a criminal"
- message "&7&o/crimeguide - Thug knowledge"
- message "&7&o/crimepay - Payroll"
- message "&7&o/adjudicate info - Information on the court process"
- message "&7&o/adjudicate - Go to Trial"
- every 9 minutes:
- delete {crims::*}
- loop all players:
- if {pk.%loop-player%.amount} is set:
- add loop-player to {crims::*}
- every 20 minutes:
- message "&c&o$Wanted$&r&c: %{crims::*}%" to players
- on join:
- if {pk.%player%.amount} is more than 9999:
- set {pk.%player%.amount} to 9998
- on rightclick holding nether star:4:
- if lore of player's tool contains "Get out of jail FREE":
- cancel the event
- remove 1 nether star:4 from player
- execute console command "unjail %player%"
- on rightclick holding nether star:5:
- if lore of player's tool contains "Criminal Pardon":
- cancel the event
- remove 1 nether star:5 from player
- delete {pk.%player%.amount}
- delete {pker.%player%.amount}
- delete {pker.%player%.pay}
- set {goodpk.%player%} to 1
- remove player from {crims::*}
- execute console command "manudelsub %player% criminal"
- on command "f money d" or "efmoney d" or "econ pay" or "eecon pay":
- if {pk.%player%} is set:
- cancel the event
- message "&7Criminals are not welcome to use instant payment systems!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement