FluxCP Credits for In-Game Shop

  • Thread starter Thread starter Guest
  • Start date Start date
I think I saw this being made on an archived http://www.upaste.me link or am I wrong? 
default_rolleyes.gif
 
default_p_hi.gif


 
You never decided to share the code? I know I saw some kind of file somewhere that I knew right away it was for FluxCP and had your name all over it. xD

No problemo's!
Where and when have you seen it?
default_ohmy.png
I cant remember, this one is a fresh project from last week 
default_huh.png


EDIT: I guess i know why, check your private messages pls
default_smile.png


 
Last edited:
Aeromesi must have seen my script, I made an NPC to convert the credits a few years ago.

Download: http://forum.brathena.org/index.php/files/file/3230-resources-fluxcp-bra/

// _______________________________________________________
// / \
// | _ _ _ _ |
// | | |__ _ __ / \ | |_| |__ ___ _ __ __ _ |
// | | '_ \| '__/ _ \| __| '_ \ / _ \ '_ \ / _` | |
// | | |_) | | / ___ \ |_| | | | __/ | | | (_| | |
// | |_.__/|_|/_/ \_\__|_| |_|\___|_| |_|\__,_| |
// | |
// | brAthena Script |
// |-------------------------------------------------------|
// | Nome do Script: Conversor de Créditos |
// |-------------------------------------------------------|
// | Criado por: Tidus |
// |-------------------------------------------------------|
// | Versões: rA/brA 2015 ~ |
// |-------------------------------------------------------|
// | Descrição: Script para converter créditos do paypal em|
// | cashpoints automaticamente. |
// \_______________________________________________________/

- script RetornoPaypal -1,{

OnPCLoginEvent:

query_sql "SELECT `balance` FROM `cp_credits` WHERE `account_id` = '"+getcharid(3)+"'",.@balance;

if(.@balance > 0){
set #CASHPOINTS,#CASHPOINTS+.@balance;
dispbottom "ROPs Creditados";
query_sql "UPDATE `cp_credits` set `balance` = '0' WHERE `account_id` = '"+getcharid(3)+"'";
end;
}

end;

} It's a very simple npc, so hopefully it's just a coincidence.

Nice Work.

 
Last edited by a moderator:
Aeromesi must have seen my script, I made an NPC to convert the credits a few years ago.

Download: http://forum.brathena.org/index.php/files/file/3230-resources-fluxcp-bra/

// _______________________________________________________
// / \
// | _ _ _ _ |
// | | |__ _ __ / \ | |_| |__ ___ _ __ __ _ |
// | | '_ \| '__/ _ \| __| '_ \ / _ \ '_ \ / _` | |
// | | |_) | | / ___ \ |_| | | | __/ | | | (_| | |
// | |_.__/|_|/_/ \_\__|_| |_|\___|_| |_|\__,_| |
// | |
// | brAthena Script |
// |-------------------------------------------------------|
// | Nome do Script: Conversor de Créditos |
// |-------------------------------------------------------|
// | Criado por: Tidus |
// |-------------------------------------------------------|
// | Versões: rA/brA 2015 ~ |
// |-------------------------------------------------------|
// | Descrição: Script para converter créditos do paypal em|
// | cashpoints automaticamente. |
// \_______________________________________________________/

- script RetornoPaypal -1,{

OnPCLoginEvent:

query_sql "SELECT `balance` FROM `cp_credits` WHERE `account_id` = '"+getcharid(3)+"'",.@balance;

if(.@balance > 0){
set #CASHPOINTS,#CASHPOINTS+.@balance;
dispbottom "ROPs Creditados";
query_sql "UPDATE `cp_credits` set `balance` = '0' WHERE `account_id` = '"+getcharid(3)+"'";
end;
}

end;

} It's a very simple npc, so hopefully it's just a coincidence.

Nice Work.
I wrote that kind of script too, but the problem was i wanted to display the same amount in ingame shop and fluxcp.

But well yeah, script is always a good way too.

 
Sorry to bump this but using #CASHPOINTS doesn't affect the credits in FluxCP

 
Last edited by a moderator:
from an NPC script I have a command that gives cashpoint to a user using

#CASHPOINTS += 100;

the player's cashpoint increments as seen in the cash shop, but never in Flux credit points

 
That is not supported. The plugin is just for unmodified InGame-Shops.

 
Back
Top