Jump to content

Ximboliex

Community
  • Content Count

    270
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by Ximboliex


  1. On 12/22/2023 at 2:54 AM, V3ct0r said:

    Hello @Andy,

     

    Yes, there is the problem in the pkodev.mod.reward.client\dllmain.cpp file.

     

    Change

    
    // bool CCommandObj::IsAllowUse()
    bool __cdecl IsAllowUse()
    {
        return false;
    }

    to

    
    // bool CCommandObj::IsAllowUse()
    bool __cdecl IsAllowUse()
    {
        return true;
    }

    and rebuild the mod using Visual Studio version 2019 or newer.

    @V3ct0r can you make some guides to add your mods in src?


  2. Hi Comunity🤗,

     

    I have a small problem, I want to add 1 or more rows to a file as they did with stoneinfo.txt in CO files with the RGB column, in this case it would be Characterposeinfo.txt which consists of 7 arguments which are

    Fists Sword 2H Sword Dual Swords Firegun Bow Dagger

     My knowledge is not enough that's why I come to ask for help, the file I modified was Characterposet.h 

    This Characterposet.h is a original

    #pragma once
    
    #include "TableData.h"
    
    class CPoseInfo : public CRawDataInfo
    {
      public:
      CPoseInfo()
      {
    	for(int i = 0; i < 7; i++)
    	  sRealPoseID[i] = 0;
      }
      short sRealPoseID[7]; // 5�ֶ�������, ����, ��������, ˫������, ����.....
    };
    
    class CPoseSet : public CRawDataSet
    {
      public:
      static CPoseSet* I() { return _Instance; }
    
      CPoseSet(int nIDStart, int nIDCnt) :
    	  CRawDataSet(nIDStart, nIDCnt)
      {
    	_Instance = this;
    	_Init();
      }
    
      protected:
      static CPoseSet* _Instance; // �൱�ڵ���, ���Լ���ס
    
      virtual CRawDataInfo* _CreateRawDataArray(int nCnt)
      {
    	return new CPoseInfo[nCnt];
      }
    
      virtual void _DeleteRawDataArray()
      {
    	delete[](CPoseInfo*) _RawDataArray;
      }
    
      virtual int _GetRawDataInfoSize()
      {
    	return sizeof(CPoseInfo);
      }
    
      virtual void* _CreateNewRawData(CRawDataInfo* pInfo)
      {
    	return NULL;
      }
    
      virtual void _DeleteRawData(CRawDataInfo* pInfo)
      {
    	//SAFE_DELETE(pInfo->pData);
      }
    
      virtual BOOL _ReadRawDataInfo(CRawDataInfo* pRawDataInfo, vector<string>& ParamList)
      {
    	if(ParamList.size() == 0) return FALSE;
    
    	CPoseInfo* pInfo = (CPoseInfo*)pRawDataInfo;
    
    	pInfo->sRealPoseID[0] = (short)Str2Int(ParamList[0]);
    	pInfo->sRealPoseID[1] = (short)Str2Int(ParamList[1]);
    	pInfo->sRealPoseID[2] = (short)Str2Int(ParamList[2]);
    	pInfo->sRealPoseID[3] = (short)Str2Int(ParamList[3]);
    	pInfo->sRealPoseID[4] = (short)Str2Int(ParamList[4]);
    	pInfo->sRealPoseID[5] = (short)Str2Int(ParamList[5]);
    	pInfo->sRealPoseID[6] = (short)Str2Int(ParamList[6]);
    
    	//      LG("poseset", "Read Pose List [%d][%s]\n", pInfo->nID, pInfo->szDataName);
    
    	return TRUE;
      }
    };
    
    inline CPoseInfo* GetPoseInfo(short sPoseID)
    {
      return (CPoseInfo*)CPoseSet::I()->GetRawDataInfo(sPoseID);
    }
    
    inline short GetRealPoseID(short sPoseID, short sPoseType)
    {
      CPoseInfo* pInfo = GetPoseInfo(sPoseID);
      return pInfo->sRealPoseID[sPoseType];
    }

    and this Characterposet.h is a edited

    #pragma once
    
    #include "TableData.h"
    
    
    class CPoseInfo : public CRawDataInfo
    {
    
    public:
    
    	CPoseInfo()
    	{
            for(int i=0; i<9; i++)  sRealPoseID[i] = 0;
        }
        short sRealPoseID[9]; // 
    };
    
    
    class CPoseSet : public CRawDataSet
    {
    
    public:
    	
    	static CPoseSet* I() { return _Instance; }
    	
    	CPoseSet(int nIDStart, int nIDCnt)
    	:CRawDataSet(nIDStart, nIDCnt)
    	{
    	    _Instance = this;
    		_Init();
    	}
    
    protected:
    
    	static CPoseSet* _Instance; // 相当于单键, 把自己记住
       
    	virtual CRawDataInfo* _CreateRawDataArray(int nCnt)
    	{
    		return new CPoseInfo[nCnt];
    	}
    	
    	virtual void _DeleteRawDataArray()
    	{
    		delete[] (CPoseInfo*)_RawDataArray;
    	}
    	
    	virtual int _GetRawDataInfoSize()
    	{
    		return sizeof(CPoseInfo);
    	}
    
    	virtual void*	_CreateNewRawData(CRawDataInfo *pInfo)
    	{
    		return NULL;
    	}
    
    	virtual void  _DeleteRawData(CRawDataInfo *pInfo)
    	{
    		SAFE_DELETE(pInfo->pData);
    	}
    	
    	virtual BOOL _ReadRawDataInfo(CRawDataInfo *pRawDataInfo, vector<string> &ParamList)
    	{   
            if(ParamList.size()==0) return FALSE;
    		
            CPoseInfo *pInfo = (CPoseInfo*)pRawDataInfo;
    		
            pInfo->sRealPoseID[0] = (short)Str2Int(ParamList[0]);
            pInfo->sRealPoseID[1] = (short)Str2Int(ParamList[1]);
            pInfo->sRealPoseID[2] = (short)Str2Int(ParamList[2]);
            pInfo->sRealPoseID[3] = (short)Str2Int(ParamList[3]);
            pInfo->sRealPoseID[4] = (short)Str2Int(ParamList[4]);
            pInfo->sRealPoseID[5] = (short)Str2Int(ParamList[5]);
            pInfo->sRealPoseID[6] = (short)Str2Int(ParamList[6]);
    		pInfo->sRealPoseID[7] = (short)Str2Int(ParamList[7]);
            pInfo->sRealPoseID[8] = (short)Str2Int(ParamList[8]);
            
            LG("poseset", "Read Pose List [%d][%s]\n", pInfo->nID, pInfo->szDataName);
                
            return TRUE;
        }
    };
    
    inline CPoseInfo* GetPoseInfo(short sPoseID)
    {
    	return (CPoseInfo*)CPoseSet::I()->GetRawDataInfo(sPoseID);
    }
    
    inline short GetRealPoseID(short sPoseID, short sPoseType)
    {
        CPoseInfo *pInfo = GetPoseInfo(sPoseID);
        return pInfo->sRealPoseID[sPoseType];
    }
    
    

    but but when I compile it gives me a parameter error when adding another column (parameter) more, What else do I need to modify or is my modification incorrect?

    compile error.png


  3. On 10/15/2022 at 4:15 AM, Sharshabel said:

    Greetings everyone, I am posting all the features that I've purchased for free. Hope you enjoy them and have a great day!

    Client Src Contains  the following :

     

    https://mega.nz/file/uDYV0aIb#aHu8p1Kg8Q4yhXyFC7-G5zpciRKW1wer-EgbmdsUm9g

     

    Mounts Devloped by Mothana Fixed 100% vs 2003
    New resolutions Devloped by ShadowJr vs 2003
    Drop Info Mob Info Devloped by Lonley vs 2003
    Vip Nitro + Custom Kill Notice Devloped by Mothana vs 2003
    New Loading with perfect timing Im not sure who devloped it but all i know that Zizo Scammed that feature from some one  vs 2003 
    New Game Settings Hide Mounts / Glows / Top 2 Cam ete all fixed Devloped by Lonley vs 2003 
    f1 f2 banel Fixed 100% Devloped by ShadowJr vs 2003 
    Offline Mode Devloped by me  vs 2003 
    60 FBS Devloped by Lonley vs 2003
    there is more inside those srcs just search and pick what you like 


    Game Client 
     

    https://mega.nz/file/2G5H3Iob#7r-FB4c6fMEw0_deO0l3qLTctJIvJYjDafE9pRnEJOI


    Mount info.txt + Bin System + Loading words



    Website Files 

     

    https://mega.nz/file/jbgVHBjb#jRPN9llqwME3QgDUwdDHTxQDZ3JvGKrCsOA9kwZrGaA

    Server Src Side 

    https://mega.nz/file/qTgkjDrY#eNBU_0XPuQUExSpb02tRPqW9hmfU4EbAdm4Diz_ShrE

     

    Links broken, please update post @Sharshabel

    • Like 1

  4. Have a litle trouble whit guild, 

    When I create the guild it does not register me as a leader and indicates that the guild has no people and when I change the map or relog or switch character the guild disappears as if it had never been created, any help or suggestions?

     

     

     

     I have resolved everything else, such as the items not showing attributes and fairies, the acc and pr registration in the stats window, etc.

     

    @Mdrst


  5. Buen Dia,

    Eso es por que tu AI esta modificado para que pase , tienes que buscar la en script/ai y revisa y compara con unos Files clean antes de publicar ayuda, si el problema no lo encuentras ahi entonces publica si necesitas ayuda, en la seccion de ingles en Question & Request y te ayudaremos !


  6. On 7/9/2023 at 6:45 PM, ItzLoganDuh said:

    Hi I tried to follow 

    But for some reason when I try to make the item it says invalid item id. 

     

     

    Does the double // not comment out the old item or do I need to delete it entirely? 

     

    Is there a compiler for the server side bins? I seem to only have client side compiler.  I copied the item info from the server to the client and then I compiled the client are these not the correct steps?

     

    Functions . lua

     

    Itemeffect.lua

     

     

    I did
    &make 3243, 1
    and the server said

     AddItem: Incorrect item data type!ID = 3243

     

    Any ideas?

    Hi,

    Your need add item in iteminfo.txt in server side, if it were only in the iteminfo.bin the game would disconnect you when getting it


  7. 4 hours ago, V3ct0r said:

    Hello @Ximboliex,

     

    I don't understand the question. You can receive a reward for a specific character once every 24 hours. This is a character-specific limit, not an account-wide limit. So you can receive 3 rewards once every 24 hours.

     

    Ok, 

    Every time the player disconnects and connects or makes a switch character and re-enters the game, he receives the login prize regardless of 24 hours.

×
×
  • Create New...