Jump to content

Recommended Posts

  • Honorable Member

M2 Download Center

This is the hidden content, please
( Internal )

This is a revised version of an old thread. Following this How-To, you will have a better customizable solution for the aspect of your quests.

You will be able to choice amongst: quest icon, text color, blink effect (like whisper buttons)


How To
You just need to replace 2 little things:
I) In interfaceModule.py, replace BINARY_RecvQuest with:
http://pastebin.com/TAk9bx92
II) In questlib.lua, replace send_letter_ex with:
http://pastebin.com/wDYjJdnp


Explanation:
-the 2° argument of send_letter_ex will support multiple parameters:
    -green|blue|purple|golden|fucsia|aqua and so on (you can add them in BINARY_RecvQuest by adding new colors 0xFF+#HEX; Color Picker Online)
    -blink (the quest will flash like the whisper messages)
    -ex (a dummy tag to separate it from "info" and "item")

-the 3° argument is the name of the icon to choose, which the current availables are:
    -scroll_open.tga
    -scroll_open_green.tga
    -scroll_open_blue.tga
    -scroll_open_purple.tga
    -scroll_open_golden.tga


Examples:

send_letter_ex(localeInfo.LanguageOptionTitle, "green,blink,ex", "scroll_open_green.tga")

 

Spoiler

171832s4.PNG

send_letter_ex(localeInfo.LanguageOptionTitle, "blue,blink,ex", "scroll_open_blue.tga")

 

 

Spoiler

171832s1.PNG

send_letter_ex(localeInfo.LanguageOptionTitle, "purple,blink,ex", "scroll_open_purple.tga")

 

 

Spoiler

171832s2.PNG

send_letter_ex(localeInfo.LanguageOptionTitle, "golden,blink,ex", "scroll_open_golden.tga")

 

 

Spoiler

171832s3.PNG

send_letter_ex(localeInfo.LanguageOptionTitle, "golden,blink,ex", "scroll_open.tga")

 

Spoiler

171832s6.PNG171832s5.PNG


Note: As you can imagine, the only limitation is that the color in N won't appear. (it will require additional code and work, so just forget it)


Download:
Check the attachment (colored-quest-scrolls-v2-res.7z) and add metin2_patch_new_questicon in your client.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 86
  • Dislove 2
  • Sad 2
  • Think 1
  • Confused 1
  • Good 25
  • Love 5
  • Love 116
Link to comment
https://metin2.dev/topic/13247-colored-quest-scrolls-system-v2/
Share on other sites

  • 4 weeks later...
  • Honorable Member

Someone on another board asked me how to use it, so I made a shortcut for it:

Quote

 

How to use in a quest?


Instead of send_letter("XXX") you use send_letter_ex("XXX", "green,blink,ex", "scroll_open_green.tga") if you want green icon, green text, and the icon blinking.

OR
add these in questlib.lua

function send_letter_blue(name) send_letter_ex(name, "ex", "scroll_open_blue.tga") end
function send_letter_golden(name) send_letter_ex(name, "ex", "scroll_open_golden.tga") end
function send_letter_green(name) send_letter_ex(name, "ex", "scroll_open_green.tga") end
function send_letter_purple(name) send_letter_ex(name, "ex", "scroll_open_purple.tga") end
	function send_letter_blue_blink(name) send_letter_ex(name, "blink,ex", "scroll_open_blue.tga") end
function send_letter_golden_blink(name) send_letter_ex(name, "blink,ex", "scroll_open_golden.tga") end
function send_letter_green_blink(name) send_letter_ex(name, "blink,ex", "scroll_open_green.tga") end
function send_letter_purple_blink(name) send_letter_ex(name, "blink,ex", "scroll_open_purple.tga") end
	function send_letter_blue_text(name) send_letter_ex(name, "blue,ex", "scroll_open_blue.tga") end
function send_letter_golden_text(name) send_letter_ex(name, "golden,ex", "scroll_open_golden.tga") end
function send_letter_green_text(name) send_letter_ex(name, "green,ex", "scroll_open_green.tga") end
function send_letter_purple_text(name) send_letter_ex(name, "purple,ex", "scroll_open_purple.tga") end
	function send_letter_blue_blink_text(name) send_letter_ex(name, "blink,blue,ex", "scroll_open_blue.tga") end
function send_letter_golden_blink_text(name) send_letter_ex(name, "blink,golden,ex", "scroll_open_golden.tga") end
function send_letter_green_blink_text(name) send_letter_ex(name, "blink,green,ex", "scroll_open_green.tga") end
function send_letter_purple_blink_text(name) send_letter_ex(name, "blink,purple,ex", "scroll_open_purple.tga") end


So you would just need to replace send_letter("something") with send_letter_green_text("something") for text and icon green.

  • Love 5
  • 3 weeks later...
  • Honorable Member

Or, if you guys don't want to clutter the questlib, you can work with this function.

http://pastebin.com/0rMKpDwY

function structure: string, string, string, bool

  • Good 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

  • 3 weeks later...
  • Honorable Member
On 7/11/2016 at 4:44 PM, Kronzu said:

Like everything good but why so flush guest?  Where added: send_letter_XXX_text it's ok but But where I did not give anything.

1bdaaf1ef2e467acb98922d5dcd74474.gif 

Remove "blink," to remove the flashing.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Good 1
  • 2 months later...
  • 2 weeks later...
  • 1 year later...
  • 2 weeks later...
  • 7 months later...
  • 2 months later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.