Jump to content
Ind

Introducing Cash Shop Support

Recommended Posts

 

[*]1st, getting this together has only been possible thanks to Yommy

[*]2nd, really, without Yommy's help this wouldn't have worked

[*]3rd, did I already mention Yommy made this possible?

 

i guess we cant do without yommy :P

Share this post


Link to post
Share on other sites

#KAFRAPOINTS and #CASHPOINTS in the global_reg_value table of your database.

 

greetings

Tepoo

 

i can not found global_reg_value table in my database.

 

i found :

1. global_acc_reg_num_db and

2. global_acc_reg_str_db

 

which one is the correct one ?

Share this post


Link to post
Share on other sites

 

#KAFRAPOINTS and #CASHPOINTS in the global_reg_value table of your database.

 

greetings

Tepoo

 

i can not found global_reg_value table in my database.

 

i found :

1. global_acc_reg_num_db and

2. global_acc_reg_str_db

 

which one is the correct one ?

its not from both of them

Those #CASHPOINTS and #KAFRAPOINTS variables are stored in

 

acc_reg_num_db

Share this post


Link to post
Share on other sites

 

 

#KAFRAPOINTS and #CASHPOINTS in the global_reg_value table of your database.

 

greetings

Tepoo

 

i can not found global_reg_value table in my database.

 

i found :

1. global_acc_reg_num_db and

2. global_acc_reg_str_db

 

which one is the correct one ?

its not from both of them

Those #CASHPOINTS and #KAFRAPOINTS variables are stored in

 

acc_reg_num_db

mine is empty

Share this post


Link to post
Share on other sites

When a value is zero, the variable is destroyed server-side. If you want to add a variable to an account, just insert a row. Just remember:

 

account_id is the account ID of the player you want to give points to;

key is the variable name (DO NOT FORGET ABOUT THE '#'!), in this case #KAFRAPOINTS or #CASHPOINTS;

index is the index of the var. Leave to 0 by default since if you use any other, you should access to #var[index];

value is obvious, don't you think?

Share this post


Link to post
Share on other sites

When a value is zero, the variable is destroyed server-side. If you want to add a variable to an account, just insert a row. Just remember:

 

account_id is the account ID of the player you want to give points to;

key is the variable name (DO NOT FORGET ABOUT THE '#'!), in this case #KAFRAPOINTS or #CASHPOINTS;

index is the index of the var. Leave to 0 by default since if you use any other, you should access to #var[index];

value is obvious, don't you think?

Got it, thanks for the answer (to Dastgir & jaBote)

 

I will try cash shop feature  :D

Share this post


Link to post
Share on other sites

Hi :)
Is there any way to adjust/ resize the cash shop window?

Share this post


Link to post
Share on other sites
4 hours ago, elkun1510 said:

how to change cash shop banner and charge link:
https://prnt.sc/vhfzt3

 \data\luafiles514\lua files\datainfo\tb_cashshop_banner.lub

Share this post


Link to post
Share on other sites

Hi, Im not sure if im on the right place im new in this forum i would like to know if this window can be removed from the cashshop npc when purchasing item

 

prontera,121,104,3    script    Test    4_F_KAFRA3,{

            openshop("Scroll_Shop");
            end;
OnInit:
waitingroom "Kafra Shop!",0;
end;
}

-    trader    Scroll_Shop    1_M_01,{
    OnInit:
    tradertype(NST_CUSTOM);
    sellitem Angel_Scroll,350;
    sellitem Angel_Spirit,350;
    end;

OnCountFunds:
    setcurrency(#KAFRAPOINTS);
    end;

OnPayFunds:
    if( #KAFRAPOINTS < @points )
        end;
    #KAFRAPOINTS -= @price-@points;
    purchaseok();
    close;
}

 

image.png.7cd1d5707fd5c0f623da719dd98c9273.pngimage.png.fca3dbcba1670292e0542751e6ac6b25.png

 

Thanks po

 

Share this post


Link to post
Share on other sites

hi all dev

how to set my cash shop to use kafrapoints(@points) not use cashpoints(@cash)

i already open db and cashshop_db.conf there no option to set default currency...

i just need change currency from cashpoints to kafrapoints...

what i ask is for cash shop not npc...npc i already know how to set the currency by using NST_CUSTOM

thanks in advance...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.