Jump to content

sxvoyz

Member
  • Posts

    74
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Posts posted by sxvoyz

  1. // PythonEventManagerModule.cpp
    PyObject * eventSetFontColor(PyObject* poSelf, PyObject* poArgs)
    {
    	int iIndex;
    	if (!PyTuple_GetInteger(poArgs, 0, &iIndex))
    		return Py_BuildException();
    
    	float fR;
    	if (!PyTuple_GetFloat(poArgs, 1, &fR))
    		return Py_BuildException();
    
    	float fG;
    	if (!PyTuple_GetFloat(poArgs, 2, &fG))
    		return Py_BuildException();
    
    	float fB;
    	if (!PyTuple_GetFloat(poArgs, 3, &fB))
    		return Py_BuildException();
    
    	float fA = 1.0f;
    	PyTuple_GetFloat(poArgs, 4, &fA);
    
    	CPythonEventManager::Instance().SetFontColor(iIndex, fR, fG, fB, fA);
    	return Py_BuildNone();
    }
    
    static PyMethodDef s_methods[] = {
    	[...]
    	{ "SetFontColor",				eventSetFontColor,					METH_VARARGS },
    	[...]
    }
    // PythonEventManager.h
    void SetFontColor(float iIndex, float fR, float fG, float fB, float fA);
    
    // PythonEventManager.cpp
    void CPythonEventManager::RenderEventSet(int iIndex)
    {
    	[...]
    	int iCount = pEventSet->iVisibleStartLine % BOX_VISIBLE_LINE_COUNT /*0*/ ;
    	[...]
    }
    
    void CPythonEventManager::SetFontColor(float iIndex, float fR, float fG, float fB, float fA)
    {
    	if (!CheckEventSetIndex(iIndex))
    		return;
    
    	TEventSet * pEventSet = m_EventSetVector[iIndex];
    	if (!pEventSet)
    		return;
    
    	pEventSet->CurrentColor.r = fR;
    	pEventSet->CurrentColor.g = fG;
    	pEventSet->CurrentColor.b = fB;
    	pEventSet->CurrentColor.a = fA;
    }

     

    • Love 4
  2. CArea::LoadObject Property(2201297168) Load ERROR
    CArea::LoadObject Property(2649958206) Load ERROR
    moon_cave\001001\AreaData.txt
    property\plechi_env\dungeon\biolog20_BossPotion.prb

    Few objects are missing. Could you upload this?

    I got corrupted files. My bad.

    Damn, this 2649958206 is missing

    • Metin2 Dev 1
    • Love 1
  3. (query: SELECT id, name, job, voice, dir, x, y, z, map_index, exit_x, exit_y, exit_map_index, hp, mp, stamina, random_hp, random_sp, playtime, gold, level, level_step, st, ht, dx, iq, exp, stat_point, skill_point, sub_skill_point, stat_reset_count, part_base, part_hair, part_sash, skill_level, quickslot, skill_group, alignment, mobile, horse_level, horse_riding, horse_hp, horse_hp_droptime, horse_stamina, UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(last_play), horse_skill_point, chequeFROM player WHERE id=31278 errno: 1064)

    Syntax error.

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