Jump to content
Shako

Get Monster Name

Recommended Posts

Hello, I was wondering if there is a function for getting the monster's name.

 

Like GetItemName, where it gets the name of the item from ItemID

Is there the same thing for monsters?


logo-big.png   logo.png

                                   Sunny Go! Online                                                                    pko.host                                                 

Share this post


Link to post
Share on other sites
3 minutes ago, Angelix said:

If I remember correctly, it's the same way you get a player's name, that's if you have their role.

 

GetChaDefaultName ( monster ) only works when you have the monster role, that's true, but something like

 

GetChaDefaultName ( 333 ) won't work in getting a monster's name. However, GetItemName ( 333 ) does.

 

I'm trying to figure out how to get that same thing as the GetItemName >.<


logo-big.png   logo.png

                                   Sunny Go! Online                                                                    pko.host                                                 

Share this post


Link to post
Share on other sites

local cha_name = GetChaDefaultName(role)


Share this post


Link to post
Share on other sites

First of all define "dead"

local monstername = GetChaDefaultName(dead) 

if you're making a function to kill blahblah and u want to see da Monster name,use that

Share this post


Link to post
Share on other sites

This is what i was talking about:

 

 


logo-big.png   logo.png

                                   Sunny Go! Online                                                                    pko.host                                                 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...