PvPingPets [Skript Code Help]

  • 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 community!

    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.

UltimateGames

Member
Feb 1, 2017
2
0
0
So why aint this working, Making a pets skript the same as PvPingMC's.


#-------------------------- < Cow Pet > --------------------------
on rightclick:
loop all items in player's inventory:
if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":
if {cowCooldown.%player%} is false:
set {cowCooldown.%player%} to true
remove nausea from player
remove blindness from player
remove slowness from player
remove mining fatigue from player
remove wither from player
message "&e&l(!) &eYou have removed all debuffs using your &6Cow Pet!" to player
wait 5 seconds
set {cowCooldown.%player%} to false

on rightclick:
loop all items in player's inventory:
if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":
remove 1 skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦" from player
give 1 skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&a&l¦¦¦¦&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦" to player
code_language.skript:
#-------------------------- < Cow Pet > --------------------------
on rightclick:
    loop all items in player's inventory:
        if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":
            if {cowCooldown.%player%} is false:
                set {cowCooldown.%player%} to true
                remove nausea from player
                remove blindness from player
                remove slowness from player
                remove mining fatigue from player
                remove wither from player
                message "&e&l(!) &eYou have removed all debuffs using your &6Cow Pet!" to player
                wait 5 seconds
                set {cowCooldown.%player%} to false

on rightclick:
    loop all items in player's inventory:
        if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":
            remove 1 skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦" from player
            give 1 skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&a&l¦¦¦¦&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦" to player
 
Do you get any errors? which portion of it is and isn't working?
 
code_language.skript:
[06:34:44] [Client thread/INFO]: [CHAT] [Skript] Reloading PvPingPets.sk...
[06:34:44] [Client thread/INFO]: [CHAT] 'offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦"' is not a type (PvPingPets.sk, line 104: if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":')
[06:34:45] [Client thread/INFO]: [CHAT] 'offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦"' is not a type (PvPingPets.sk, line 118: if loop-item is a skull of "MHF_Cow" parsed as offlineplayer named "&6&lCow Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":')
[06:34:45] [Client thread/INFO]: [CHAT] 'offlineplayer named "&6&lIron Golem Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦"' is not a type (PvPingPets.sk, line 125: if loop-item is a skull of "MHF_Golem" parsed as offlineplayer named "&6&lIron Golem Pet &7[LVL 0]" with lore "&f||&e&lPASSIVE||&7Removes any debuff on use of pet||&f||&e&lLEVEL: &e0||&e&lEXP: &e0 / 100||&c&l¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦":')
[06:34:45] [Client thread/INFO]: [CHAT] [Skript] Encountered 3 errors while reloading PvPingPets.sk!
[doublepost=1502940060,1502775383][/doublepost]Bump
 
Status
Not open for further replies.