1. In InterfaceModule.Py, replace BINARY_RecvQuest with:
- def BINARY_RecvQuest(self, index, name, iconType, iconName):
- btn = self.__FindQuestButton(index)
- if 0 != btn:
- self.__DestroyQuestButton(btn)
- btn = uiWhisper.WhisperButton()
- # QUEST_LETTER_IMAGE
- ##!! 20061026.levites.Äù½ºÆ®_À̹ÌÁö_±³Ã¼
- import item
- if "item"==iconType:
- item.SelectItem(int(iconName))
- buttonImageFileName=item.GetIconImageFileName()
- else:
- buttonImageFileName=iconName
- if iconName and (iconType not in ("item", "file")): # type "ex" implied
- btn.SetUpVisual("d:/ymir work/ui/game/quest/questicon/%s" % (iconName.replace("open", "close")))
- btn.SetOverVisual("d:/ymir work/ui/game/quest/questicon/%s" % (iconName))
- btn.SetDownVisual("d:/ymir work/ui/game/quest/questicon/%s" % (iconName))
- else:
- if localeInfo.IsEUROPE():
- btn.SetUpVisual(localeInfo.GetLetterCloseImageName())
- btn.SetOverVisual(localeInfo.GetLetterOpenImageName())
- btn.SetDownVisual(localeInfo.GetLetterOpenImageName())
- else:
- btn.SetUpVisual(buttonImageFileName)
- btn.SetOverVisual(buttonImageFileName)
- btn.SetDownVisual(buttonImageFileName)
- btn.Flash()
- # END_OF_QUEST_LETTER_IMAGE
- if localeInfo.IsARABIC():
- btn.SetToolTipText(name, 0, 35)
- btn.ToolTipText.SetHorizontalAlignCenter()
- else:
- btn.SetToolTipText(name, -20, 35)
- btn.ToolTipText.SetHorizontalAlignLeft()
- listOfTypes = iconType.split(",")
- if "blink" in listOfTypes:
- btn.Flash()
- listOfColors = {
- "golden": 0xFFffa200,
- "green": 0xFF00e600,
- "blue": 0xFF0099ff,
- "purple": 0xFFcc33ff,
- "fucsia": 0xFFcc0099,
- "aqua": 0xFF00ffff,
- }
- for k,v in listOfColors.iteritems():
- if k in listOfTypes:
- btn.ToolTipText.SetPackedFontColor(v)
- btn.SetEvent(ui.__mem_func__(self.__StartQuest), btn)
- btn.Show()
- btn.index = index
- btn.name = name
- self.questButtonList.insert(0, btn)
- self.__ArrangeQuestButton()
2. In questlib.lua, change send_letter_ex with:
- function send_letter_ex(name, icon_type, icon_name) make_quest_button_ex(name, icon_type, icon_name) set_skin(NOWINDOW) q.set_title(name) q.set_icon(icon_name) q.start() end
- function resend_letter_ex(name, icon_type, icon_name) make_quest_button_ex(name, icon_type, icon_name) q.set_title(name) q.set_icon(icon_name) q.start() end
- function resend_letter(title) makequestbutton(title) q.set_title(title) q.start() end
Explanation:
The 2nd argument in send_letter_ex supports multiple parameters.
- green|blue|purple|golden|fucsia|aqua and more. (You can add them on BINARY_RecvQuest by adding new colors 0xFF+#HEX; Bitte melden Sie sich an, um diesen Link zu sehen.
- Blink (The quest will flash/blink like the private messages)
- ex (a useless tag to separate "info" de "item")
The 3rd Argument it's the name of the icon to choose, it has:
- scroll_open.tga
- scroll_open_green.tga
- scroll_open_blue.tga
- scroll_open_purple.tga
- scroll_open_golden.tga
Examples:
Bitte melden Sie sich an, um dieses Bild zu sehen.
send_letter_ex(localeInfo.LanguageOptionTitle, "green,blink,ex", "scroll_open_green.tga")
Bitte melden Sie sich an, um dieses Bild zu sehen.
send_letter_ex(localeInfo.LanguageOptionTitle, "blue,blink,ex", "scroll_open_blue.tga")
Bitte melden Sie sich an, um dieses Bild zu sehen.
send_letter_ex(localeInfo.LanguageOptionTitle, "purple,blink,ex", "scroll_open_purple.tga")
Bitte melden Sie sich an, um dieses Bild zu sehen.
send_letter_ex(localeInfo.LanguageOptionTitle, "golden,blink,ex", "scroll_open_golden.tga")
Bitte melden Sie sich an, um dieses Bild zu sehen.
send_letter_ex(localeInfo.LanguageOptionTitle, "golden,blink,ex", "scroll_open.tga")
Bitte melden Sie sich an, um dieses Bild zu sehen.
send_letter_ex(localeInfo.LanguageOptionTitle, "golden,blink,ex", "scroll_open_green.tga")
------------------------------------------------------------------------------------------------------------------------------
Downloads the files and add metin2_patch_new_questicon in client.( pack them in .epk .eix and add on index )
Link:
Creds: MartySama, M2Dev.