Aller au contenu

Messages recommandés

  • 3 semaines après...
Posté(e)

Hey j'ai fait ca asser vite et j'ai pas vraiment tester haha donc si ses pas se que tu veux ou marche pas dit le hey hey

options:
	ErrorClaimed: &7&l(&6Guild&7&l)> &eThis is already claimed by %{GuildClaim::%{_chunk}%}%
	ErrorBalance: &7&l(&6Guild&7&l)> &eYou dont have enough money you need 500$
	Alreadyexist: &7&l(&6Guild&7&l)> &eA guild with this name already exist
	NotInGuild: &7&l(&6Guild&7&l)> &eYou're not in a guild /guild create <name>
	CantBreakThere: &7&l(&6Guild&7&l)> &eYou cannot break in a claimed land
	CantPlaceThere: &7&l(&6Guild&7&l)> &eYou cannot place in a claimed land
	Cantdothis: &7&l(&6Guild&7&l)> &eYou cannot do this action in a claimed land
	Claimed: &7&l(&6Guild&7&l)> &eYou've claimed this land for 500$


command /guild [<text>] [<text>] [<text>]:
	trigger:
		if arg-1 is "claim":
			if {Guild::%player%} is set:
				set {_guild} to {Guild::%player%}

				set {_chunk} to chunk at location of player
				if {GuildClaim::%{_chunk}%} is set:
					send "{@ErrorClaimed}"
				else:
					if player's balance is bigger than 499:
						send "{@Claimed}"
						remove 500 from player's balance
						set {GuildClaim::%{_chunk}%} to {_guild}
					else:
						send "{@ErrorBalance}"
			else:
				send "{@NotInGuild}"
		else if arg-1 is "create":
			if arg-2 is set:
				set {_guild} to arg-2
				if {GuildNamelist::*} contains "%{_guild}%":
					send "{@Alreadyexist}"
				else:
					add {_guild} to {GuildNamelist::*}
					set {Guild::%player%} to {_guild}
		else if arg-1 is "Delete":
			if {Guild::%player%} is set:
				loop {GuildClaim::*}:
					if loop-value is "%{Guild::%player%}%":
						delete {GuildClaim::%loop-index%}
				delete {Guild::%player%}
				remove {Guild::%player%} from {GuildNamelist::*}




on break:
	set {_chunk} to chunk at location of player
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@CantBreakThere}"

on place:
	set {_chunk} to chunk at location of player
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@CantBreakThere}"

on interact:
	set {_chunk} to chunk at location of player
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@Cantdothis}"
on rightclick on a chest:
	set {_chunk} to chunk at location of player
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@Cantdothis}"
on rightclick on a hopper:
	set {_chunk} to chunk at location of player
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@Cantdothis}"
on rightclick:
	set {_chunk} to chunk at location of player
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@Cantdothis}"


on rightclick on block:
	set {_chunk} to chunk at location of player
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@Cantdothis}"

 

Posté(e)
options:
	ErrorClaimed: &7&l(&6Guild&7&l)> &eThis is already claimed by %{GuildClaim::%{_chunk}%}%
	ErrorBalance: &7&l(&6Guild&7&l)> &eYou dont have enough money you need 500$
	Alreadyexist: &7&l(&6Guild&7&l)> &eA guild with this name already exist
	NotInGuild: &7&l(&6Guild&7&l)> &eYou''re not in a guild /guild create <name>
	CantBreakThere: &7&l(&6Guild&7&l)> &eYou cannot break in a claimed land
	CantPlaceThere: &7&l(&6Guild&7&l)> &eYou cannot place in a claimed land
	Cantdothis: &7&l(&6Guild&7&l)> &eYou cannot do this action in a claimed land
	Claimed: &7&l(&6Guild&7&l)> &eYou''ve claimed this land for 500$


command /guild [<text>] [<text>] [<text>]:
	trigger:
		if arg-1 is "claim":
			if {Guild::%player%} is set:
				set {_guild} to {Guild::%player%}

				set {_chunk} to chunk at location of player
				if {GuildClaim::%{_chunk}%} is set:
					send "{@ErrorClaimed}"
				else:
					if player's balance is bigger than 499:
						send "{@Claimed}"
						remove 500 from player's balance
						set {GuildClaim::%{_chunk}%} to {_guild}
					else:
						send "{@ErrorBalance}"
			else:
				send "{@NotInGuild}"
		else if arg-1 is "create":
			if arg-2 is set:
				set {_guild} to arg-2
				if {GuildNamelist::*} contains "%{_guild}%":
					send "{@Alreadyexist}"
				else:
					add {_guild} to {GuildNamelist::*}
					set {Guild::%player%} to {_guild}
		else if arg-1 is "Delete":
			if {Guild::%player%} is set:
				loop {GuildClaim::*}:
					if loop-value is "%{Guild::%player%}%":
						delete {GuildClaim::%loop-index%}
				delete {Guild::%player%}
				remove {Guild::%player%} from {GuildNamelist::*}




on break:
	set {_chunk} to chunk at location of event-block
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@CantBreakThere}"

on place:
	set {_chunk} to chunk at location of event-block
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@CantBreakThere}"

on interact:
	set {_chunk} to chunk at location of player
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@Cantdothis}"
on rightclick on a chest:
	set {_chunk} to chunk at location of event-block
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@Cantdothis}"
on rightclick on a hopper:
	set {_chunk} to chunk at location of event-block
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@Cantdothis}"
on rightclick:
	set {_chunk} to chunk at location of player
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@Cantdothis}"


on rightclick on block:
	set {_chunk} to chunk at location of event-block
	if {GuildClaim::%{_chunk}%} is set:
		if {GuildClaim::%{_chunk}%} is {Guild::%player%}:
			stop
		else:
			cancel event
			send "{@Cantdothis}"



je metais tromper a deux trois endroit tk haha

  • J'aime 1
  • 1 mois après...
Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.