Lua Coins Help

Elite Diviner
Joined
Sep 12, 2020
Messages
442
Reaction score
225
Iam using this

was not right


. any ways why does everthing from before works but everything after PeakFragments i get this error everytime ........



all the older ones work still iam i missing something ? is there anything in sql other then Max ?

Thanks anyone
 

Attachments

You must be registered for see attachments list
Last edited:

fht

Newbie Spellweaver
Joined
Dec 8, 2016
Messages
53
Reaction score
59
Did you initialize the coins? Take a look at 00016.lua. Otherwise EM_RoleValue_PeakFragmentCoin is nil.
 
Upvote 0
Solution
Newbie Spellweaver
Joined
May 16, 2020
Messages
16
Reaction score
0
Did you have any luck setting up the currency? I just tried

1 - Added an updated lua
2 - Added it to the source code and compiled it.
3 - Added columns to the RoleDate database

When using the currency it says " You have successfully exchanged 1, please confirm in the currency list" - But nothing was added there
 
Upvote 0
Elite Diviner
Joined
Sep 12, 2020
Messages
442
Reaction score
225
playman553 when you added it to source did you make sure Coin was added correctly to the new EM_RoleValue_
 
Upvote 0
Elite Diviner
Joined
Sep 12, 2020
Messages
442
Reaction score
225
did you give it a TokenLimit in 2853?
and when you click on one ingame what error does it show?

you did turn on debug in 2853?
 
Upvote 0
Newbie Spellweaver
Joined
May 16, 2020
Messages
16
Reaction score
0
did you give it a TokenLimit in 2853?
and when you click on one ingame what error does it show?

you did turn on debug in 2853?


Everything seems to work correctly, but the amount of currency does not increase, always 0. At the beginning I thought it was a visiual error, but I checked the RoleDate database table and there is 0 there too.
 

Attachments

You must be registered for see attachments list
Upvote 0
Elite Diviner
Joined
Sep 12, 2020
Messages
442
Reaction score
225
highlight the EM_AcPriceType and do a search for all should show


4 for all

EM_Rolevalue would be 5 for all



Now in Special Currency should be 11 for each item



not sure if this will help you but it will give you an idea if you added everything you should have?

this is what iam doing

 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
May 16, 2020
Messages
16
Reaction score
0
Unfortunately this did not solve the problem and Currency is not entered into the database or added to the character
 
Upvote 0
Elite Diviner
Joined
Sep 12, 2020
Messages
442
Reaction score
225
1 more time LOOK at your EM_ACPriceType_MirrorCoin

and compare it to mine


do you understand what iam saying as for COIN

MINE :
EM_ACPriceType_Mirror

YOURS :
EM_ACPriceType_MirrorCoin

Now using mine as a template look at your others and make sure COIN is in correct

ObjectStruct.h

Mine :

Do you see anything with COIN after it .... Thats my point fix yours based on this ...
 
Upvote 0
Newbie Spellweaver
Joined
May 16, 2020
Messages
16
Reaction score
0


This is the standard code from the source code that was published by Mupu and there are no problems with it, Mirror currency works correctly, But I listened to you and changed (EM_ACPriceType_PeakFragmentCoin -> EM_ACPriceType_PeakFragment). But unfortunately it doesn't work.


I rechecked the code many times and found no error, at first I thought the problem was in Lua and made another function that should give the currency through the command "AddRoleValue" - Also didn't help.

2 Options:
1 - I did something wrong in the database
2 - Something wrong with the source code, but I didn't find any errors.

I will post all screenshots, if it is not difficult for you to review and if there is an error, please advise!

1.
2. 02853 - I used your code
3.
4. RD_Setting.cxx: and and
5.
6.
7.
8. Global.cpp: and

Thank you for your help
 

Attachments

You must be registered for see attachments list
Upvote 0
Elite Diviner
Joined
Sep 12, 2020
Messages
442
Reaction score
225
my code need more tweaking and you still have issue with source, sorry i tried....

and i know my way works because of this


This has a little issue but i have fixed it all ready .....
 
Last edited:
Upvote 0