• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

Laleci - Adding an Image to the Quest Background

Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Member
Mar
Threads
0
45
4
8
Hello ,

I Will Show You How To Add Image To Mission Background.

Firstly:

questlib.lua Open the file and add at the bottom:


Code:
function setbgimage(src) raw_script("[BGIMAGE src;") raw_script(src) raw_script("]") end

function addimage(x,y,src) raw_script("[IMAGE x;"..x.."|y;"..y) raw_script("|src;") raw_script(src) raw_script("]") end

quest_functions open it and add it at the bottom:

Code:
addimage
setbgimage



etc eix epk open ymir work/ui/game/questboard In the section, we throw a picture of approximately 300x300 size,
the picture we will make the background of.
If we want to give a picture to the back of the quest later, we do it like this:
Code:
quest lalecinewquest begin
    state start begin
        when 20092.chat."Laleci"  begin
            setbgimage('Here we write the name of the picture that we have uploaded to etc picture.tga')
          
          
            just be careful setbgimage always comes before numbers

othpxfp.png


 
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Member
Mar
Threads
0
88
1
8
Hello ,

I Will Show You How To Add Image To Mission Background.

Firstly:

questlib.lua Open the file and add at the bottom:


Code:
function setbgimage(src) raw_script("[BGIMAGE src;") raw_script(src) raw_script("]") end

function addimage(x,y,src) raw_script("[IMAGE x;"..x.."|y;"..y) raw_script("|src;") raw_script(src) raw_script("]") end

quest_functions open it and add it at the bottom:

Code:
addimage
setbgimage



etc eix epk open ymir work/ui/game/questboard In the section, we throw a picture of approximately 300x300 size,
the picture we will make the background of.
If we want to give a picture to the back of the quest later, we do it like this:
Code:
quest lalecinewquest begin
    state start begin
        when 20092.chat."Laleci"  begin
            setbgimage('Here we write the name of the picture that we have uploaded to etc picture.tga')
          
          
            just be careful setbgimage always comes before numbers

othpxfp.png


dam thx bro!
 
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock