Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {quest.%player%} = 0
- {sten.%player%} = 0
- {kills.%player%} = 0
- {deaths.%player%} = 0
- command /npcmission:
- trigger:
- execute player command "/npc create &6&lMissioner"
- execute player command "/npc look"
- execute player command "/npc skin VacrosDK"
- on inventory click:
- inventory name of player's current invnetory contaians "&6&lMission-Menu":
- clicked slot = 1:
- MissionMine(player)
- on rightclick on entity:
- if name of entity is "&6&lMissioner":
- if {quest.%player%} is 0:
- send "&7" to player
- send "&aDu aktiverede nu mission menuen!" to player
- send "&cHøjreklik for at se mission menuen!" to player
- send "&7" to player
- set {quest.%player%} to 1
- stop
- if {quest.%player%} is 1:
- wait 3 tick
- open chest with 1 rows named "&6&lMission-Menu" to player
- wait 3 tick
- format slot 0 of player with cobblestone named "&7&lMine-Quest" with lore "&aDette skal du bruge for at klare denne mission:|| ||&7-------------[&8&lMine-Mission&7]---------------|| ||&71. &4&l320 &cstykker cobblestone &4(5 Stacks)||&72. &4&l128 &cstykker smeltet sten &4(2 stacks)|| ||&7-------------[&8&lMine-Mission&7]---------------" to close then run [execute player command "MissionMine(player)"]
- format slot 1 of player with seeds named "&e&lNarko-Mission" with lore "&aDette skal du bruge for at klare denne mission:|| ||&7-------------[&e&lNarko-Mission&7]---------------|| ||&72. &4&l64 &cstykker wheat &4(1 Stack)||&72. &4&l320 &cseeds &4(5 stacks)||&73. &4&l1 &cDiamond Hoe || ||&7-------------[&e&lNarko-Mission&7]---------------" to close then run [execute player command "/missionnarkofucntion92389"]
- format slot 2 of player with book named "&4Kill-Mission" with lore "&aDette skal du bruge for at klare denne mission:|| ||&7-------------[&4&lMislykket Morder-&c&lMission&7]---------------|| ||&71. &4&l100&c Kills!||&72. &4&l100 &cDeaths!|| ||&7-------------[&4&lMislykket Morder-&c&lMission&7]---------------" to close then run [execute player command "/missionkillpoikpghopuopihnds"]
- function MissionMine(p:player):
- set {_uuid} to uuid of {_p}
- {MissionMine::%{_uuid}%} = true:
- send "&6&lMissioner &8» &eDu har allerede klaret denne mission!" to {_p}
- stop
- amount of stone in {_p}'s inventory > 127:
- amount of cobblestone in {_p}'s inventory > 319:
- wait 5 ticks
- remove 320 of cobblestone from the inventory of {_p}
- wait 3 ticks
- remove 128 of stone from inventory of {_p}
- send "&7" to {_p}
- send "&7--------[&8lMine-Mission&7]--------" to {_p}
- send "&7" to {_p}
- send "&a&lDu har nu klaret din &8&lMine&a&l mission!" to {_p}
- send "&7" to {_p}
- send "&7--------[&8lMine-Mission&7]--------" to {_p}
- send "&7" to {_p}
- set {MissionMine::%{_uuid}%} to true
- stop
- send "&6&lMissioner &8» &eDu har ikke de ting jeg skal bruge!" to {_p}
- send "&6&lMissioner &8» &eDu har ikke de ting jeg skal bruge!" to {_p}
- command /missionnarkofucntion92389:
- trigger:
- MissionNarko(player)
- function MissionNarko(p:player):
- set {_uuid} to uuid of {_p}
- {MissionNarko::%{_uuid}%} = true:
- send "&6&lMissioner &8» &eDu har allerede klaret denne mission!" to {_p}
- stop
- amount of seeds in {_p}'s inventory > 319:
- amount of wheat in {_p}'s inventory > 63:
- amount of diamond hoe in {_p}'s inventory > 0:
- wait 5 ticks
- remove 320 of seeds from the inventory of {_p}
- remove 64 of wheat from inventory of {_p}
- remove 1 of diamond hoe from inventory of {_p}
- send "&7" to {_p}
- send "&7--------[&e&lNarko-Mission&7]--------" to {_p}
- send "&7" to {_p}
- send "&a&lDu har nu klaret din &e&lNarko&a&l mission!" to {_p}
- send "&7" to {_p}
- send "&7--------[&e&lNarko-Mission&7]--------" to {_p}
- send "&7" to {_p}
- set {MissionNarko::%{_uuid}%} to true
- stop
- send "&6&lMissioner &8» &eDu har ikke de ting jeg skal bruge!" to {_p}
- send "&6&lMissioner &8» &eDu har ikke de ting jeg skal bruge!" to {_p}
- send "&6&lMissioner &8» &eDu har ikke de ting jeg skal bruge!" to {_p}
- on death of a player:
- the attacker = a player
- wait a tick
- add 1 to {kills::%uuid of the attacker%}
- add 1 to {deaths::%uuid of the victim%}
- command /missionkillpoikpghopuopihnds:
- trigger:
- wait 3 tick
- {kills::%uuid of the player%} > 99:
- {klaret.missionkills::%uuid of the player%} isn't set:
- send "&7" to player
- send "&7--------[&4&lKill-Mission&7]--------" to player
- send "&7" to player
- send "&a&lDu har nu klaret din &4&lKill Mission!" to player
- send "&7" to player
- send "&7--------[&4&lKill-Mission&7]--------" to player
- send "&7" to player
- add 3000 to the player's balance
- set {klaret.missionkills::%uuid of the player%} to true
- stop trigger
- send "&6&lMissioner &8» &eDu har allerede klaret denne mission!" to the command sender
- stop
- send "&6&lMissioner &8» &eDu har ikke &6&l100&e kills endnu!" to the command sender
- command /missionreset [<offline player>]:
- permission: Mission.reset
- trigger:
- if arg-1 is not set:
- set {quest.%player%} to 0
- set {sten.%player%} to 0
- set {kills.%player%} to 0
- set {deaths.%player%} to 0
- set {MissionNarko::%{_uuid}%} to false
- set {klaret.missionkills::%uuid of the player%} to false
- send "&c&lDu har reset alle dine missioner!"
- else:
- set {quest.%arg-1%} to 0
- set {sten.%arg-1%} to 0
- set {kills.%arg-1%} to 0
- set {deaths.%arg-1%} to 0
- set {MissionNarko::%{_uuid}%} to false
- set {klaret.missionkills::%uuid of the player%} to false
- send "&c&lDu har reset %arg-1%'s Missioner!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement