Jump to content
devilman

How can I configure that the donations of the Oboro control panel, go to game cashpoints automatically?

Recommended Posts

I have the attention of other developers helping me to do this, but my server is Pre-Renewal and it also makes changes to the Element database, making a Renewal Server. but I really need to know how to do this because it is possible, that I just want to do it without changing my database.

(Pd: sorry for my English is not my native language)

Link to comment
Share on other sites

6 minutes ago, devilman said:

I have the attention of other developers helping me to do this, but my server is Pre-Renewal and it also makes changes to the Element database, making a Renewal Server. but I really need to know how to do this because it is possible, that I just want to do it without changing my database.

(Pd: sorry for my English is not my native language)

Find a new one and burn it. That CP does not receive updates.

Edited by Mael
more info
Link to comment
Share on other sites

29 minutes ago, devilman said:

Oh thanks and which do you suggest is better? 

https://github.com/rathena/FluxCP/commits/master

You can find many themes in the download section or you can also hire someone to design something for you here: https://rathena.org/board/thirdpartyservices/

Link to comment
Share on other sites

Why don't use the OnPCLoginEvent?

Like:
 

-    script    DonateExchange    FAKE_NPC,{
    end;
OnPCLoginEvent:
    set @dCreds,query_sql("SELECT `balance` FROM cp_credits WHERE `account_id` = "+getcharid(3)+";",[email protected]);
    if([email protected]) {
        end;
    }
    set #CASHPOINTS,#[email protected];
    [email protected] = 0;
    query_sql("UPDATE `cp_credits` SET `balance` = "[email protected]+" WHERE account_id = "+getcharid(3)+";");
    dispbottom "Credis were converted into Cashpoints ["+ #CASHPOINTS +"].";
    end;

 

  • Love 1
Link to comment
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.   Paste as plain text instead

  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.



×
×
  • Create New...

Important Information

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