String Manipulation help
need a bit of help with these "guild traders" as soon as a guild reserves it changes the caption to "guild trader (GUILDNAME)"
My vendors addon plots the npcs by Add("PIN_GUILDTRADER", "Guild Trader") Is thier a way for me to have the sting post what ever it finds i thought it was something like Add("PIN_GUILDTRADER", "Guild Trader%s") thank you |
You probably want to do something like this:
Lua Code:
|
Quote:
|
Can you post a code snippet so I have an idea what are you trying to do?
If I understand correctly, you want to display "Guild Trader" and then later update it to "Guild Trader (Guild Name)". So you can either make two different strings: Lua Code:
Or just concatenate strings: Lua Code:
|
im trying to load pins on to the map from my database the problem is "Guild Trader" will get pinned because its a static name where in "Guild Trader (GUILDNAME)" i cant pin because its being loged under a guild name.. if i could just get it to load all of them with "Guild Trader" regardless of the guild text work the best
Lua Code:
Lua Code:
the database tho is logging like this ..... Lua Code:
trying to get them all to pin |
Quote:
lua Code:
|
awesome thank you so much that worked perfect, question tho how long does a guild trader hold onto a guild, im thinking im going to half to figure out a way now to have old database guild entries get removed if a new guild takes a guild trader...
|
Quote:
|
All times are GMT -6. The time now is 05:15 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI