Solved Simple kitpvp upgrade menu and autokit equip on spawn

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ShadowFaite

Member
Jul 2, 2018
19
0
1
24
Hi, im looking for some help to create a simple GUI kitpvp menu where you can enable and disable autokit and also upgrade each piece of gear for money.
can someone help me? i know how to make the GUI i just dont know how to make things upgradeable and make it so you equip your kit when spawning (autokit)
Thanks
 
Code:
variables:
    {autokit%player%} = true

command /autokit [<text>]:
    trigger:
        if arg-1 is not "Enable" or "Disable":
            send message "&cUsage: /autokit [Enable/Disable]" to player
            stop
        else:
            if arg-1 is "Enable":
                set {autokit%player%} to true
                send message "&aAutoKit is Now Enabled" to player
                stop
            else:
                if arg-1 is "Disable":
                    set {autokit%player%} to false
                    send message "&cAutoKit is Now Disabled" to player
                    stop

on join:
    if {autokit%player%} is true:
        Put youre armor stuff here

I havent tested it out but this should work fine!
 
Code:
variables:
    {autokit%player%} = true

command /autokit [<text>]:
    trigger:
        if arg-1 is not "Enable" or "Disable":
            send message "&cUsage: /autokit [Enable/Disable]" to player
            stop
        else:
            if arg-1 is "Enable":
                set {autokit%player%} to true
                send message "&aAutoKit is Now Enabled" to player
                stop
            else:
                if arg-1 is "Disable":
                    set {autokit%player%} to false
                    send message "&cAutoKit is Now Disabled" to player
                    stop

on join:
    if {autokit%player%} is true:
        Put youre armor stuff here

I havent tested it out but this should work fine!

Thank you!<3 <3 i will try it soon
[doublepost=1612179118,1612178908][/doublepost]How do i do the upgrading part?
 
Thank you!<3 <3 i will try it soon
[doublepost=1612179118,1612178908][/doublepost]How do i do the upgrading part?
here is upgrade 1
*Not tested*
Code:
variables:
  {gearlvl.%player%} = 0

command /upgradegear:
  trigger:
    if {gearlvl.%player%} is 0:
      if player's balance is less than 20: # skript hooks up with vault so i used player's balance assuming ur using vault for economy
        send "&4You don't have enough money to upgrade your gear. You need &6$&e20&c."
      else if player's balance is greater or equal to 20:
        set {gearlvl.%player%} to 1
        send "&a&lYou've upgraded your gear. Re-equip your kit to get your upgraded gear."

on join:
  if {autokit%player%} is true:
    if {gearlvl.%player%} is 0:
      # put armor on and ya im too lazy to do it
    else if {gearlvl.%player%} is 1:
      # ^^^^^^^^^

@Marc i am tryna help people
this is a war you skript export

ALSOOO yeah just copy paste my code and setup prices as I didn't know wat u wanted it to be
 
here is upgrade 1
*Not tested*
Code:
variables:
  {gearlvl.%player%} = 0

command /upgradegear:
  trigger:
    if {gearlvl.%player%} is 0:
      if player's balance is less than 20: # skript hooks up with vault so i used player's balance assuming ur using vault for economy
        send "&4You don't have enough money to upgrade your gear. You need &6$&e20&c."
      else if player's balance is greater or equal to 20:
        set {gearlvl.%player%} to 1
        send "&a&lYou've upgraded your gear. Re-equip your kit to get your upgraded gear."

on join:
  if {autokit%player%} is true:
    if {gearlvl.%player%} is 0:
      # put armor on and ya im too lazy to do it
    else if {gearlvl.%player%} is 1:
      # ^^^^^^^^^

@Marc i am tryna help people
this is a war you skript export

ALSOOO yeah just copy paste my code and setup prices as I didn't know wat u wanted it to be

War it shall be!
 
Thank you guys very much!<3 i will try something out.
also is it anyway possible to like make every single peice of gear upgradable? like you start with 8 arrows, the first upgrade 16 and so on with each piece?
 
Ofc it is! I just have no energy to write the code for it
 
can you give a small example of any sorts or is there any other posts helping with this so i can check it out. you guys helped me alot already and im very thankful! <3 <3 <3
 
can you give a small example of any sorts or is there any other posts helping with this so i can check it out. you guys helped me alot already and im very thankful! <3 <3 <3
im recovering from something so i canbt be asked to do more of these just doit by urself
Code:
variables:
  {arrowlvl.%player%} = 0
  {bow.%player%} = 0
  {armour.%player%} = 0
  {sword.%player%} = 0
  {all.%player%} = 0
 
command /upgradegear [<text>]:
  trigger:
    if arg-1 is not set:
      send "&eUsage: &6/upgradegear &f<gear type, type list for the list of types>"
    else:
      if arg-1 is "list":
        send "&6The ID is what you need to type into the command in order for this to work"
        send "1) Arrow count &cID: &earrowcount"
        send "2) Bow Power &cID: &ebow"
        send "3) Armour &cID: &earmor"
        send "4) Sword &cID: &eweapon"
        send "&45) All &cID: &eall"
      else if arg-1 is "arrowcount":
        if {arrowlvl.%player%} is 0:
          if player's balance is less than 20: # skript hooks up with vault so i used player's balance assuming ur using vault for economy
            send "&4You don't have enough money to upgrade your gear. You need &6$&e20&c."
        else if player's balance is greater or equal to 20:
        set {arrowlvl.%player%} to 1
        send "&a&lYou've upgraded your arrow count. Re-equip your kit to get your upgraded gear."
 
on join:
  if {autokit%player%} is true:
    if {arrowlvl.%player%} is 0:
      # put armor on and ya im too lazy to do it
    else if {arrowlvl.%player%} is 1:
      # ^^^^^^^^^


im sorry
 
Status
Not open for further replies.