Forum > Miscellaneous
[SOLVED] Barbershop Prices
<< < (2/4) > >>
Milly:
That is what I did, and I compiled about 8 times or so with different values and entries to try and get it to work. You're right, it doesn't take money. However, the player's client still says that Hair Color costs 5 gold (it doesn't actually cost that money, but the client thinks it does). So unless you already have 5 gold in your inventory, your client will still say you don't have enough money to afford it. But if you do have the money, you get it for free.
schlumpf:
--- Code: --- cost += bsc->cost * 0.75f; // +5/6 of price --- End code --- Oh, the joy of comments being not helpful but wrong.
MoneyFrame is only the pure display and is used for bags etc as well. You should modify the barbershop interface itself. Something enables and disables the button there. And shows the price.
Milly:
Silly me, no wonder I couldn't find the BarbershopUI. Didn't realize it was an AddOn. I tried it out and was able to make it say that Hair Color only costs 0 gold, but that's just visual and doesn't actually change the true client-side cost. Anyways, I've been tampering with it for a while now and from my very little understanding of the code, the "Okay" button seems to be connected to a script/function/whatever called ApplyBarberShopStyle.
--- Code: --- <Button name="$parentOkayButton" inherits="UIPanelButtonTemplate" text="OKAY"> <Size> <AbsDimension x="80" y="24"/> </Size> <Anchors> <Anchor point="RIGHT" relativeTo="$parentSelector3" relativePoint="BOTTOM"> <Offset> <AbsDimension x="-2" y="-48"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick function="ApplyBarberShopStyle"/> </Scripts> </Button>
--- End code --- Any ideas where I can find this "ApplyBarberShopStyle" function and edit it? It's not in the BarbershopUI, unless it's hidden in BLIZZARD_BARBERSHOPUI.TOC.SIG but I can't even read that file in NotePad++
Edit: Nevermind about BLIZZARD_BARBERSHOPUI.TOC.SIG, apparently it's a file format for holding images or something to do with e-mail signatures. Unless Blizzard uses a different kind.
schlumpf:
It should be in the lua file? .sig is indeed signatures; file validation signatures.
Milly:
As far as I'm understanding, it isn't defined as a function in the Blizzard_BarberShopUI.lua.
http://pastebin.com/3H5sEEnu
Navigation
[0] Message Index
[#] Next page
[*] Previous page
|