Sol Reklam
Sağ Reklam
What's new

Laleci - Adding an Image to the Quest Background

KONU YAZAR

garo95

New member
Onaylı Üye
Apr
21
20
1
Hello ,



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



Firstly:

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


Kod:


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:

Kod:


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:


Kod:


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




 
Back
Top