Jump to content

Recommended Posts

Hey, is it possible add to description of item information from sql database? I have new table with `itemid` and `specialvalue` columns, so I store different `specialvalue` for every items but i don't know exactly how can i print it in item description.

Link to comment
https://metin2.dev/topic/19624-uitooltip-text-from-sql/
Share on other sites

  • Premium
La 30.09.2018 la 10:17, Krzychu20 a spus:

Hey, is it possible add to description of item information from sql database? I have new table with `itemid` and `specialvalue` columns, so I store different `specialvalue` for every items but i don't know exactly how can i print it in item description.

Yes it is possible where the tooltip is sent that argument "desclist" you declare something else like test1 = player.getdbinfo and u have to make into the source binary that function who read tables from db

Link to comment
https://metin2.dev/topic/19624-uitooltip-text-from-sql/#findComment-106824
Share on other sites

Sry for my dumb question but actually I not know what every file do so I'm not sure where can i start looking for. I tried find "desclist" but it isn't used anywhere so i guess u used it as example.
Anyway can u help me a bit more and say where can i start research?

Link to comment
https://metin2.dev/topic/19624-uitooltip-text-from-sql/#findComment-106827
Share on other sites

ok in theory i made it on my own way, but i have to do last step. Bons are showing but only when type of item in client is set to weapon/armor etc. How can i add it to type 18 or add specific vnum range

@SOLVED
i had to edit a bit uitooltip still ^^

Link to comment
https://metin2.dev/topic/19624-uitooltip-text-from-sql/#findComment-107011
Share on other sites

actually i had another special database where i store my values, anyway i make it on my own way, in server game i added if statement with item value range and if value is in range, then i do select query and set attr, like for weapon etc :D so all working on server side, and people can't do anything with that on client side

Link to comment
https://metin2.dev/topic/19624-uitooltip-text-from-sql/#findComment-107150
Share on other sites

  • Premium
14 hours ago, Krzychu20 said:

actually i had another special database where i store my values, anyway i make it on my own way, in server game i added if statement with item value range and if value is in range, then i do select query and set attr, like for weapon etc :D so all working on server side, and people can't do anything with that on client side

Query? For tooltip? It's db killer...if i move mouse in-out the slot 20times for second...db do 20query! 10player do this and you have 200query...

 

Edit:better solution is to read new attr direct on boot (so you need to change sql select on db and add new values in items structure in client/server)...now you can read all informations from cache

  • Good 1
  • Love 1
Link to comment
https://metin2.dev/topic/19624-uitooltip-text-from-sql/#findComment-107161
Share on other sites

can u type how exactly i can read information exactly on boot and is it not problem how can i update it only when i type command ingame? xD

OK i load bonuses in char_item now i have to find rest xD
PS is it normal that after active item, my bonuses disapear?

Link to comment
https://metin2.dev/topic/19624-uitooltip-text-from-sql/#findComment-107350
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.