Jump to content

Making skripts (LEGIT THIS TIME)


Recommended Posts

Alright, so I posted a while ago about making skripts for people if they asked, and I didn't do them. I will try my best this time to do them, and if they seem too far out of reach I will let you know. Just reply to this topic and I'll try to make them for you.

Currently working on a vs code extension for editing server files

  • yes jeelzzz, i do support this vsc code extension - Reassembly
Link to post
Share on other sites
  • 2 weeks later...
4 hours ago, Archenoxzz said:

can you make me a rank gui skript that anyone can access where you need a pex permission to access each rank?

 

what would this rank gui skript do? like a single pex permission where you can manage people's ranks?

Currently working on a vs code extension for editing server files

  • yes jeelzzz, i do support this vsc code extension - Reassembly
Link to post
Share on other sites

Hey, so I so I did a post of some things that I needed so im going to copy and paste it

 

Can someone help me with a /shop command for skript, and if you would like to, could you also make a /nick command for skript.

For the shop I would only want arrows, all type of wood logs (exept the nether ones), iron, shield, stone tools. 

The trades would be:

16 Arrows = 20 iron

10 wood (logs) = 2 iron

1 Iron = 1 Iron ore (bassicly just smelts it)

1 Shield = 2 Iron

Stone tools = 3 cobble stone pero tool 

 

Hopefully you can help!

Link to post
Share on other sites


Okay so can anybody make a skript where when player kills other player he gets 1 soul that can be stacked up to 50 per sell. When a player goes to spawn and sees a Wither that has red name Demon and right/left clicks on him he gets 10$
As well I need a command "/demon spawn" which spawns the demon if possible

 

Link to post
Share on other sites
On 9/4/2020 at 1:40 AM, jeelzzz said:

what would this rank gui skript do? like a single pex permission where you can manage people's ranks?

I was thinking more along the lines of, anyone can access this gui but you need a pex permission so they can get their own ranks but if you dont have that permission you cant access that rank

 

Link to post
Share on other sites
On 8/20/2020 at 7:19 AM, jeelzzz said:

Alright, so I posted a while ago about making skripts for people if they asked, and I didn't do them. I will try my best this time to do them, and if they seem too far out of reach I will let you know. Just reply to this topic and I'll try to make them for you.

rank manager ( pex ) or ban gui ( advanced bans ) skript! 

Link to post
Share on other sites
  • 3 months later...
command /arena:
	trigger:
		teleport player to {arena}
command /setarena:
	permission: arena.set
	trigger:
		set {arena} to location of player

# Go to the arena and type /setarena and then u can do /arena and it tps u :)

seems like jeelzzz is forgetting his job, welp ill start doing his job for him.

Link to post
Share on other sites
options:
	soulitem: nether star
	soulname: &5Soul
	demonname: &4Demon
	demonentity: wither

on click on entity:
	if {demon::%entity's uuid%} is set:
		add 10 to player's balance # or {balvariable}, just thinking ur using essentials.

on death:
	if victim is a player
	if attacker is a player
	give attacker {@soulitem} named "{@soulname}"
	send action bar "&5You earned a soul from killing %victim%" to attacker

command /demon spawn:
	permission: demon.spawn
	trigger:
		summon {@demonentity} at player named "{@demonname}"
		set {demon::%last spawned entity's uuid%} to 1

i cant make custom item stack limits so it will be 64
hope this helps you

Link to post
Share on other sites
command /shop:
	trigger:
		openShop(player)

function border(user: player, rows: number, borderItem: item):
	format gui slot (numbers from 0 to 8) of {_user} with {_borderItem}
	loop ({_rows} - 2) times:
		format gui slot (((loop-value) * 9), and ((loop-value) * 9) + 8) of {_user} with {_borderItem}
	format gui slot (numbers from ({_rows} - 1) * 9 to (({_rows} - 1) * 9) + 8) of {_user} with {_borderItem}
# https://forums.minehut.com/topic/16760-gui-border-function/?tab=comments#comment-52253

function openShop(p: player):
	open virtual chest with 5 rows named "&7Shop" to {_p}
	border({_p}, 5, black stained glass pane named "&8")
	format gui slot 20 of {_p} with arrow named "&7Utilities" to run:
		openUtilShop({_p})
	format gui slot 22 of {_p} with oak log named "&6Wood" to run:
		openWoodShop({_p})
	format gui slot 24 of {_p} with stone sword named "&8Tools" to run:
		openToolShop({_p})

function openUtilShop(p: player):
	open virtual chest with 3 rows named "&7Utilities" to {_p}
	border({_p}, 3, black stained glass pane named "&8")
	format gui slot 10 of {_p} with 16 arrow named "&fArrow x16" with lore "&220 Iron Ingot" to run:
		buy(16 arrow, {_p}, 20 iron ingot)
	format gui slot 11 of {_p} with shield named "&7Shield x1" with lore "&22 Iron Ingot" to run:
		buy(1 shield, {_p}, 2 iron ingot)
	format gui slot 12 of {_p} with iron ingot named "&fIron Ingot x1" with lore "&21 Iron Ore" to run:
		buy(iron ingot, {_p}, iron ore)
	format gui slot 22 of {_p} with barrier named "&4Back" to run:
		openShop({_p})

function openWoodShop(p: player):
	open virtual chest with 3 rows named "&6Wood" to {_p}
	border({_p}, 3, black stained glass pane named "&8")
	format gui slot 10 of {_p} with 10 oak log named "&6Oak Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 oak log, {_p}, 2 iron ingot)
	format gui slot 11 of {_p} with 10 birch log named "&fBirch Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 birch log, {_p}, 2 iron ingot)
	format gui slot 12 of {_p} with 10 spruce log named "&7Spruce Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 spruce log, {_p}, 2 iron ingot)
	format gui slot 13 of {_p} with 10 jungle log named "&6Jungle Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 jungle log, {_p}, 2 iron ingot)
	format gui slot 14 of {_p} with 10 acacia log named "&cAcacia Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 acacia log, {_p}, 2 iron ingot)
	format gui slot 15 of {_p} with 10 dark oak log named "&8Dark &6Oak Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 dark oak log, {_p}, 2 iron ingot)
	format gui slot 22 of {_p} with barrier named "&4Back" to run:
		openShop({_p})

function openToolShop(p: player):
	open virtual chest with 3 rows named "&8Tools" to {_p}
	border({_p}, 3, black stained glass pane named "&8")
	format gui slot 10 of {_p} with stone sword named "&7Stone Sword x1" with lore "&73 Cobblestone" to run:
		buy(stone sword, {_p}, 3 cobblestone)
	format gui slot 11 of {_p} with stone axe named "&7Stone Axe x1" with lore "&73 Cobblestone" to run:
		buy(stone axe, {_p}, 3 cobblestone)
	format gui slot 12 of {_p} with stone pickaxe named "&7Stone Pickaxe x1" with lore "&73 Cobblestone" to run:
		buy(stone pickaxe, {_p}, 3 cobblestone)
	format gui slot 13 of {_p} with stone shovel named "&7Stone Shovel x1" with lore "&73 Cobblestone" to run:
		buy(stone shovel, {_p}, 3 cobblestone)
	format gui slot 14 of {_p} with stone hoe named "&7Stone Hoe x1" with lore "&73 Cobblestone" to run:
		buy(stone hoe, {_p}, 3 cobblestone)
	format gui slot 22 of {_p} with barrier named "&4Back" to run:
		openShop({_p})

function buy(b: item, p: player, c: item):
	if {_p} has {_c}:
		if {_p} can hold {_c}:
			remove {_c} from {_p}
			send "&aBought &2%{_c}% &afor &2%{_b}%" to {_p}
			give {_b} to {_p}
		else:
			send "&cYour inventory is to full to buy &4%{_b}%" to {_p}
	else:
		send "&cYou need &4%{_c}% &cto buy this!" to {_p}

this actually took like 15 minutes to write
so if u could shout me out that would be nice :)

Link to post
Share on other sites

actually for the border function you could do this
 

function fillborder(c: inventory, i: itemtype):
  set slot ((integers from 0 to 54) where [mod((input + 1),9) or mod(input,9) = 0]), (integers from 0 to 8) and (integers from ((slots of {_c}) - 10) to (slots of {_c})) of {_c} to {_i}

same for tuske or other guis just change set slot  to  format gui slot

Link to post
Share on other sites
2 hours ago, OMGPandaYT1 said:

command /shop:
	trigger:
		openShop(player)

function border(user: player, rows: number, borderItem: item):
	format gui slot (numbers from 0 to 8) of {_user} with {_borderItem}
	loop ({_rows} - 2) times:
		format gui slot (((loop-value) * 9), and ((loop-value) * 9) + 8) of {_user} with {_borderItem}
	format gui slot (numbers from ({_rows} - 1) * 9 to (({_rows} - 1) * 9) + 8) of {_user} with {_borderItem}
# https://forums.minehut.com/topic/16760-gui-border-function/?tab=comments#comment-52253

function openShop(p: player):
	open virtual chest with 5 rows named "&7Shop" to {_p}
	border({_p}, 5, black stained glass pane named "&8")
	format gui slot 20 of {_p} with arrow named "&7Utilities" to run:
		openUtilShop({_p})
	format gui slot 22 of {_p} with oak log named "&6Wood" to run:
		openWoodShop({_p})
	format gui slot 24 of {_p} with stone sword named "&8Tools" to run:
		openToolShop({_p})

function openUtilShop(p: player):
	open virtual chest with 3 rows named "&7Utilities" to {_p}
	border({_p}, 3, black stained glass pane named "&8")
	format gui slot 10 of {_p} with 16 arrow named "&fArrow x16" with lore "&220 Iron Ingot" to run:
		buy(16 arrow, {_p}, 20 iron ingot)
	format gui slot 11 of {_p} with shield named "&7Shield x1" with lore "&22 Iron Ingot" to run:
		buy(1 shield, {_p}, 2 iron ingot)
	format gui slot 12 of {_p} with iron ingot named "&fIron Ingot x1" with lore "&21 Iron Ore" to run:
		buy(iron ingot, {_p}, iron ore)
	format gui slot 22 of {_p} with barrier named "&4Back" to run:
		openShop({_p})

function openWoodShop(p: player):
	open virtual chest with 3 rows named "&6Wood" to {_p}
	border({_p}, 3, black stained glass pane named "&8")
	format gui slot 10 of {_p} with 10 oak log named "&6Oak Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 oak log, {_p}, 2 iron ingot)
	format gui slot 11 of {_p} with 10 birch log named "&fBirch Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 birch log, {_p}, 2 iron ingot)
	format gui slot 12 of {_p} with 10 spruce log named "&7Spruce Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 spruce log, {_p}, 2 iron ingot)
	format gui slot 13 of {_p} with 10 jungle log named "&6Jungle Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 jungle log, {_p}, 2 iron ingot)
	format gui slot 14 of {_p} with 10 acacia log named "&cAcacia Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 acacia log, {_p}, 2 iron ingot)
	format gui slot 15 of {_p} with 10 dark oak log named "&8Dark &6Oak Log x16" with lore "&22 Iron Ingot" to run:
		buy(16 dark oak log, {_p}, 2 iron ingot)
	format gui slot 22 of {_p} with barrier named "&4Back" to run:
		openShop({_p})

function openToolShop(p: player):
	open virtual chest with 3 rows named "&8Tools" to {_p}
	border({_p}, 3, black stained glass pane named "&8")
	format gui slot 10 of {_p} with stone sword named "&7Stone Sword x1" with lore "&73 Cobblestone" to run:
		buy(stone sword, {_p}, 3 cobblestone)
	format gui slot 11 of {_p} with stone axe named "&7Stone Axe x1" with lore "&73 Cobblestone" to run:
		buy(stone axe, {_p}, 3 cobblestone)
	format gui slot 12 of {_p} with stone pickaxe named "&7Stone Pickaxe x1" with lore "&73 Cobblestone" to run:
		buy(stone pickaxe, {_p}, 3 cobblestone)
	format gui slot 13 of {_p} with stone shovel named "&7Stone Shovel x1" with lore "&73 Cobblestone" to run:
		buy(stone shovel, {_p}, 3 cobblestone)
	format gui slot 14 of {_p} with stone hoe named "&7Stone Hoe x1" with lore "&73 Cobblestone" to run:
		buy(stone hoe, {_p}, 3 cobblestone)
	format gui slot 22 of {_p} with barrier named "&4Back" to run:
		openShop({_p})

function buy(b: item, p: player, c: item):
	if {_p} has {_c}:
		if {_p} can hold {_c}:
			remove {_c} from {_p}
			send "&aBought &2%{_c}% &afor &2%{_b}%" to {_p}
			give {_b} to {_p}
		else:
			send "&cYour inventory is to full to buy &4%{_b}%" to {_p}
	else:
		send "&cYou need &4%{_c}% &cto buy this!" to {_p}

this actually took like 15 minutes to write
so if u could shout me out that would be nice 🙂

Hi i need a skripter for my new server. I need only a few skripts if you dont wanna be a Deb ok but can you make a skript if you kill someone you get an emerald and if you attack a player that has a killstreak of 5 you get 2 and if he got killstreak 10 you get 3 always +5.

-killstreak inchat

-kill->reward(on killstreak)

-An scoreboard of your kills prefix servername

Link to post
Share on other sites
  • 5 weeks later...
Guest
This topic is now closed to further replies.


×
×
  • Create New...