Jump to content
  • 0
WhiteEagle

Check players title

Question

Hey folks,
at first "Merry Xmas" ^-^

Is there any way to check per script what title a player has selected?
I want it to know for items like the Kafra Uniform. It gives bonis when a player uses the title 'Kafra'.
 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

@WhiteEagle

I've selected the wrong row I saw it yet. It's should of course be:

query_sql("SELECT `title_id` FROM `char` WHERE `char_id`="+getcharid(0),[email protected]_id);

 

Instead of:

query_sql("SELECT `char_id` FROM `char` WHERE `char_id`="+getcharid(0),[email protected]_id);

 

Please let us know if u solved it.

 

Best regards,

Rynbef~

Edited by Rynbef
  • Upvote 1
Link to comment
Share on other sites

  • 0

Idk which title u exactly means. The char database just contains a title id as int.

query_sql("SELECT `title_id` FROM `char` WHERE `char_id`="+getcharid(0),[email protected]_id);

 

I don't think u means an buying or vending store title😂

 

Rynbef~

 

Edited by Rynbef
wrong statement
Link to comment
Share on other sites

  • 0
6 hours ago, Rynbef said:

I don't think u means an buying or vending store title😂

Haha, you're right. xD
And thanks for your help.

I am interested in items that give bonuses related to titles.
Like for example:

"_______________________",
"When equipped with \"Kafra\" title: Exp gained +5%, Item drop rate +5%, All Stats +4.",
"_______________________",


Thanks, that should work.

6 hours ago, Rynbef said:

query_sql("SELECT `char_id` FROM `char` WHERE `char_id`="+getcharid(0),[email protected]_id);

 

Link to comment
Share on other sites

  • 0

It now works as it should, except for the fact that if you reselect the title, you have to log in again before it will be recognized.
Apart from that, I don't find any problems so far.

Thanks Rynbef~

WhiteEagle

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.