Alt Currency Reward
Currently I'm using Radiant Crystals although I want to switch because they're default in the main part of the UI under the 'Radiant Crystals' not in the alt. currency tab.
Because of this they need to be put into the alt currency tab to spend them on an alt currency merchant(class 70, I tried class 67 for radiant crystal, not working). So, right now my radiant crystals are rewarded via missions, when you complete the mission I'm using the quest string: Code:
$client->AddCrystals(40,0); |
Quote:
$client->AddAlternateCurrencyValue(currency_id, currency_amount); Class 70 is for Alternate Currency Merchants. |
Ahh, I tried AddAlternateCurrency, didn't have the value after.
Thanks Akka! |
Hah, nevermind
|
Got it working well, only issue I have now is the alt currency merchant's buy back. He'll buy everything back at 100% value, is there anyway to change this? I've played with the sell rate, doesn't seem to affect alt currency stuff.
|
There is a rule in newer databases ... "EnableAltCurrencySell" -- haven't tested it.. but I am guessing it works :)
If you don't have it... Code:
INSERT INTO `rule_values` (`ruleset_id`, `rule_name`, `rule_value`, `notes`) VALUES (1, 'Merchant:EnableAltCurrencySell', 'true', 'Enables the ability to resell items to alternate currency merchants'); |
Quote:
|
did you #reloadallrules or restart server? :)
|
Restarted server, restarting again for something else so i'll see if it takes again :P
|
Got it to work.
There was only the rule with ruleset_id of 10, I added the same rule with ruleset_id of 1, 2, and 4 and it works now. Thanks Nate. |
Has anyone tried this lately? I'm either doing something very wrong or it's not functional.
I've got some alt currency merchants setup and I don't want them to buy back anything. I've created the 'Merchant:EnableAltCurrencySell' rule for the ruleset_id that the zone is using that my merchants are in. The rule_value is false, and when you buy an item from these merchants and then click the sell button to sell it back, your character can no longer interact with any merchants at all, right clicking on them does nothing. Rof2 client. rule_values entry looks like this (24 is my rule set for my hub zone where these merchants are): 24 Merchant:EnableAltCurrencySell false Enables the ability .... |
All times are GMT -4. The time now is 09:42 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.