Jump to content
  • 0

Character ID in item name/description?


GreenMagic793

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

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.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

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".

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

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.

Link to comment
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
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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...