Jump to content

emanuel

Inactive Member
  • Posts

    324
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by emanuel

  1. 2 minutes ago, Vanilla said:

    You can often check if your distribution allows to use older toolsets. This is afaik the case with 2017 and 2019, but I'm not sure if that works on 2013, too. I wouldn't try it if I were you.

     

    Your best bet is to just upgrade to the newer toolset... It'd work out of the box without having to modify anything.

    it works before,i compiling like that,but now i am stuck,i forget whatt i need to do now,can you give me some hints,how to do it ?thx.

  2. Hi,someone know something about this sysser and code ? 

    Sysser :

    SYSERR: Sep 17 10:14:39 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (latin2_general_ci,COERCIBLE) for operation '='
    query: SELECT `empire` FROM player.player_index INNER JOIN player.player ON player.player.account_id = player.player_index.id WHERE player.player.`name` = 'yœ•¥'

    Function :

    std::string CInputMain::GetEmpireFlag(const char* c_pszName)
    {
    
    	
    	char newName[CHARACTER_NAME_MAX_LEN+1];
    	DBManager::instance().EscapeString(newName, sizeof(newName), c_pszName, sizeof(c_pszName));
    
    	std::auto_ptr<SQLMsg> pMsg(DBManager::instance().DirectQuery("SELECT `empire` FROM player.player_index INNER JOIN player.player ON player.player.account_id = player.player_index.id WHERE player.player.`name` = '%s'", newName));
    	MYSQL_ROW row = mysql_fetch_row(pMsg->Get()->pSQLResult);
    	int iEmpireIndex = 0;
    	
    	if (pMsg->Get()->uiNumRows)
    	{
    		str_to_number(iEmpireIndex, row[0]);
    		return ConvertEmpireIndexToStr(iEmpireIndex).c_str();
    	}
    	else
    	{
    		sys_err("QUERY ERROR ON::SELECT `language` FROM account.account");
    	}
    
    	return "";
    }

     

  3. Acum 25 minute, Nirray a spus:
    
    ymir work\pc\warrior\effect

    geom_sword_loop.mse - 1H sword
    geom_spear_loop.mse - 2H sword

    
    List TimeEventColorRed
            {
                0.000000 0.062745
            }
            List TimeEventColorGreen
            {
                0.000000 0.388235
            }
            List TimeEventColorBlue
            {
                0.000000 0.670588
            }
            List TimeEventAlpha
            {
                0.802564 0.270000
            }

    Default RGB -> (15, 170, 99) / 255
    New RGB color -> R/255, G/255, B/255
    save.PNG.8a9181211fff1ecaea69dddae5832150.PNG

    You can also edit the .mse file in WorldEditor

    Thank you !

  4. Someone know to fix that problem,if i put in cube.txt to a npc just one item to craft,i can see item,but i cannot put items to craft

    example :

    nephrite_weapon6
    section
    npc 30016
    item    71112    20
    item    30091    50
    reward    536    1
    percent    100
    end

    not working.

    If i add 3 items to craft it's working,like this :

     

    nephrite_weapon6
    section
    npc 30016
    item    71112    20
    item    30091    50
    reward    536    1
    percent    100
    end
    
    nephrite_weapon6
    section
    npc 30016
    item    71112    20
    item    30091    50
    reward    536    1
    percent    100
    end
    
    nephrite_weapon6
    section
    npc 30016
    item    71112    20
    item    30091    50
    reward    536    1
    percent    100
    end

    Thank you.

  5. Acum 7 ore, Abel(Tiger) a spus:

    For minimap:

    
    		else if (pkInstEach->IsNPC())
    		{
    			if (pkInstEach->GetRace() == 20135) // if (pkInstEach->IsStructure())
    				continue;
    			
    			aMarkPosition.m_fX = ( m_fWidth - (float)m_WhiteMark.GetWidth() ) / 2.0f + fDistanceFromCenterX + m_fScreenX;
    			aMarkPosition.m_fY = ( m_fHeight - (float)m_WhiteMark.GetHeight() ) / 2.0f + fDistanceFromCenterY + m_fScreenY;
    
    			m_NPCPositionVector.push_back(aMarkPosition);
    		}

    For atlas:

    
    // regen.cpp
    				else if (p->m_table.bType == CHAR_TYPE_NPC || p->m_table.bType == CHAR_TYPE_WARP || p->m_table.bType == CHAR_TYPE_GOTO)
    				{
    					if(p->m_table.dwVnum == 20135)
    						continue;
    					
    					SECTREE_MANAGER::instance().InsertNPCPosition(lMapIndex,
    							p->m_table.bType,
    							p->m_table.szLocaleName,
    							(regen->sx+regen->ex) / 2 - base_x,
    							(regen->sy+regen->ey) / 2 - base_y);
    				}

     

    Thank you,i will try!

  6. Acum 47 minute, Abel(Tiger) a spus:
    
    		else if (pkInstEach->IsNPC())
    		{
    			if (pkInstEach->GetRace() == 20135) // if (pkInstEach->IsStructure())
    				continue;
    			
    			aMarkPosition.m_fX = ( m_fWidth - (float)m_WhiteMark.GetWidth() ) / 2.0f + fDistanceFromCenterX + m_fScreenX;
    			aMarkPosition.m_fY = ( m_fHeight - (float)m_WhiteMark.GetHeight() ) / 2.0f + fDistanceFromCenterY + m_fScreenY;
    
    			m_NPCPositionVector.push_back(aMarkPosition);
    		}

     

    I use that function for mini map and it;s working 

    else if (pkInstEach->IsNPC() && pkInstEach->GetRace() != 30009 && pkInstEach->GetRace() != 30043 && pkInstEach->GetRace() != 30045)

    But you'r code not working,i searching for big map,not for mini map,thx anyway :)

×
×
  • 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.