Introducing Cash Shop Support

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?

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


 
Hello,

Solved * Did something wrong.

thank you

 
Last edited by a moderator:
Hi, just a little question...

In cash shop there is 9 tabs, and in  cashshop_db.conf 8 tabs.

The tab "Special" is missing? And, there is any way to rename tabs and descriptions?

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

Thanks po

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

 
Back
Top