Jump to content

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


Recommended Posts

Posted

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)

Posted (edited)
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
Posted

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)+";",.@dCreds);
    if(!.@dCreds) {
        end;
    }
    set #CASHPOINTS,#CASHPOINTS+.@dCreds;
    .@dCreds = 0;
    query_sql("UPDATE `cp_credits` SET `balance` = "+.@dCreds+" WHERE account_id = "+getcharid(3)+";");
    dispbottom "Credis were converted into Cashpoints ["+ #CASHPOINTS +"].";
    end;

 

  • Love 2

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...