• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Lua Coins Help

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

was not right


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

1692903296290 - Lua Coins Help - RaGEZONE Forums


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
Iam using this




and your welcome to take it and use it dont forget to change source to match ..... any ways why does everthing from before works but everything after PeakFragments i get this error everytime ........

View attachment 240689

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

Thanks anyone
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
224
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?
1693054182379 - Lua Coins Help - RaGEZONE Forums
1693054191443 - Lua Coins Help - RaGEZONE Forums


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.
1693054338479 - Lua Coins Help - RaGEZONE Forums
 

Attachments

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

1693090614520 - Lua Coins Help - RaGEZONE Forums

4 for all

EM_Rolevalue would be 5 for all

1693090670827 - Lua Coins Help - RaGEZONE Forums


Now in Special Currency should be 11 for each item

1693090743446 - Lua Coins Help - RaGEZONE Forums


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

1693090820678 - Lua Coins Help - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Upvote 0
Newbie Spellweaver
Joined
May 16, 2020
Messages
16
Reaction score
0
highlight the EM_AcPriceType and do a search for all should show

View attachment 240801
4 for all

EM_Rolevalue would be 5 for all

View attachment 240802

Now in Special Currency should be 11 for each item

View attachment 240803

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

View attachment 240804
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
224
1 more time LOOK at your EM_ACPriceType_MirrorCoin

and compare it to mine

case EM_ACPriceType_Mirror:
{
int orgValue = Owner->PlayerBaseData->MirrorCoin;

int MirrorCoin = int(Owner->PlayerBaseData->MirrorCoin + Money);
Owner->SetValue(EM_RoleValue_MirrorCoin, MirrorCoin);
Log_MoneyEx(-1, -1, Owner, ActionType, Type, Owner->PlayerBaseData->MirrorCoin, orgValue);
}

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 :
EM_ACPriceType_Mirror, // Mirror shard 15
EM_ACPriceType_TalismanToken, // TalismanToken 16
EM_ACPriceType_PeakFragment, // Peak 17
EM_ACPriceType_CopperStomping, // Copper Stomping Coin 18
EM_ACPriceType_SilverStomping, // Silver Stomping Coin 19
EM_ACPriceType_FestiveGlassBead, // Festive Glass Bead 20
EM_ACPriceType_Stardust, // Stardust 21
EM_ACPriceType_CopperTrial, // Copper Trial Coin 22
EM_ACPriceType_SilverTrial, // Silver Trial Coin 23
EM_ACPriceType_GoldenStomping,

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
1 more time LOOK at your EM_ACPriceType_MirrorCoin

and compare it to mine



do you understand what iam saying as for COIN

MINE :


YOURS :


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 ...


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.
1693248885399 - Lua Coins Help - RaGEZONE Forums


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 :giggle:
 

Attachments

You must be registered for see attachments list
Upvote 0
Elite Diviner
Joined
Sep 12, 2020
Messages
442
Reaction score
224
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
Back
Top