Jump to content

HaiosMotan

Member
  • Posts

    73
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by HaiosMotan

  1. Acum 2 ore, Sandbone a spus:

    Cool idea. But imho rather a system hidden file property could be applied instead of creating a file out of the client's folder. I know you called it an ugly_ban and that it is supposed to block ugly_people but still I find it unnecessary. Every player blocked will think of it as a server bound process unless he is able to track down your steps. In that case he is also able to remove the file all over again to unban himself and then whatever path becomes useless.

    that's the moment when you use the windows delete command

    • Lmao 1
    • Love 1
  2. Vegas quest functions
    
    Server/quest_functions:
    
    
    pc.get_ip
    npc.get_ip



    Src/game/questlua_pc.cpp
     

    int pc_get_ip(lua_State* L)
        {
            LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
            if(!ch) return 0;
            lua_pushstring(L, ch->GetDesc()->GetHostName());
            return 1;
        }
    
        { "get_ip",                pc_get_ip                            },



    Src/game/questlua_npc.cpp
     

    int npc_get_ip(lua_State* L)
        {
            LPCHARACTER npc = CQuestManager::instance().GetCurrentNPCCharacterPtr();
            if (npc && npc->IsPC())
                lua_pushstring(L, npc->GetDesc()->GetHostName());
            else
                lua_pushstring(L, "");
            return 1;
        }
    
        { "get_ip",                        npc_get_ip                        },


     

    #include "desc.h"
  3. 1 oră în urmă, ReFresh a spus:

    ref

    root->uirestart.py

        def RestartHere(self):
            import background
            import chat
            if background.GetCurrentMapName() == "metin2_map_c1":
                chat.AppendChat(chat.CHAT_TYPE_INFO, "In this map you can only restart in the city.")
                return FALSE    
            net.SendChatPacket("/restart_here")

    if you want to be sure that nobody will unpack your root and delete those lines you can do this in source

    case SCMD_RESTART_HERE:

    same way

  4. Acum 11 ore, BeHappy4Ever a spus:
      Ascunde conținuturi


    0830 02:07:38485 ::   File "networkModule.py", line 237, in SetGamePhase

    0830 02:07:38485 ::   File "system.py", line 177, in __hybrid_import

    0830 02:07:38486 ::   File "
    0830 02:07:38486 :: game.py
    0830 02:07:38486 :: ", line 
    0830 02:07:38486 :: 1311
    0830 02:07:38486 :: 

    0830 02:07:38486 ::     
    0830 02:07:38486 :: if app.ENABLE_REFINE_RENEWAL:

    0830 02:07:38486 ::     
    0830 02:07:38486 ::  
    0830 02:07:38486 :: ^

    0830 02:07:38486 :: IndentationError
    0830 02:07:38486 :: : 
    0830 02:07:38486 :: expected an indented block
    0830 02:07:38486 :: 

    Here is my interfacemodule.py

    https://pastebin.com/mZwg8Lzh

    Thanks a lot for your reply!

    your problem is from game.py this time not from interfacemodule

  5. Acum 18 ore, BeHappy4Ever a spus:

    Thanks a lot for your reply!

      Reafișează conținuturi ascunse

    networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:expected an indented block (interfaceModule.py, line 911)
     

    I get this error , can you help me please?

    Line 910-915:

      Reafișează conținuturi ascunse

        def AppendMaterialToRefineDialog(self, vnum, count):
            self.dlgRefineNew.AppendMaterial(vnum, count)
        if app.ENABLE_REFINE_RENEWAL:
            def CheckRefineDialog(self, isFail):
                self.dlgRefineNew.CheckRefine(isFail)    
     

     

    https://pastebin.com/0gxk9pDy

    be careful with the tabs

    • Metin2 Dev 5
    • Dislove 1
    • Good 1
    • Love 1
  6. Acum 13 ore, BeHappy4Ever a spus:

    I cant find this function     def RefineBindAffectShower(self, affectShower):

    I am using an old version (i think 2015) of official client.

    find this 

        def AppendMaterialToRefineDialog(self, vnum, count):
            self.dlgRefineNew.AppendMaterial(vnum, count)

    change with

        def AppendMaterialToRefineDialog(self, vnum, count):
            self.dlgRefineNew.AppendMaterial(vnum, count)

        if app.ENABLE_REFINE_RENEWAL:
            def CheckRefineDialog(self, isFail):
                self.dlgRefineNew.CheckRefine(isFail)    

    Acum 23 ore, Moon a spus:

    Thank you.
    But I got 1 Problem, the uppitems doesn't update, it always shows the same, and it also always show me +0, even if I upgraded it to +4.
    I hope that you can help me though.

    in uiRefine.py find def CheckRefine(self, isFail):

    then find chat.AppendChat(chat.CHAT_TYPE_INFO, "%d %d" % (itemIndex, int(itemIndex %10)))

    and delete it try after, or whrite above that line "import chat"

    • Love 2
  7. This is the hidden content, please

    download this

    go in locale/de/ro/pl whatever you have

    put the mob_proto on "Decripteaza mob_proto.bat"

    look in the folder find mob_proto.xml open modify the names of the monsters

    put the mob_proto.xml on "Cripteaza mob_proto.bat"

    look in the folder for "mob_proto_new" go in locale/de/ro/pl delete the old one put the new one

    put the new locale.eix/epk in /pack

    • Metin2 Dev 3
    • Confused 1
    • Good 1
  8. 1 oră în urmă, mythx a spus:

    I installed mob drop info system all okay , in server source, client source, and client pack, but i can't see the (?) in the bar to see the mob's drop it is still the same

    prntscr.com/ie359z

    No syserr, maybe anyone knows the cause for this ?

    same problem for like 15-25 m. then i realized that i didn't put the files in ymir work/ui. Did you put them?

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