Fargariel

Initiate
I just wanted to know when Artifact drops, from what and to whos backpack. But... item.name is null, when creating i have only LabelNumber. Any idea how to get names on server side? (maybe some global solution)
 
The LabelNumber corresponds to the entry in the cilloc file. You'd have to read (or hook into something that can read) the file, that'll return the name.
Else you can go to the item in the script and set the names of all your artifacts... but that causes issues with localization's.

At least that's how I understand it.
 
that you could use item.GetType() to get the classname of the item

Code:
typeof(item).Name// class name, no namespace
typeof(item).FullName// namespace and class name
typeof(item).Namespace// namespace, no class name
item.GetType().Name//same as Name above.
item.GetType().FullName//same as FullName above.
 
You are right, for some reason I thought that GetType() would be defaulting to Name not FullName. So in this instance .Name would be the best option
 
When you get the "FullName" from the type you are actually getting the .ToString() which is kind of what that defaults to, the FullName :D
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back