may health

  • 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.

player2709

Member
Aug 1, 2017
10
0
0
22
B]Skript Version:2.1.2
Minecraft Version: Spigot 1.8.8[/B]

Full Code:
code_language.skript:
on spawn of spider:
 set rf max hp of last spawned spider to 40

Errors on Reload and from the Console:

code_language.skript:
#!#!
[10:59:03 ERROR]: #!#! [Skript] Severe Error:
[10:59:03 ERROR]: #!#! Could not load demo.sk
[10:59:03 ERROR]: #!#!
[10:59:03 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[10:59:03 ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
[10:59:03 ERROR]: #!#! and check whether this error has already been reported.
[10:59:03 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
[10:59:03 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[10:59:03 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[10:59:03 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[10:59:03 ERROR]: #!#!
[10:59:03 ERROR]: #!#! Stack trace:
[10:59:03 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for player'
[10:59:03 ERROR]: #!#!     at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:242)
[10:59:03 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1247)
[10:59:03 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:969)
[10:59:03 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:209)
[10:59:03 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:164)
[10:59:03 ERROR]: #!#!     at ch.njol.skript.lang.Statement.parse(Statement.java:42)
[10:59:03 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:615)
[10:59:03 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:489)
[10:59:03 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:262)
[10:59:03 ERROR]: #!#!     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155)
[10:59:03 ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[10:59:03 ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[10:59:03 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
[10:59:03 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627)
[10:59:03 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412)
[10:59:03 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375)
[10:59:03 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[10:59:03 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[10:59:03 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
[10:59:03 ERROR]: #!#!
[10:59:03 ERROR]: #!#! Version Information:
[10:59:03 ERROR]: #!#!   Skript: 2.1.2
[10:59:03 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[10:59:03 ERROR]: #!#!   Minecraft: 1.8.8
[10:59:03 ERROR]: #!#!   Java: 1.8.0_131
[10:59:03 ERROR]: #!#!
[10:59:03 ERROR]: #!#! Running CraftBukkit: false
[10:59:03 ERROR]: #!#!
[10:59:03 ERROR]: #!#! Current node: set rf max hp of last spawned spider to 40 (demo.sk, line 2)
[10:59:03 ERROR]: #!#! Current item: null
[10:59:03 ERROR]: #!#!
[10:59:03 ERROR]: #!#! Thread: Server thread
[10:59:03 ERROR]: #!#!
[10:59:03 ERROR]: #!#! End of Error.
[10:59:03 INFO]: [Skript] Successfully reloaded demo.sk.

Addons:
skRayFall 1.9.7

Ingame the Script don't work. Could you help me please to fix the console error?

Thanks for your help :emoji_grinning:
 
You can still set max health in Skript though. However, you would need to heal the spider because the health stays at its original state and not increase until the spider gets healed.
code_language.skript:
set max health of last spawned spider to 40
heal the last spawned spider by 40
 
Status
Not open for further replies.