Jump to content
Sign in to follow this  
Guest

FluxCP Credits for In-Game Shop

Recommended Posts

Guest

I think I saw this being made on an archived http://www.upaste.me link or am I wrong?  :rolleyes:  :p_hi:

 

If so, not by me.

I made it last week because i needed it for my server and couldnt find any solution to this particular problem.

 

Btw ty for approving my file.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites
Guest

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? :o I cant remember, this one is a fresh project from last week  :huh:

 

EDIT: I guess i know why, check your private messages pls :)

Edited by Guest

Share this post


Link to post
Share on other sites

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.

Edited by Tidus

Share this post


Link to post
Share on other sites
Guest

 

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.

Share this post


Link to post
Share on other sites
Guest

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

 

In which scenario?

What are you trying to do?

Are there errors?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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