Jump to content

pete_parker

Member
  • Posts

    33
  • Joined

  • Last visited

Posts posted by pete_parker

  1. on damage:
    	if attacker is holding a any sword:
    		if "%region at attacker%" contains "boxing":
    			attacker is a player
    			add 1 to {combo::%attacker%}
    			broadcast "&c&l%attacker%'s combo:&a&l %{combo::%attacker%}%"
    			if {combo::%attacker%} is greater than 99:
    				broadcast "&c&l%attacker% has reached 100 and won !"
    				set {combo::%attacker%} to 0
    	if attacker is holding a gold sword:
    		add 99 to {combo::%attacker%}
    
    
    on death:
    	set {combo::%attacker%} to 0

    So this is my code so far 
    ( if anything seems off it isnt the gold sword if just for debugs)

    So i need it to kill the victim something like

     

    on damage:
    	if attacker is holding a any sword:
    		if "%region at attacker%" contains "boxing":
    			attacker is a player
    			add 1 to {combo::%attacker%}
    			broadcast "&c&l%attacker%'s combo:&a&l %{combo::%attacker%}%"
    			if {combo::%attacker%} is greater than 99:
    				broadcast "&c&l%attacker% has reached 100 and won !"
    				set {combo::%attacker%} to 0
    				// kill victim 
    	if attacker is holding a gold sword:
    		add 99 to {combo::%attacker%}
    
    
    on death:
    	set {combo::%attacker%} to 0

    Any help on this?

  2. 4 hours ago, AgentGamerPro said:

    try "smaller than"

    also checking if its smaller than 2 minutes then checking if its greater than 2 minutes it probably not gonna work.

    Or you can do this instead

     

    command /refill:
    	permission: pot.refill
    	permission message: no perms lol
    	cooldown: 2 minutes
    	cooldown message: &cWait %remaining time% &cbefore using this command again!
    	trigger:
    		set {_gui} to a new chest inventory with 6 row with name "Pot refill" 
    		set {_filler} to 0
    		loop 54 times:
    			set slot {_filler} of {_gui} to splash potion of healing
    			add 1 to {_filler}
    		open {_gui} to player

     

    Thank you for trying to help 
    but i got it lol 
    my error was where it said
     

    if {_waited} is less then a 2 minutes:

    instead of "then a" you put "than 2 mins"

    then i fixed it up and here is the full code : 
     

    command /refill:
    	permission: pot.refill
    	permission message: no perms lol
    	trigger:
    		set {_waited} to difference between {refill.%player%.lastused} and now 
    		if {_waited} is less than 2 minutes:
    			send "&7&l[&4&l ✟&7&l ]&c Wait &d&l%difference between 2 minutes and {_waited}%&c til using again"
    			stop
    			
    		
    		
    		set {_filler} to 0
    		set {_gui} to a new chest inventory with 6 row with name "Pot refill"
    		loop 54 times:
    			set slot {_filler} of {_gui} to splash potion of healing
    			add 1 to {_filler}
    		open {_gui} to player
    		set {refill.%player%.lastused} to now
    

     

    • Like 2
  3. So this is my gui and my cooldown

     

    command /refill:
    	permission: pot.refill
    	permission message: no perms lol
    	trigger:
    		set {_waited} to difference between {a_use.%player%.lastused} and now 
    		if {_waited} is less then 2 minutes:
    			send "&7&l[&4&l ✟&7&l ]&c Wait %difference between 2 minutes and {_waited}% til using again"
    			if {_waited} is greater then 2 minutes:
    				set {_gui} to a new chest inventory with 6 row with name "Pot refill" 
    				set {_filler} to 0
    				loop 54 times:
    					set slot {_filler} of {_gui} to splash potion of healing
    					add 1 to {_filler}
    				open {_gui} to player
     		
    			
    			

    see idk why it wont work , but it might becuase im to tired  i just need to someone to proof check my work 


    Error:
    image.png.d0f8b32f160edd5cc38a819eef030025.png


    Plugins :

    image.png.f8791d54ebe0195144e2837f4ddb4993.png


    Ik holograms isnt working but isnt the problem atm , idk what i should do diffly 

  4. Okay so im making my server networks , and i need some help on to run a player to the hub


    Video : https://imgur.com/a/7nj2NW7

    So basically rn i have it running "/kick %player%" which just brings me to one of my other servers 

     

    I tired this skript :
     


     

     

    command /hubtwo:
        permission: hub.lol
        permission message: no perms LOSER
        trigger:
            execute console command "sudo %player% hub"

    which didnt work , guess /sudo doesnt work for /hub either 

    Any help on this ? im dumbfouned on what to do 


     

  5. on place of obsidian:
      if "%region at player%" contains "cpvp":
        set {blockplace} to obsidian
        set {pos} to location of placed block
        broadcast "%{pos}% lol"
        wait 10 seconds
        set event-block to air 

    so im trying to get it where it would broadcast the cords of a fight in chat ? but idk how i would do so , any help would be great !

  6. On 9/15/2021 at 8:35 PM, emopediaMC said:

    this is how i would do it
     

    on place of obsidian:
     	if "%region at player%" contains "cpvp":
    		set {blockplace} to obsidian
    	if {blockplace} is not set:
    		cancel event

    this should work, however, you never provided any context on what you wanted to do 

    kinda worked look below for video :


    also some context on this :
    Making a region for cpvp only , so say my west side of my map is all cpvp , but my east side of 
    the map is no cpvp , so in the west side of the map you can only place obi down , bc its a hcf and you cant normally place 
    obi around , but in cpvp you need to place obi , so idk i need help with this , idk why its not working , i only have some knowledge of skript , so just asking around

     

    here is my code now i kinda fix it up to represent how i want it to work , but it wont 
    cancel the block place outside the region let alone broadcast "working2"
     

    on place of obsidian:
      if "%region at player%" contains "cpvp":
        set {blockplace} to obsidian
        broadcast "working"
        wait 10 seconds
        set event-block to air 
      if {blockplace} is not set to obsidian:
        cancel event
    	broadcast "working2"

    Video of it not working right: 
    https://imgur.com/sc7EhM8

  7. On 9/14/2021 at 11:27 PM, itsKimo said:

    player is holding obsidian must have a colon after it (also indent it). I edited the quote 

    nah it doesnt need it like how in this skript 

    on place :
    	player is holding tnt 
    	cancel event

    snice their is no "if" statement it doesnt need a colon

  8. Welcome to one of the next biggest hits and never seen before on minehut ! 
    Hcfdupe , a cooldown duping server , with insane pvp ! 
    What we have to offer 


    Custom keydrop events ! 
    Payouts for top kills ! 
    Crates ! 
    In game events ! 
    Npc shops ! 
    Dtr system of facitons
    Cooldown duping ! 
    Hardcore Factions !
    Deathban ! 
    Very reablie staff 
    And much more !

    Where are in need of devs , we pay our devs for their help ,
    So if you wanna become a full time dev for us we can pay you
    If you want ! 


    We need a lot more and looking to release this july , we just need a dev to fix up some of our skripts , and make some new ones that we need any dev will get paided if so wanted , payment can be discuss 

    For anyone wondering if they can become a builder / dev / mod / staff / admin or anything else please either reply to this post or 

    Dm me on discord : Scoobs#4238

    Or feel free to join the server ! 

    https://discord.gg/Cxe4gS2DHb

  9. command /disableores [<text>]:
      permission: hcf.admin.ore
      permission message: &cYou lack permission!
      trigger:
        if arg 1 is "true":
          if {ore} is true:
            send "&7Disableores is already &aEnabled"
        else:
          set {ore} to true
          send "&7Disableores is &aEnabled"
        if arg 1 is "false":
          if {oreregen} is false:
            send "&7Disableores is already &aDisabled"
        else:
          set {oreregen} to false
          send "&7Disableores is &aDisabled"
        if arg 1 is not set:
          send "<enable/disable>"
    on place:
      if {ores} is true:
        player is holding ancient debris
        cancel event
        send "&e&l(!) &eThis item cannot be placed"
    
      

    So if i run this command this happends 

    https://imgur.com/a/Vz9Get8

    Any help on this?

     

  10. Ok , i need help with these 2 plugins, i cant find a way to block/blacklist for when they get tag , i look over the config , i look it up online and it said to look for "blocked commands" which i can find no sight of, 
    Okay 2nd problem is with worldgaurd and combatlogx , as soon as they get tag how would i make it where they can not enter a region while tag , 
    ty for any help or suggestions 
     

  11. 3 hours ago, StarBunnie said:

    Wait what do you want to achieve here? Just send a message to a player?

    command /test [<text>]:
     trigger:
      send "%arg 1%"
      send "%arg 1%" to console
      send "%arg 1%" to all players
      make console execute command "/%arg 1%"

    Here are some examples

    nah i was just gonna add a /prefix command , 
    something like 

    command /prefix [<text>]
    	trigger:
      		excute console commmand "/lp user %player% meta setprefix %arg1%"
      		

     

  12. on region enter:
    	wait 1 tick
    	if "%region at player%" contains "Spawn":
    		send "&eSpawn &7&l( Pvp off )"
    	if "%region at player%" contains "eastroad":
    		send "&eEastRoad &7&l(Safe)"
    	if "%region at player%" contains "northroad":
    		send "&eNorthRoad &7&l(Safe)"
    	if "%region at player%" contains "Westroad":
    		send "&eWestRoad &7&l(Safe)"
    	if "%region at player%" contains "southroad":
    		send "&eSouthRoad &7&l(Safe)"
    	if "%region at player%" contains "nobuild":
    		send "&eNo build &4&l(Danger)"

    So , as you see if you enter a region , it shows you what region you enter , so i am trying to get it where if your not in one of those regions then it will send " &eWasteland &4&l(Danger) " . Very new to skript so wondering if anyone could help 

  13. command /dupe:
    	cooldown: 180 seconds
    	cooldown message: &4&lHfc&3&o&lX&f&lDupe > &7 You can use this command in &d%remaining time%!
    	trigger:
    		if player's held item is air:
    			send "&4&lHfc&3&o&lX&f&lDupe > &7NO DUPING AIR ! "
    			cancel the cooldown
    			stop
    		if player's held item is bedrock:
    			send "&4&lHfc&3&o&lX&f&lDupe > &7This item is &0&l&oblacklisted ! "
    			cancel the cooldown
    			stop
    		if player's held item is mob spawner:
    			send "&4&lHfc&3&o&lX&f&lDupe > &7This item is &0&l&oblacklisted ! "
    			cancel the cooldown
    			stop
    		set {_item} to player's tool
    		give {_item} to player
    		send "&4&lHfc&3&o&lX&f&lDupe > &6&lDuplicated &e&l%player's tool%&6&l!" to player

    As you see a basic dupe skript, and so far my "blacklist" is 

    		if player's held item is bedrock:
    			send "&4&lHfc&3&o&lX&f&lDupe > &7This item is &0&l&oblacklisted ! "
    			cancel the cooldown
    			stop
    		if player's held item is mob spawner:
    			send "&4&lHfc&3&o&lX&f&lDupe > &7This item is &0&l&oblacklisted ! "
    			cancel the cooldown
    			stop

    wondering if i could make it where if i held an item out , i could /blacklist , which it would add it to the blacklist list , Can anyone help me with this one?

  14. 34 minutes ago, _Tarna_ said:

    If its a short cooldown, just add a cooldown option to the command

    
    command /cake:
    	cooldown: 10 seconds
    	cooldown message: You can use this command again in %remaining time%
    	trigger:
    		give player cake

     

    Wait , how do i make it where it would be where if someone /dupe a blacklisted item , it would cancel the cooldown event?

  15. command /dupe:
        trigger:
            if player's held item is air:
                send "&4&lCRAZY&f&lCLAIM > &3NO DUPING AIR ! "
                stop
            if player's held item is bedrock:
                send "&4&lCRAZY&f&lCLAIM > &7This item is &0&l&oblacklisted ! "
                stop
            if player's held item is mob spawner:
                send "&4&lCRAZY&f&lCLAIM > &7This item is &0&l&oblacklisted ! "
                stop
            set {_item} to player's tool
            give {_item} to player
            send "&4&lCRAZY&f&lCLAIM > &6&lDuplicated &e&l%player's tool%&6&l!" to player

    title 

×
×
  • Create New...