Jump to content
  • 0

Tip Box Picture Edit


wakefield21

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  115
  • Reputation:   4
  • Joined:  08/14/16
  • Last Seen:  

Hello rAthena! I'm kindly asking on how can i change the picture in my tip box, I am using the default tipbox.lub from zackdreaver translations which is like these:
[1] = {
        Title = "Tip box",
        Search = 1,
        Image = "À¯ÀúÀÎÅÍÆäÀ̽º\\tipbox\\tip00001",
        Imgcoord = { Position = 5, Size = 100 },
        Page = {
            "/tip alternatively, you can open the tip box by clicking the tip box icon..\\nThe tip box provides useful information for playing games.\\nIf you want to get more information, please enter a search term in ^3b488cSearch window^000000.\n-\\n<TIPBOX>¡íMore tips list<INFO>1000</INFO></TIPBOX>"
        },
        PageEX = {
            { EffectNum = 0, Twinkle = 1, StartX = 160, StartY = 105, DistX = 0, DistY = 0, MoveTime = 0 }
        }
    },

But whenever i tried to open that tip from the tip box here is what is happening (please refer to the picture below)
There's an error about it and i can see others that their tip box works just perfectly fine. Please teach me or help me on how can i fix this problem that's been haunting me for weeks now. thank you very much rAthena!

Untitled.jpg.031e4b20878ea4be125a761b99c8f258.jpg

Edited by wakefield21
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  832
  • Reputation:   317
  • Joined:  02/11/19
  • Last Seen:  

Just use this.

tipbox.lub

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  115
  • Reputation:   4
  • Joined:  08/14/16
  • Last Seen:  

Nevermind it, already figured it out. It seems the function on zackdreaver's tipbox.lub is missing some critical lines. Here's what zackdreaver has:

function main()
    for DocumentNum, INFO in pairs(tbl) do
        result, msg = AddTip(DocumentNum, INFO.Title, INFO.Search, INFO.Image)
        if not result then
            return false, msg
        end
        result, msg = AddImgcoord(DocumentNum, INFO.Imgcoord.Position, INFO.Imgcoord.Size)
        if not result then
            return false, msg
        end
        if not INFO.PageEX then
            result, msg = AddPageEx(DocumentNum, -1, 0, 0, 0, 0, 0, 0, 0)
            if not result then
                return false, msg
            end
        else
            for k, v in pairs(INFO.PageEX) do
                result, msg = AddPageEx(DocumentNum, v.EffectNum, v.Twinkle, v.StartX, v.StartY, v.DistX, v.DistY, v.MoveTime)
                if not result then
                    return false, msg
                end
            end
        end
        for k, v in pairs(INFO.Page) do
            result, msg = AddPage(DocumentNum, v)
            if not result then
                return false, msg
            end
        end
    end
    return true, "good"
end

And here's the working function for the tipbox.lub that will change all the pictures if you open/close or search any tips:

function main()
    for DocumentNum, INFO in pairs(tbl) do
        result, msg = AddTip(DocumentNum, INFO.Title, INFO.Search, INFO.Image)
        if not result == true then
            return false, msg
        end
        result, msg = AddImgcoord(DocumentNum, INFO.Imgcoord.Position, INFO.Imgcoord.Size)
        if not result == true then
            return false, msg
        end
        if not INFO.PageEX then
            result, msg = AddPageEx(DocumentNum, -1, 0, 0, 0, 0, 0, 0, 0)
            if not result == true then
            return false, msg
            end
        else
            for k, v in pairs(INFO.PageEX) do
                result, msg = AddPageEx(DocumentNum, v.EffectNum, v.Twinkle, v.StartX, v.StartY, v.DistX, v.DistY, v.MoveTime)
                if not result == true then
            return false, msg
                end
            end
        end
        for k, v in pairs(INFO.Page) do
            result, msg = AddPage(DocumentNum, v)
            if not result == true then
            return false, msg
            end
        end
        k = 0
        v = 0
    end
    return true, "good"
end


 

Edited by Emistry
codebox
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  03/03/20
  • Last Seen:  

These second function works to you?
i'm use the path     > Image = "유저인터페이스\\tipbox\\tip00001",< or  Image = "À¯ÀúÀÎÅÍÆäÀ̽º\\tipbox\\tip00001", 
and still happens the error.

=\

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...