Jump to content

mafianekcek

Member
  • Posts

    42
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by mafianekcek

  1. We would like to introduce you server Godnite, it's brand new server full of new systems, maps and fast exp.
    It's more PvP server, but there is a huge place for PvM either.
    The game is easy to understand and it there are so many new features, like brand new emotes, dungeons, pvp systems etc.
    You can check server out on https://godnite.cz/en/ , the language is English and Czech and more languages coming soon.
    We are looking forward to see you in the fight!
    Godnite Team.

    Website:
       https://godnite.cz/en/
    Download:
        https://godnite.cz/en/download
    Facebook:
        https://facebook.com/godnite2


    Launch date: 1.8.2018

    PS: Server is already online, but just in czech language, 1.8.2018 we will add english language.

    Godnite_Prez.png

  2. Hello, i have problem with shop, when i create shop or rename shop name is okey, but when i close game and start client again, shop name missing.
    Can somebody help me?
    here is video:
     
    here are python files:
    uiprivateshopbuilder.py : https://pastebin.com/DByEdU2Y
    interfacemodule.py: https://pastebin.com/smSkYEBY
    add me on skype: petr-sek
    skype name: Peterio Ukulele
     
    for fix i will pay you 20€
    • Love 1
  3. Hello dev, i have problem with code in python client, when i see some shop on map, then after teleport shop name keeps on screen like screen

    58c84822520d5_Beznzvu.png.59a44e82dfeeb6e55d0586fa19a1ba1a.png

    Sysser:

    0314 20:40:08235 :: Traceback (most recent call last):
    
    0314 20:40:08235 ::   File "uiPrivateShopBuilder.py", line 163, in OnUpdate
    
    0314 20:40:08235 :: TypeError
    0314 20:40:08235 :: : 
    0314 20:40:08235 :: 'NoneType' object is not iterable
    0314 20:40:08235 :: 
    
    0314 20:40:08252 :: Traceback (most recent call last):

    Python code:

    	def OnUpdate(self):
    		if not self.vid:
    			return	
    		if systemSetting.IsShowSalesText():
    		
    			if chr.GetInstanceType(self.vid) not in [chr.INSTANCE_TYPE_PLAYER,chr.INSTANCE_TYPE_NPC]:
    				self.Hide()
    			if GetShopNamesRange() == 1.000:
    				self.Show()
    				(x, y) = chr.GetProjectPosition(self.vid, 220)
    				self.SetPosition(x - self.GetWidth() / 2, y - self.GetHeight() / 2)
    			else:
    				LIMIT_RANGE = abs(constInfo.SHOPNAMES_RANGE * GetShopNamesRange())
    				(to_x, to_y, to_z) = chr.GetPixelPosition(self.vid)
    				(my_x, my_y, my_z) = player.GetMainCharacterPosition()
    				if abs(my_x - to_x) <= LIMIT_RANGE and abs(my_y - to_y) <= LIMIT_RANGE:
    					(x, y) = chr.GetProjectPosition(self.vid, 220)
    					self.SetPosition(x - self.GetWidth() / 2, y - self.GetHeight() / 2)
    					self.Show()
    				else:
    					self.Hide()
    					self.SetPosition(-10000, 0)
    		else:
    			for key in g_privateShopAdvertisementBoardDict.keys():
    				if player.GetMainCharacterIndex() == key:
    					g_privateShopAdvertisementBoardDict[key].Show()
    					x, y = chr.GetProjectPosition(player.GetMainCharacterIndex(), 220)
    					g_privateShopAdvertisementBoardDict[key].SetPosition(x - self.GetWidth()/2, y - self.GetHeight()/2)
    				else:
    					g_privateShopAdvertisementBoardDict[key].Hide()

    Line which should be bad is :

    (to_x, to_y, to_z) = chr.GetPixelPosition(self.vid)

    Please can somebody help me? Thank you.

  4. Hello guys, i have problem with server_timer or server_loop_timer, It do not make no signal, it dont work and game going crash after 1 second.
    QUEST:

    quest server_timer begin
        state start begin
            when 9003.chat."srv_timer" begin
                server_timer("shit", 1, pc.get_map_index())
                --server_timer("shit", 1)
                say("You have now server timer apply.")
            end
            when shit.server_timer begin
                chat("ok")
            end
        end
    end


    But after 1 second it dont do nothing, when i use only server_timer("shit", 1) too not work, but when i change server_timer to only timer, it works perfect, but i need use server_timer for dungeons.
    SOURCE CODE:

    int _set_server_timer(lua_State* L)
    {
        int n = lua_gettop(L);
        if ((n != 2 || !lua_isnumber(L, 2) || !lua_isstring(L, 1)) &&
        (n != 3 || !lua_isstring(L, 1) || !lua_isnumber(L, 2) || !lua_isnumber(L, 3)))
        {
            sys_err("QUEST set_server_timer argument count wrong.");
            return 0;
        }
    
        const char * name = lua_tostring(L, 1);
        double t = lua_tonumber(L, 2);
        DWORD arg = 0;
    
        CQuestManager & q = CQuestManager::instance();
    
        if (lua_isnumber(L, 3))
        arg = (DWORD) lua_tonumber(L, 3);
    
        int timernpc = q.LoadTimerScript(name);
    
        LPEVENT event = quest_create_server_timer_event(name, t, timernpc, false, arg);
        q.AddServerTimer(name, arg, event);
        return 0;
    }


    Please, can somebody help me? Thank you.

  5. 38 minutes ago, Jodie said:
    
    	int guild_get_name(lua_State * L)
    	{
    		if (!lua_isnumber(L, 1))
    		{
    			lua_pushstring(L,  "");
    			return 1;
    		}
    
    		CGuild * pkGuild = CGuildManager::instance().FindGuild((DWORD) lua_tonumber(L, 1));
    
    		if (pkGuild)
    			lua_pushstring(L, pkGuild->GetName());
    		else
    			lua_pushstring(L, "");
    
    		return 1;
    	}

    That means, you have to enter the guild id. The function will return empty string if you don't

    - Jodie

    Yes, it works when i type  guild.get_name(1), but i need use:
    g_name = mysql_query("SELECT name FROM player.guild_dungeon WHERE id='1' LIMIT 1")[1][1]
    if guild.get_name() == g_name then
     

    and updating for name is:
    update = mysql_query("UPDATE player.guild_dungeon SET name='"..guild.get_name().."' WHERE id='1' LIMIT 1")[1]

    and i need to work automatically

     can you help me please?

  6. Hello dev, i need problem, functions guild.get_name() or guild.name() dont work in my quests. I have 40k game

    Spoiler

    quest guild_name begin
        state start begin
            when 11000.chat."Gname" begin
                say(""..guild.get_name().."")
            end
        end
    end

    Where can be problem? Or how to fix it?

    Thanks for your tips.

  7. 1 hour ago, wezt said:

    Well, you need to add one more additional function in StateManager.cpp (also do not forget to add function in header file (StateManager.h))

      Reveal hidden contents
    
    
    
    //Search for this function in sataemanager.cpp
    HRESULT CStateManager::DrawIndexedPrimitive(D3DPRIMITIVETYPE PrimitiveType, UINT minIndex, UINT NumVertices, UINT startIndex, UINT primCount)
    
    {
    
        return (m_lpD3DDev->DrawIndexedPrimitive(PrimitiveType, minIndex, 0, NumVertices, startIndex, primCount));
    
    }
    //Plase under next one
    
    HRESULT CStateManager::DrawIndexedPrimitive1(D3DPRIMITIVETYPE PrimitiveType, UINT minIndex, UINT NumVertices, UINT startIndex, UINT primCount)
    
    {
    
        return (m_lpD3DDev->DrawIndexedPrimitive(PrimitiveType, 0, minIndex, NumVertices, startIndex, primCount));
    
    }

     

    Then go to  PythonMiniMap.cpp, search for "DrawIndexedPrimitive" and replace it with "DrawIndexedPrimitive1"

     

    P.s.: As far i remember it's a full fix. Cannot check for sure because I don't use dx9.

    Thank you, I forget add func StateManager.h :D

    Solved.

    • Good 1
  8. 8 hours ago, wezt said:

    I try it , but dont work because it is not complete, first 3 lines.

     

    Spoiler

     

    So here the Final Minimap Fix

     

    Go to StateManager.cpp and search for

     

     

     
    and Replace it with
     

     

     
    search for - nothing
    replace with - notihng. 

    Can you help me?
  9. Hello, i have problem with my client, when I teleport somewhere, my client crash and give errorlog. Please help me with this. Thank you.

    Spoiler

     

    Module Name: D:\metin2\Client\Start.exe

    Time Stamp: 0x5690299e - (null)

    Exception Type: 0xc0000005

    eax: 0x00000000    ebx: 0x006999c8

    ecx: 0x0000007f    edx: 0x01ffc1f2

    esi: 0x00a58fd0    edi: 0x271206c0

    ebp: 0x0018e0ec    esp: 0x0018e0cc

    0x0056c56e    D:\metin2\Client\Start.exe

    0x004f80ef    D:\metin2\Client\Start.exe

    0x004f83a5    D:\metin2\Client\Start.exe

    0x004f87fb    D:\metin2\Client\Start.exe

    0x004ed431    D:\metin2\Client\Start.exe

    0x004f891e    D:\metin2\Client\Start.exe

    0x0052c726    D:\metin2\Client\Start.exe

    0x00526905    D:\metin2\Client\Start.exe

    0x00526c62    D:\metin2\Client\Start.exe

    0x004ab40f    D:\metin2\Client\Start.exe

    0x1e0aee36    D:\metin2\Client\python27.dll

    0x1e0f2db1    D:\metin2\Client\python27.dll

    0x1e0f15a4    D:\metin2\Client\python27.dll

    0x1e0ef190    D:\metin2\Client\python27.dll

    0x1e0a24f9    D:\metin2\Client\python27.dll

    0x1e07f726    D:\metin2\Client\python27.dll

    0x1e0eeb29    D:\metin2\Client\python27.dll

    0x1e0dad0b    D:\metin2\Client\python27.dll

    0x1e07f726    D:\metin2\Client\python27.dll

    0x1e0f321d    D:\metin2\Client\python27.dll

    0x1e0f2e2d    D:\metin2\Client\python27.dll

    0x1e0f15a4    D:\metin2\Client\python27.dll

    0x1e0ef190    D:\metin2\Client\python27.dll

    0x1e0a24f9    D:\metin2\Client\python27.dll

    0x1e07f726    D:\metin2\Client\python27.dll

    0x1e08bcc8    D:\metin2\Client\python27.dll

    0x1e07f726    D:\metin2\Client\python27.dll

    0x1e08a063    D:\metin2\Client\python27.dll

    0x1e07f726    D:\metin2\Client\python27.dll

    0x1e0f3a3d    D:\metin2\Client\python27.dll

    0x1e0f164c    D:\metin2\Client\python27.dll

    0x1e0ef190    D:\metin2\Client\python27.dll

    0x1e0a24f9    D:\metin2\Client\python27.dll

    0x1e07f726    D:\metin2\Client\python27.dll

    0x1e08bcc8    D:\metin2\Client\python27.dll

    0x1e07f726    D:\metin2\Client\python27.dll

    0x1e08a063    D:\metin2\Client\python27.dll

    0x1e07f726    D:\metin2\Client\python27.dll

    0x1e0f321d    D:\metin2\Client\python27.dll

    0x1e0f2e2d    D:\metin2\Client\python27.dll

    0x1e0f15a4    D:\metin2\Client\python27.dll

    0x1e0ef190    D:\metin2\Client\python27.dll

    0x1e0a24f9    D:\metin2\Client\python27.dll

    0x1e07f726    D:\metin2\Client\python27.dll

    0x1e08bcc8    D:\metin2\Client\python27.dll

    0x1e07f726    D:\metin2\Client\python27.dll

    0x1e0eeb29    D:\metin2\Client\python27.dll

    0x1e07f970    D:\metin2\Client\python27.dll

    0x00563337    D:\metin2\Client\Start.exe

    0x00562f05    D:\metin2\Client\Start.exe

    0x00514da7    D:\metin2\Client\Start.exe

    0x00496970    D:\metin2\Client\Start.exe

    0x1e0f2db1    D:\metin2\Client\python27.dll

    0x1e0f15a4    D:\metin2\Client\python27.dll

    0x1e0f3b31    D:\metin2\Client\python27.dll

    0x1e0f2e21    D:\metin2\Client\python27.dll

    0x1e0f15a4    D:\metin2\Client\python27.dll

    0x1e0ef190    D:\metin2\Client\python27.dll

    0x1e0eeb6f    D:\metin2\Client\python27.dll

    0x1e0f36b7    D:\metin2\Client\python27.dll

    0x1e0f0921    D:\metin2\Client\python27.dll

    0x1e0ef190    D:\metin2\Client\python27.dll

    0x1e0f3b94    D:\metin2\Client\python27.dll

    0x1e0f2e21    D:\metin2\Client\python27.dll

    0x1e0f15a4    D:\metin2\Client\python27.dll

    0x1e0f3b31    D:\metin2\Client\python27.dll

    0x1e0f2e21    D:\metin2\Client\python27.dll

    0x1e0f15a4    D:\metin2\Client\python27.dll

    0x1e0f3b31    D:\metin2\Client\python27.dll

    0x1e0f2e21    D:\metin2\Client\python27.dll

    0x1e0f15a4    D:\metin2\Client\python27.dll

    0x1e0ef190    D:\metin2\Client\python27.dll

    0x1e0eeb6f    D:\metin2\Client\python27.dll

    0x1e0f36b7    D:\metin2\Client\python27.dll

    0x1e0f0921    D:\metin2\Client\python27.dll

    0x1e0ef190    D:\metin2\Client\python27.dll

    0x1e0eeb6f    D:\metin2\Client\python27.dll

    0x1e11c59e    D:\metin2\Client\python27.dll

    0x1e11b036    D:\metin2\Client\python27.dll

    0x00563c48    D:\metin2\Client\Start.exe

    0x00563da9    D:\metin2\Client\Start.exe

    0x00563c02    D:\metin2\Client\Start.exe

    0x004b9fd0    D:\metin2\Client\Start.exe

    0x004b94b7    D:\metin2\Client\Start.exe

    0x004ba3f3    D:\metin2\Client\Start.exe

    0x0057159c    D:\metin2\Client\Start.exe

    0x751f338a    C:\Windows\syswow64\kernel32.dll

    0x777297f2    C:\Windows\SysWOW64\ntdll.dll

    0x777297c5    C:\Windows\SysWOW64\ntdll.dll

     

     

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