GreenMagic793 Posted September 29, 2015 Posted September 29, 2015 Hey guys, Is it possible to create an item that has a player's character ID number in it, or even account ID number? I don't want it to have the player's name, just their ID number. Is there code for this? Thanks. Bumpidy bump bump bump. Quote
Stolao Posted September 29, 2015 Posted September 29, 2015 Can you tell me what your trying to do? You want the item to have like one character I'd in it regardless of who finds the item, or like player a gets it it has his Id but player B finds it, it will have his Id, and I'd stays even if stored? If its the 2nd one i can only think of rwo ways, name the item the convert that to the character id via script. Or replace the items uid with the characters id Quote
GreenMagic793 Posted September 29, 2015 Author Posted September 29, 2015 I'm trying to make it so that when a player talks to a particular NPC it will give them an item that has their character or account ID (doesn't matter which) either in the name of the item or in the item's description. So for example, if you had a character named Bob who's ID was 1500044, and he talks to this NPC, it will give him an item called "Card 1500044". Or, even better, if it just said 1500044 in the item's description and was just called "Card". Quote
Stolao Posted September 29, 2015 Posted September 29, 2015 No I dont think that's quite possible (unless I'm mistaken), I'd say just "name item" the card like skulls or potions. So it would be Bob's Card. Then use another NPC or func to convert that back to a I'd, of you didn't want the name to show use the uid and convert that, but that might have issues unforseen as I've never played with the uids. Hop on https://discord.gg/0XP9qqhUV9FqRCA5I can voice chat you through it if you like Quote
GreenMagic793 Posted September 29, 2015 Author Posted September 29, 2015 That's okay, I think I got the answer I was looking for. Naming the item is easy and having an NPC to return the ID is easy, but I was hoping to create an "I.D. card" of sorts that would have the player's id number and relevant character information but so far creating a named item seems about all you can do. I appreciate the help anyway. Quote
Emistry Posted September 29, 2015 Posted September 29, 2015 there is a way to do it. not really a recommended way. when you give the "named" ID card... you insert a fake character data into the char table with the "1500004" as the char name. then create a new named ID Card using the fake char data. but then, you will need some work around to link both ID Card and card together. Quote
GreenMagic793 Posted September 29, 2015 Author Posted September 29, 2015 Hmm... Interesting. But is there an automated way to do that? I'm basically trying to make it so that when a new player speaks to the first NPC that let's them into the game it'll give them their own personalized ID card, such that every character would have one and it wouldn't require me to do anything to create it for them. Quote
Question
GreenMagic793
Hey guys,
Is it possible to create an item that has a player's character ID number in it, or even account ID number? I don't want it to have the player's name, just their ID number. Is there code for this? Thanks.
Bumpidy bump bump bump.
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.