Countdown
#21
(01-13-2014, 04:47 AM)STR_Warrior Wrote: You mean custom names for items? No MCServer doesn't support that yet.

Okey. It is hard to implement it? I would be very nice.

How can i get the items name?
Player:GetInventory():GetEquippedItem():???

And is it possible to create a custom inventory and add there all players with skulls. And when i click on the skull you will be teleported to the player. How can i do this?
But it isn't very good when the skull can't have the name of the player.. Sad
Reply
Thanks given by:
#22
Quote:Okey. It is hard to implement it? I would be very nice.
I've looked around a little bit, but I have no idea how to send it to the client. I can't find anything about a custom item name in the protocol.

Quote:How can i get the items name?
You get the item the player has equipped using cPlayer:GetEquippedItem()

Quote:And is it possible to create a custom inventory....
You could possible use the cLuaWindow
Reply
Thanks given by:
#23
@STR_Warrior
Okey.

Why :: and now GetInventory()? And return this the name? Have you a example?

Okey, i will try it.
Reply
Thanks given by:
#24
(01-13-2014, 05:42 AM)daniel0916 Wrote: Why :: and now GetInventory()?
Sorry that was for C++. I've changed it.

Quote:And return this the name? Have you a example?
No it doesn't. If you want the name you can use:
local ItemName = ItemToString(Player:GetEquippedItem())
Reply
Thanks given by:
#25
(01-13-2014, 05:45 AM)STR_Warrior Wrote:
local ItemName = ItemToString(Player:GetEquippedItem())

Return this "Fireball" or "E_ITEM_FIREBALL"?
Reply
Thanks given by:
#26
it returns "Fireball"
Reply
Thanks given by: daniel0916
#27
I asked a friend for the custom item name. He is often working with protocols.
He send me this link: http://wiki.vg/Slot_Data
Do the link help you?
Reply
Thanks given by:
#28
I've seen that page many times but sadly I can't find anything about a custom name ;(
Reply
Thanks given by:
#29
http://minecraft.gamepedia.com/Player.da...Properties
Probably.
Reply
Thanks given by: NiLSPACE
#30
I think I have it. I'm testing now. Lets hope it doesn't crash the server or the client Wink
Reply
Thanks given by: daniel0916




Users browsing this thread: 8 Guest(s)