Afaik you can only add a label where you can put text on. Buttons are not implemented. I wonder how you could possible use buttons within the HUD. I guess keybindings would be more usable.
Posts by username
-
-
What messages/errors do you get? What happens if you run this code?
Just 'it doesn't work' is really not lot of information
Lua doesn't support + by attaching strings together as far as i know. Try .. instead
-
Hi lenko,
ich denke damit wirst du wenig Glück haben.Das würde vorraussetzen, dass die Scripter selbst auch alle deutsch sprechen und das entspricht nunmal nicht der Realität.
Abgesehen davon, spricht nicht jeder deutsch für den ein Script evtl. nützlich wäre. Wenn man sein Script vorstellt dann nimmt man also zwangsläufig die Sprache die die meisten verstehen. -
If you are admin on that server try enter "goto #spawn" (without quotes) on the adminconsole
on most systems you can access the console by hitting the "^" keyThat will teleport you to the spawnlocation. That only works for you if you build your house somewhere nearby that location of cause.
good luck
-
Das Zcript und h0tstuff bieten eine solche funktion. /last
Das mit den Serverregeln per Tastendruck ist afaik noch nicht möglich da man den entsprechenden Befehl auf eine Taste binden müsste.
Man könnte das mit LUA zeitgesteuert tun oder beim Spawn oder so. -
I toyed around with it and rebooted the mashine the server runs on. Somehow it's fixed now but I can't really tell why.
-
As long as you are admin on this server you can use those commands.
Did you add yourself to the admins in the server.properties?If you just fell through the map, why you don't just fly back? (F2)
-
Really nice !
Gives you unimagined possibillities
-
Hi
Everytime I try to place a chest, the client reports that the chest is placed succesfully and plays the sound and so on but in fact, the placement gets aborted.
The chest disappears from the clients hand until I open up the inventory, then I have it back in the hand.
The Server reports this:What I tried so far:
Restarting server and client
Deleted clients inventory in the world db
Craft new chests
disabled all lua scripts on the serverI could place them before.
Does anyone know how to fix this? -
Seems like it could be useful to others, so here you go.
This one helps you to stop foreign players destroying stuff on your server.
It lets the admin manage a list of players who are allowed to build and destroy.
All others can connect, walk around and have a look at your buildings but that's about it.Trustlist
let's you decide who can build and destroy stuff on your server
Only admins are allowed to add/remove players from the trustlistCommands
- /trust <player>
Trusting a player. Player is now able to build and destroy
- /untrust <player>
Removes player from list. Player can't build and destroy anymore
- /trustlist
Prints the entire list of trusted players and the admin who added them
Untrusted players are unable to perform the following actions:
place,remove or destroy blocks,constructions,objects,chests and vegetations
pickup vegetations
drop or take items out of chests
put items into chests
place or destroy terrain (dirt,stone...)
mowing lawn
hitting or killing other players or NPCsOnce you are added to the list the script doesn't affect you anymore.
NOTE: Even admins have to be trusted before they can do stuff, but they are able to add themselves.
Thanks to the guys from (HS) Hessenstrolche server for testing this script!
So if you want to see how it works out, visit them. Their buildungs are worth a visit anywayEnjoy
-
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]
-
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
-
Yeah you're right. Maybe that's it. Can't test that on my own anyway, tho. But i can include it and just put it in here. Maybe red51 sees this and can tell what's wrong here.
-
Hm, well that's something I couldn't test on my own. But it sounds more like a bug in the client @red51 ?
-
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 colonsIt 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] -
Bzgl dem "goto #spawn": ich hab das bei mir gefixt in dem ich mich an den gewünschten spawnpunkt gestellt und mal "mark #spawn" ausgeführt hab Irgendwie scheint das an zwei verschiedenen Orten gespeichert zu werden.
-
LP_Miu: hast du es schonmal mit openjdk-7-jre ausprobiert? Ich hab hier zwar ein 14.04 aber der server läuft einwandfrei.
-
Hi folks,
yay the new update is released and the setposition bug is fixed
I wrote this a few weeks ago when i was trying to build a ranch/farm, and today I could finally see it in action
It's very basic, tho. I couldn't really use it back then so I haven't put much in it yet.
This script let's you catch animals and teleports them to a specified position by hitting them.
I guess this can also become handy with the new hungersystem and the limited amount of pigs/cows nearby.Catch'em alive
provides rudimentary catch animal alive functionality
Command:
- /catch
Usage:
- /catch home
Marks your current position as the "new animal home"
From now on any npc you hit gets teleported to this position.- /catch done
Deletes the "animal home" position and the npc-hitting process is back to normal again.
Feedback or suggestions are welcome
Have fun. -
Auch vollkommen okay, wenns mal länger dauert. Hauptsache Qualität stimmt und da ist die Softwareentwicklung egal in welchem Bereich nie ein kontinuierlicher Prozess. Manchmal schafft man an einem Tag den Progress von einer ganzen Woche und manchmal hängt man 2 Tage an einer abosult bescheuerten NullpointerException :D.
-
Escape mal die Quotes von dem Imagepfad