That's curious ... Did you got any console error when it's occuring ?
Which version did you use ? The Git-Hub one or the MediaFire one ?
That's curious ... Did you got any console error when it's occuring ?
Which version did you use ? The Git-Hub one or the MediaFire one ?
Yeah the script is throwing errors and kicks the client
Somthing seems to be wrong with target.setPlayerHunger(100);
Edit: Got it.
problem was dots and colons
It works this way:
[lua]function heal(target)
local tName = target:getPlayerName()
target:setPlayerHealth(100);
target:setPlayerHunger(100);
target:setPlayerThirst(100);
target:sendTextMessage("You've been healed !")
end[/lua]
Thanks dude, that's such a stupid error of mine
Git-Hub updated, MediaFire link updated to !
Moin,
first a thank you for that nice script. Helps me a lot...
Yesterday i was downloading the script from Github and testing it on a single player game with the RW version 0.5.3.1 (Steam)
Everytime, when i enter the command /ahelp there pop up an error:
You're sure you took the version on the main branch of the Git ? I'll perform some test as soon as possible !
Ups, my mistake - i'm sorry.
Maybe it was already too late, yesterday evening .
I'm not so familiar with Github.
So i have to download file by file on Github -> zabka14/Zcript-RisingWorld?
No no
You go there : https://github.com/zabka14/Zcript-RisingWorld
On the middle-top left of the screen there's a button Branch : master you have to select the master one, not any of the two others.
When you did so, on the right of the screen, somewhere at the botom is a button called "Download as ZIP"
And here you go
Have a look at the right site of the github page. "Download as Zip" is what you want
Well you can also download it file by file but...
Edit: zabka was faster
Mwhahahaha :evil:
I'll perform some test tonight or tomorow Klabautermann
Ok, got it - thx
But still the same error message. Now i was using my second computer as RW server (LAN).
New Server installation and fresh downloaded script.
The error message in the DOS BOX (Server):
QuoteDisplay More[LUA][Zcript] 02/12/15 15:27:11 Klabautermann: /ahelp
Feb 12, 2015 3:27:11 PM com.jme3.network.base.KernelAdapter reportError
SCHWERWIEGEND: Unhandled error, endpoint:NioEndpoint[1, java.nio.channels.SocketChannel[connected local=/10.50.30.55:4255 remote=/10.50.30.25:50316]], context:i.d@1cb399d
org.luaj.vm2.LuaError: @C:\Program Files\Rising World\scripts\Zcript-RisingWorld-master/script.lua:55 bad argument: userdata expected, got string
at org.luaj.vm2.LuaValue.argerror(Unknown Source)
at org.luaj.vm2.LuaValue.checkuserdata(Unknown Source)
at org.luaj.vm2.lib.jse.JavaMethod.call(Unknown Source)
at org.luaj.vm2.LuaClosure.execute(Unknown Source)
at org.luaj.vm2.LuaClosure.onInvoke(Unknown Source)
at org.luaj.vm2.LuaClosure.invoke(Unknown Source)
at lua.ScriptEventList.triggerEvent(SourceFile:20)
at lua.ScriptEventManager.triggerEvent(SourceFile:32)
at server.listeners.a.a(SourceFile:98)
at server.listeners.a.messageReceived(SourceFile:69)
at com.jme3.network.base.MessageListenerRegistry.messageReceived(MessageListenerRegistry.java:73)
at com.jme3.network.base.DefaultServer.dispatch(DefaultServer.java:282)
at com.jme3.network.base.DefaultServer$Redispatch.messageReceived(DefaultServer.java:569)
at com.jme3.network.base.DefaultServer$Redispatch.messageReceived(DefaultServer.java:565)
at com.jme3.network.base.KernelAdapter.dispatch(KernelAdapter.java:183)
at com.jme3.network.base.KernelAdapter.createAndDispatch(KernelAdapter.java:237)
at com.jme3.network.base.KernelAdapter.run(KernelAdapter.java:280)
Feb 12, 2015 3:27:11 PM server.listeners.c connectionRemoved
INFORMATION: Delete Client ID: 0
[LUA][Zcript] 02/12/15 15:27:11 UPDATE `lastlog` SET `disconnect_at` = strftime('%s', 'now') WHERE `id` IN (SELECT `id` FROM `lastlog` WHERE `ip` = '/10.50.30.25:50316' ORDER BY `id` DESC LIMIT 1);
[LUA][Zcript] 02/12/15 15:27:11 ** Klabautermann - disconnected
Zabka: thx and take your time
Same problem as before.
Edit the Script line 55 from
[lua]event.player.sendTextMessage("[#00FFCC]/heal [#00CC88] <player ID or name>");[/lua]
to:
[lua]event.player:sendTextMessage("[#00FFCC]/heal [#00CC88] <player ID or name>");[/lua]
Looks good, on my test server it's working fine now.
Thx
edit: same on the Klabautermann - Server. Working good now...
Okay, I fixed this on the GitHub Thanks again username
Hi, i got the script working but how do u make myself admin? tried to do an admin command and it says im not admin!!
any help will be awesome
For the bug you reported me on your MP, I'll check ASAP
Good script
How to install it?
Download is a zip file, which file i must copy in folder scripts?
If you extract the Zcript by zabka from the zip file and then place it in your script files in your server host this should work
J'aime votre travail! C'est drôle de voir que les gens peuvent être so intelligent
Thanks
Quick update : I will soon work again on the script ! For now, I'm very busy at work
Don’t have an account yet? Create a new account now and be part of our community!