Jump to content

[WOLFMAN]uitooltip.py problem and CLAW


Recommended Posts

Hii

 

i have 2 Problems with the Wolfman(Lykaner)

 

i dont see the tooltip from all Items and i can´t attack with the CLAW

 

3Y6oOwW.png

 

 

My Syserr

0604 21:47:50576 :: Traceback (most recent call last):

0604 21:47:50576 ::   File "ui.py", line 1474, in OnOverInItem

0604 21:47:50577 ::   File "ui.py", line 87, in __call__

0604 21:47:50577 ::   File "ui.py", line 78, in __call__

0604 21:47:50577 ::   File "uiInventory.py", line 946, in OverInItem

0604 21:47:50577 ::   File "uiInventory.py", line 1122, in ShowToolTip

0604 21:47:50577 ::   File "uiToolTip.py", line 553, in SetInventoryItem

0604 21:47:50577 ::   File "uiToolTip.py", line 924, in AddItemData

0604 21:47:50577 ::   File "uiToolTip.py", line 1446, in AppendWearableInformation

0604 21:47:50577 :: IndexError
0604 21:47:50577 :: : 
0604 21:47:50578 :: tuple index out of range
0604 21:47:50578 :: 
Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

GameLib/ActorInstanceAttach.cpp

Search

bool CActorInstance::__IsLeftHandWeapon(DWORD type)

And

 

bool CActorInstance::__IsRightHandWeapon(DWORD type)

 

Replace your SRC Text with this


 

bool CActorInstance::__IsLeftHandWeapon(DWORD type)
{
	if (CItemData::WEAPON_DAGGER == type || (CItemData::WEAPON_FAN == type && __IsMountingHorse()))
		return true;
	else if (CItemData::WEAPON_BOW == type)
		return true;
	else if (CItemData::WEAPON_CLAW == type)
		return true;
	else
		return false;
}

bool CActorInstance::__IsRightHandWeapon(DWORD type)
{
	if (CItemData::WEAPON_DAGGER == type || (CItemData::WEAPON_FAN == type && __IsMountingHorse()))
		return true;
	else if (CItemData::WEAPON_BOW == type)
		return false;
	else if (CItemData::WEAPON_CLAW == type)
		return true;
	else 
		return true;
}

Compaile your Binary new and your have Right and Left Hand a Claw


So  next Part uiTolltip.py

Search for

"CHARACTER_NAMES = (
        localeInfo.TOOLTIP_WARRIOR,
        localeInfo.TOOLTIP_ASSASSIN,
        localeInfo.TOOLTIP_SURA,
        localeInfo.TOOLTIP_SHAMAN,
    )        "



And replace with this
 

"CHARACTER_NAMES = (
        localeInfo.TOOLTIP_WARRIOR,
        localeInfo.TOOLTIP_ASSASSIN,
        localeInfo.TOOLTIP_SURA,
        localeInfo.TOOLTIP_SHAMAN,
        localeInfo.TOOLTIP_WOLFMAN
    )        "



Search for

"AFFECT_DICT = {"

And Paste

		item.APPLY_ATTBONUS_WOLFMAN : localeInfo.TOOLTIP_APPLY_ATTBONUS_WOLFMAN
		item.APPLY_RESIST_WOLFMAN : localeInfo.TOOLTIP_ANTI_RESIST_WOLFMAN,
		item.APPLY_BLEEDING_PCT : localeInfo.TOOLTIP_APPLY_BLEEDING_PCT,
		item.APPLY_BLEEDING_REDUCE : localeInfo.TOOLTIP_ANTI_BLEEDING_REDUCE,
		item.APPLY_RESIST_CLAW : localeInfo.TOOLTIP_APPLY_RESIST_CLAW,

 

Search "ANTI_FLAG_DICT = {"

and make this

 

    ANTI_FLAG_DICT = {
		0 : item.ITEM_ANTIFLAG_WARRIOR,
		1 : item.ITEM_ANTIFLAG_ASSASSIN,
		2 : item.ITEM_ANTIFLAG_SURA,
		3 : item.ITEM_ANTIFLAG_SHAMAN,
		4 : item.ITEM_ANTIFLAG_WOLFMAN,
	}

Searcg "def AppendWearableInformation(self):"

go to "flagList = ("

Place this

 

        flagList = (
			not item.IsAntiFlag(item.ITEM_ANTIFLAG_WARRIOR),
			not item.IsAntiFlag(item.ITEM_ANTIFLAG_ASSASSIN),
			not item.IsAntiFlag(item.ITEM_ANTIFLAG_SURA),
			not item.IsAntiFlag(item.ITEM_ANTIFLAG_SHAMAN),
			not item.IsAntiFlag(item.ITEM_ANTIFLAG_WOLFMAN))

 

go to locale/XXX/ui/locale_game.txt

 

TOOLTIP_APPLY_ATTBONUS_WOLFMAN	Stark gegen Lykaner + %d%%	SA
TOOLTIP_APPLY_BLEEDING_PCT	Blutungsangriff + %d%%	SA
TOOLTIP_ANTI_BLEEDING_REDUCE	Widerstand gegen Blutungsangriff + %d%%	SA
TOOLTIP_ANTI_RESIST_WOLFMAN	Abwehrchance gegen Lykaner %d%%	SA
TOOLTIP_APPLY_RESIST_CLAW	Abwehrchance gegen Krallen + %d%%	SA
TOOLTIP_WOLFMAN	Lykaner

You must it Self translet

 

sorry for my Bad English.

 

have your another Problem can you send a PN or Post it ^^

 

Ven.

Edited by VenTus
Link to comment
Share on other sites

  • 4 months later...

I have a problem guys my attbonus_wolfman is displayed as bleeding_pct and my resist_wolfman is displayed as bleeding_reduced... The problem is in client because when i wear an item with one of these bonuses my bonus page shows the difference in the bonus that i am equipping... But i dont know where in the whole binary or packs can my problem be... Please help...

Link to comment
Share on other sites

  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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