Jump to content
  • 0

Return signed item's name


Luciar

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  

I am aware I can check if an item is signed by using getequipcardid, but I am having trouble thinking of a way to retrieve the name of the signer. Is there any current method to do this?

 

My intention is to write an NPC that can return a string saying "Your item was signed by "+.@signer$ or something similar.

 

Thanks :)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

First, get the card3 and card4 values using getequipcardid or getinventorylist.

Then, combine them to get the char_id:

set .@signer_char_id, .@card3 | (.@card4 << 0x10);
Then, query the `char` table to get the name:
query_sql "SELECT `name` FROM `char` WHERE char_id="+.@signer_char_id, .@signer$;
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...