WhiteEagle Posted December 24, 2021 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 11 hours ago Share Posted December 24, 2021 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'. Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted January 15, 2022 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: 1 hour ago Share Posted January 15, 2022 (edited) @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),.@title_id); Instead of: query_sql("SELECT `char_id` FROM `char` WHERE `char_id`="+getcharid(0),.@title_id); Please let us know if u solved it. Best regards, Rynbef~ Edited January 15, 2022 by Rynbef 1 Quote Link to comment Share on other sites More sharing options...
0 Litro Endemic Posted December 26, 2021 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Share Posted December 26, 2021 just use function in your item bonus, in the function you can query to sql db to get the tittle currenty used. Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted January 15, 2022 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: 1 hour ago Share Posted January 15, 2022 (edited) 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),.@title_id); I don't think u means an buying or vending store title Rynbef~ Edited January 15, 2022 by Rynbef wrong statement Quote Link to comment Share on other sites More sharing options...
0 WhiteEagle Posted January 15, 2022 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 11 hours ago Author Share Posted January 15, 2022 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),.@title_id); Quote Link to comment Share on other sites More sharing options...
0 WhiteEagle Posted January 15, 2022 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 11 hours ago Author Share Posted January 15, 2022 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 Quote Link to comment Share on other sites More sharing options...
Question
WhiteEagle
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.