Jump to content

ruubi

Community
  • Content Count

    94
  • Joined

  • Last visited

  • Days Won

    15

Posts posted by ruubi


  1. Quote

    Bug Title: Bank PIN Value

    NetCommand.h
    @@ ++ Line 529
    
    #define CMD_MC_REQUESTPIN  CMD_MC_BASE + 113
    NetIf.cpp
    @@ ++ Line 143
    
    case CMD_MC_REQUESTPIN: {
    								CCursor::I()->SetCursor(	CCursor::stNormal	);
    								g_stUIDoublePwd.SetType(CDoublePwdMgr::MC_REQUEST);
    								g_stUIDoublePwd.ShowDoublePwdForm();
    								return true;
    							}
    Serverfiles/lua/misscript/npc.lua
    
    r_talk13 = nil
    function r_talk13 ()
        Talk( 1, "Monica: Hi, I am Banker Monica. Accounts can never go wrong with me around." )
        InitTrigger()
        TriggerCondition( 1, HasMoney, 200 )
        TriggerAction( 1, TakeMoney, 200 )
        TriggerAction( 1, OpenBank )
        TriggerFailure( 1, JumpPage, 2 )
        Text( 1, "Vault (PIN)", RequestClientPin, enumPinForBank)
    
        Talk( 2, "Sorry, you do not have sufficient gold to pay for vault usage" )
    
        AddNpcMission(1050)
        AddNpcMission(1212)
        AddNpcMission(6091)
        AddNpcMission(6092)
    end
    UIDoublePwdForm.cpp
    
    void CDoublePwdMgr::_evtDoublePwdFromMouseEvent(CCompent *pSender, int nMsgType, int x, int y, DWORD dwKey)
    
    	case MC_REQUEST:
    				g_stUIDoublePwd.SendGameRequest();
    				break;// end
    			}
    -----------------------------
    
    @@ ++ line 284
    	void CDoublePwdMgr::SendGameRequest()
    	{
    		char szMD5[33] = {0};
    		md5string(g_stUIDoublePwd.edtDoublePwd->GetCaption(), szMD5);
    		
    		CS_SendGameRequest( szMD5 );
    		
    		g_stUIDoublePwd.CloseAllForm();
    	} 
    UIDoublePwdForm.h
    
    @@ ++ line 52
    static const int MC_REQUEST	= -1;
    
    @@ ++ line 80
    void SendGameRequest();

     

    • Like 1

  2. Client source modification

     

    UIHeadSay.cpp

     

    //void CHeadSay::Render function//

     

    Find:

    Line 481:: else if (_pOwn->IsPlayer())

                   {

                        sprintf(szBuf, "%s", _pOwn->getName());

                        strncpy( s_sNamePart[NAME_INDEX], szBuf, NAME_LENGTH );

                    }

     

    Replace with:

     

    else if (_pOwn->IsPlayer())

                   {
         
                        sprintf(szBuf, "Lv%d %s", _pOwn->getGameAttr()->get(ATTR_LV), _pOwn->getName());
                        strncpy( s_sNamePart[NAME_INDEX], szBuf, NAME_LENGTH );
                    }

     

    And build solution! :smile:

     

    • Like 2

  3. 1 minute ago, Smokie said:

    I know sir, but is there a way to share those sitting places later? Something like tweak, someone just put my files into client and he can also sit here? Or its not possible?

    Yes it's possible, just give your friend the map you have edited, map folder, as far as I remember for example its garner.map or garner.obj can't remember correctly but it's one of those.

    • Thanks 1

  4. 18 minutes ago, bayne94 said:

    Hi, tired running client and i got this error when I tried to run game.exe from the system folder.

     

    bat.png.9c672b2ed10f7db264abc14f81cbd36f.png

     

    I then used a start.bat file to run the client and got this error

     

    direct.png.123af1ad249e750397b7c6fbd4894e14.png

     

    start.bat code:

    
    start system\Game.exe startgame

    Any assistance is appreciated, thank you.

    use startgame.bat instead of opening game.exe , and put "start system/game.exe startgame corsairs1" instead of "start system\Game.exe startgame"

×
×
  • Create New...