Jump to content

CristianDragan

Inactive Member
  • Posts

    26
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by CristianDragan

  1. Hi! It works fine for me, but I've got few issues when I add the part for the target system.

    item_manager.cpp: https://pastebin.com/gn7rcYjn

    item_manager.cpp: In member function 'bool ITEM_MANAGER::CreateDropItemVector(CHARACTER*, CHARACTER*, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >&)':

    item_manager.cpp:946: error: 'item' was not declared in this scope

    item_manager.cpp:955: error: 'item' was not declared in this scope

    item_manager.cpp:961: error: no matching function for call to 'MOB_DROP_MANAGER::MakeDropInfoItems(CHARACTER*&, CHARACTER*&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >&)'

    mob_drop_manager.h:168: note: candidates are: void MOB_DROP_MANAGER::MakeDropInfoItems(CHARACTER*, CHARACTER*, std::vector<CItem*, std::allocator<CItem*> >&)

     

    Thanks!

  2.  

    1. Description of the problem/Question:

    You can see the problem in the video. It's a short one.

    I tried something, I could see the name, but the name of another item from inventory, and without the price that I set to it.

    Maybe it's from the source... I don't know. I compared the function def OnOverInItem(self, slotIndex) with another ones from another clients and I didn't find something new...

     

    uiprivateshopbuilder.pyhttps://pastebin.com/zTnQgfLy

     

    2. SysErr (Client/Server) / SysLog (Server)

    Empty

     

    3. How to reproduce it?

    You can see the problem in the video. It's a short one.

     

    4. Video

     

    Thanks in advance.

     

  3. ClientManager.cpp: In member function 'void CClientManager::UpdateChannelStatus(TChannelStatus*)':
    ClientManager.cpp:4326:30: error: 'TChannelStatus' has no member named 'player_count' it->second.second = pData->player_count;


    ClientManager.cpp:4329:80: error: 'TChannelStatus' has no member named 'player_count' m_mChannelStatus.emplace(pData->nPort, std::make_pair(pData>bStatus, pData->player_count));
     

    Thanks in advance

     

    EDIT: Solved the errors, but: spacer.png and it changes spacer.png (1 player logged in)

     

    EDIT2: Solved.

  4. I tried your method few minutes ago, and I get " need more than 1 value to unpack " at " (accountName, accountPassword) = content.split(':') ". Thank you in advance.

    Shouldn't be like (accountName, accountPassword) = content.split('Value1', 'Value2'') ?

    
     
  5. @VegaS™ Salut! Am o mică problemă cu sistemul. Sper că mă poţi ajuta.

    Totul funcţionează, dar dacă nu selectez un cont din listă, şi folosesc butonul de autentificare în loc de enter, primesc https://pastebin.com/raw/XSv9k8Fz în syserr. 

    intrologin.py: https://pastebin.com/kKuYbCJd

     

    Hi! I have a small problem. Hope that you can help me.

    Everything works, but if I'm not selecting any account from the list and I use the login button instead of enter, I get https://pastebin.com/raw/XSv9k8Fz in syserr.

    intrologin.py: https://pastebin.com/kKuYbCJd

     

    Mulţumesc frumos!

    Thank you!

    • Metin2 Dev 1
  6. Tried with your latest edit, and I get this error when compiling

    char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
    char_item.cpp:7768: error: argument of type 'DWORD (CItem::)()const' does not match 'DWORD'

     

    Line 7768:      if (isSpeedShoe(item->GetVnum))

     

    You forgot to add an "(" near Vnum and one at the end :D 

    if (isSpeedShoe(item->GetVnum()))

    Now it's working.


    Thank you.

  7. Version of Files XXX

    1. Description of the problem / Question :

    I installed three pair of speed shoes on my server, and I want to know how to make an restriction when trying to equip a second pair of shoes, with that error message: "You cannot equip this item twice."

    I already tried something in item.cpp :

     

    else if (GetType() == ITEM_UNIQUE)
        {
            if (ch->GetWear(SPEED_SHOES))
                return SPEED_SHOES2;
            else
                return SPEED_SHOES;

            else
                return SPEED_SHOES3;
        }

     

    but when I'm trying to compile the source I get:  'SPEED_SHOES1/2/3' was not declared in this scope

    I allready added UNIQUE_ITEM_SPEED_SHOES = 72701, UNIQUE_ITEM_SPEED_SHOES2 = 72702, UNIQUE_ITEM_SPEED_SHOES3 = 72703,   in unique_item.h.

     

    Sorry for my bad english.

     

    Thanks, Sincerly,
    Cristian

     

  8. Version of Files XXX

    1. Description of the problem / Question :

     

    The map looks good on  laptop, but not on PC

     

    2. SysErr ( Client / Server ) / SysLog ( Server )

    EMPTY

     

    3. How to reproduce it ?

    -

     

    4. Screenshots ?

    On PC: 0507_221120.jpg

     

    On laptop:  0507_221124.jpg

     

     

     

    Screenshots are taken at the same time, at the same resolutions *1280x768. Does anyone know a solution? And especially, how is this possible?

     

    Thanks, Sincerly,
    [[ Cristian ]]

     

  9. Version of Files XXX

     

    1. Description of the problem / Question :

    It's related with the value of the bonuses.

     

    2. SysErr ( Client / Server ) / SysLog ( Server )

    0504 13:29:22247 :: Traceback (most recent call last):



    0504 13:29:22247 ::   File "game.py", line 742, in BINARY_NEW_AddAffect

    0504 13:29:22247 ::   File "uiAffectShower.py", line 513, in BINARY_NEW_AddAffect

    0504 13:29:22247 ::   File "localeInfo.py", line 137, in f

    0504 13:29:22247 :: TypeError
    0504 13:29:22247 :: : 
    0504 13:29:22247 :: not all arguments converted during string formatting
    0504 13:29:22247 ::

     

     

    3. How to reproduce it ?

    This error is appears in syserr only when I'm moving my mouse over items.

     

    4. Screenshots ?

    def SA(text):
        def f(x):
            return text % x
        return f

     

    If I'm leaving it in this way " return text % x", it's alright, no problems with the bonuses, but the error appears in syserr, but if I edit it in this way "return text + "%d" % x" for example, the error disappears, but:

     

    spacer.png

     

     

    game.py https://pastebin.com/w9ZFLwz3

    uiaffectshower.py https://pastebin.com/xe9H9n5h

    localeinfo.py: https://pastebin.com/VRjvn5Zh

     

     

     

     

     

    Thanks, Sincerly,
    Cristian

     

  10. 28 minutes ago, Kyo said:

    try 

    self.AppendTextLine(str(localeInfo.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount / totalAmount) * 100.0))), self.POSITIVE_COLOR)

    
    self.AppendTextLine(str(localeInfo.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount / totalAmount) * 100.0))), self.POSITIVE_COLOR)

     

     

     

    Nothing has changed, unfortunately. Thanks for the reply.

     

    29 minutes ago, Kyo said:

    try 

    self.AppendTextLine(str(localeInfo.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount / totalAmount) * 100.0))), self.POSITIVE_COLOR)

    
    self.AppendTextLine(str(localeInfo.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount / totalAmount) * 100.0))), self.POSITIVE_COLOR)

     

     

    I solved it like this:

    self.AppendTextLine(localeInfo.TOOLTIP_AUTO_POTION_REST + "%d" % (100.00 - ((usedAmount/totalAmount) * 100.00)), self.POSITIVE_COLOR)

     

    spacer.png

     

    Do you or anybody know to make it like on official servers? Like 99,99.

    Thanks.

  11. I've installed auto potions, they work, PV and PM regenerates, but I can't see how much % are left in them.

    Sorry for my bad english.

     

    Photo: 0426_020516.jpg

     

     

    syserr: 

    0426 01:34:24605 :: Traceback (most recent call last):

    0426 01:34:24605 ::   File "ui.py", line 1391, in OnOverInItem

    0426 01:34:24605 ::   File "ui.py", line 87, in __call__

    0426 01:34:24605 ::   File "ui.py", line 78, in __call__

    0426 01:34:24605 ::   File "uiInventory.py", line 588, in OverInItem

    0426 01:34:24605 ::   File "uiInventory.py", line 756, in __ShowToolTip

    0426 01:34:24606 ::   File "uiToolTip.py", line 526, in SetInventoryItem

    0426 01:34:24606 ::   File "uiToolTip.py", line 1083, in AddItemData

    0426 01:34:24606 :: TypeError
    0426 01:34:24606 :: : 
    0426 01:34:24606 :: not all arguments converted during string formatting
    0426 01:34:24606 ::

     

    uitooltip.py
                ## ŔÚµżą°ľŕ
                elif constInfo.IS_AUTO_POTION(itemVnum):
                    if 0 != metinSlot:
                        ## 0: Č°ĽşČ­, 1: »çżë·®, 2: ĂŃ·®
                        isActivated = int(metinSlot[0])
                        usedAmount = float(metinSlot[1])
                        totalAmount = float(metinSlot[2])
                        
                        if 0 == totalAmount:
                            totalAmount = 1
                        
                        self.AppendSpace(5)

                        if 0 != isActivated:
                            self.AppendTextLine("(%s)" % (localeInfo.TOOLTIP_AUTO_POTION_USING), self.SPECIAL_POSITIVE_COLOR)
                            self.AppendSpace(5)
                            
                        1083 LINE -> self.AppendTextLine(localeInfo.TOOLTIP_AUTO_POTION_REST % (100.0 - ((usedAmount / totalAmount) * 100.0)), self.POSITIVE_COLOR)

     

    Thank you in advance!

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