Jump to content

thespeedy

Inactive Member
  • Posts

    190
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by thespeedy

  1. vor 14 Minuten schrieb Nevisor:

    As example use locale/en/:

    In pack/index add

    
    locale/de/
    locale

    Replace in locale.cfg 'en' to 'de'

    Replace item_proto & mob_proto with yours

    Replace .txt files in locale/en/ with official gf server

    Replace .dds, .tga, .jpg files in locale/en/ui/ with official gf server

    Rename folder from 'en' to 'de'

    with v17.3 Gameforce Client is ok?

  2. On 11.7.2014 at 17:55, Ken said:

    C+ Form

     

    Add this function in input_login.cpp

    
    static void _send_coins(LPCHARACTER ch)
    {
    	if (ch)
    	{
    		SQLMsg * pMsg = DBManager::instance().DirectQuery("select coins from account%s WHERE id = %u", get_table_postfix(), ch->GetAID());
    		if (pMsg->Get()->uiNumRows > 0)
    		{
    			MYSQL_ROW  row = mysql_fetch_row(pMsg->Get()->pSQLResult);
    			ch->ChatPacket(CHAT_TYPE_COMMAND, "BINARY_Update_Coins %s", row[0]);
    			delete pMsg;
    		}
    	}
    }

    And search ; 

    
    _send_bonus_info(ch);

    Add this under that

    
    _send_coins(ch);

    Part of Python ; 

     

    Add this command under "mall"

    
    			"mall"			: self.__InGameShop_Show,
    			"BINARY_Update_Coins"	: self.Binary_Update_Coins

    like this

     

    Add this function in game.py

    
    def Binary_Update_Coins(self,coins):
    	self.wndMds.SetText(str(coins))

    €dit : why is not work these commands?

     

    Open char_change_empire.cpp file and find this

    
    DWORD CHARACTER::GetAID() const
    {
    	char szQuery[1024+1];
    	DWORD dwAID = 0;
    
    	snprintf(szQuery, sizeof(szQuery), "SELECT id FROM player_index%s WHERE pid1=%u OR pid2=%u OR pid3=%u OR pid4=%u AND empire=%u", 
    			get_table_postfix(), GetPlayerID(), GetPlayerID(), GetPlayerID(), GetPlayerID(), GetEmpire());
    
    	SQLMsg* pMsg = DBManager::instance().DirectQuery(szQuery);
    
    	if (pMsg != NULL)
    	{
    		if (pMsg->Get()->uiNumRows == 0)
    		{
    			M2_DELETE(pMsg);
    			return 0;
    		}
    
    		MYSQL_ROW row = mysql_fetch_row(pMsg->Get()->pSQLResult);
    
    		str_to_number(dwAID, row[0]);
    
    		M2_DELETE(pMsg);
    
    		return dwAID;
    	}
    	else
    	{
    		return 0;
    	}
    }
    

    change via this

    
    DWORD CHARACTER::GetAID() const
    {
    	const TAccountTable pAccountTable = GetDesc()->GetAccountTable();
    	if (pAccountTable.id)
    		return pAccountTable.id;
    } 

    Meanwhile add this on top.

    
    #include "desc.h"

    Best Regards 

    Zerelth ~ Ellie

    dont work :/

     

    missing inventory part :/

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.