Jump to content

  •  

aznan83

Member Since 17 Jan 2016
Offline Last Active Mar 07 2016 12:53 PM
-----

Posts I've Made

In Topic: Recompile error after pull the latest git

07 March 2016 - 02:04 AM

prob solve..... git pull once again ..... change back to int_guild.c 'GPERM_ALL'   ..... recompile completed & server run ... thanks All


In Topic: Recompile error after pull the latest git

06 March 2016 - 07:28 AM

thanks...

 

but still have error.... pleas help :

 

    CC    guild.c
guild.c: In function 'guild_change_position':
guild.c:1123: error: 'GPERM_MASK' undeclared (first use in this function)
guild.c:1123: error: (Each undeclared identifier is reported only once
guild.c:1123: error: for each function it appears in.)
make[1]: *** [obj_sql/guild.o] Error 1
make[1]: Leaving directory `/root/Desktop/Hercules/src/map'
make: *** [map_sql] Error 2
 


In Topic: Plugin Collections

03 March 2016 - 03:04 AM

all this plugin can not use with newest hercules right?  really hope it will upgraded ..... thanks.


In Topic: Donation Credits.. help

18 February 2016 - 06:18 AM

hi... i already put below code to to LoginServer.php  ... but it still not read from #CASHPOINTS ... i hope someone can fix it



    public function depositCredits($targetAccountID, $credits, $donationAmount = null)
    {
        $sql = "SELECT COUNT(account_id) AS accountExists FROM {$this->loginDatabase}.login WHERE account_id = ?";
        $sth = $this->connection->getStatement($sql);
        if (!$sth->execute(array($targetAccountID)) || !$sth->fetch()->accountExists) {
            return false; // Account doesn't exist.
        }

            if (!$this->hasCreditsRecord($targetAccountID)) {
              $fields = $fields = '`account_id`, `key`, `index`, `value`';
                $values = '?, ?, ?, ?';

                /*if (!is_null($donationAmount)) {
                    $fields .= ', last_donation_date, last_donation_amount';
                    $values .= ', NOW(), ?';
                    }*/

                    $sql  = "INSERT INTO {$this->charMapDatabase}.`acc_reg_num_db` ($fields) VALUES ($values)";
                    $sth  = $this->connection->getStatement($sql);
                    $vals = array($targetAccountID, '#CASHPOINTS', 0, $credits);

                    /*if (!is_null($donationAmount)) {
                    $vals[] = $donationAmount;
                    }*/

                    return $sth->execute($vals);
                            }
            else {
                $vals = array();
                $sql  = "UPDATE {$this->charMapDatabase}.`acc_reg_num_db` SET value = value + ? ";

                /*if (!is_null($donationAmount)) {
                $sql .= ", last_donation_date = NOW(), last_donation_amount = ? ";
                }*/

                $vals[] = $credits;

                /*if (!is_null($donationAmount)) {
                $vals[] = $donationAmount;
                }*/

                $vals[] = $targetAccountID;

                $sql .= "WHERE account_id = ? and `key` = '#CASHPOINTS'";
                $sth  = $this->connection->getStatement($sql);

                return $sth->execute($vals);
            }
        }

In Topic: Xenforo & ragnarok accounts integration

08 February 2016 - 01:21 PM

thanks.... i wait for yr update..  :)

http://herc.ws/board...ts-integration/ up

 


thanks alot...