• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

[TFS 1.2] Modal Addon Doll 2.0

strutZ

Australian OT Member {AKA Beastn}
Joined
Nov 16, 2014
Messages
1,391
Solutions
7
Reaction score
550
Hello Otland!
I have converted my modal window addon doll script to use @Non Sequitur modal window system which can be found HERE

You will have to install that in order to be able to use this system.

Why use this one instead?
Much cleaner then the last version you just need to add the action script and the lib files. There is no need to register the scripts on login.lua or add creaturescripts!

Information on the system
It has an easy config section for you to customize it how you would like it! You just need to fill out the config table found in the action script (pictured below)
Code:
-- Config
    dollID = 8982, -- Change this to your dolls or items, item ID

    -- Main Window Messages (The first window the player sees)
    mainTitle = "Choose an outfit",
    mainMsg = "You will recieve both addons aswell as the outfit you choose.",
   
    -- Already Owned Window (The window that appears when the player already owns the addon)
    ownedTitle = "Whoops!",
    ownedMsg = "You already have this addon. Please choose another.",
   
    -- No Doll in Backpack (The window that appears when the player doesnt have the doll in their backpack)
    dollTitle = "Whoops!",
    dollMsg = "The addon doll must be in your backpack.",
-- End Config

The system now however, Does not remove the outfits from the list. Instead it just adds "[Owned]" to the end of the outfits that are already unlocked. If a player is a little silly and clicks on an already owned outfit by mistake it will give them an error message and allow them to go back. There is also a check to make sure the addon doll is in the players backpack before the addons are received.

Will be updating my mount doll script later today aswell.

Installation


1)
Install the modal window helper HERE
2) Register the script in /data/actions/actions.xml by adding this line (Replacing "ITEMID" with the item you want to use:
Code:
    <action itemid="ITEMID" script="addon_doll.lua"/>
3) Create a new text document in /data/actions/scripts and name it "addon_doll.lua" and paste the following:
http://pastebin.com/9zLsJuHm
4) Add the following line to your global.lua:
Code:
dofile('data/lib/addon_doll.lua')
5) Create a new text document in /data/lib/ and name it "addon_doll.lua" and paste the following:
http://pastebin.com/FRhtGR8n

Enjoy =)
 
Nice!! What about Modal Mount Doll?

@edit
I found it thanks!
 
Last edited:
I followed the instructions and it wont let me use the addon doll, the mount doll script works fine but the addon script isnt working for me D:

edit: says something about error sendAddonWindow :s
 
I followed the instructions and it wont let me use the addon doll, the mount doll script works fine but the addon script isnt working for me D:

edit: says something about error sendAddonWindow :s
hello bro u use tibiaking.net??
 
I followed the instructions and it wont let me use the addon doll, the mount doll script works fine but the addon script isnt working for me D:

edit: says something about error sendAddonWindow :s
Show me the error.
 
Show me the error.
t7PeAmk.png


I even installed the modal window helper but it doesnt work :|
 
Last edited:
t7PeAmk.png


I even installed the modal window helper but it doesnt work :|
The lib is;nt installed properly make sure you have registered the helper right. Go back over the instructions.
 
The lib is;nt installed properly make sure you have registered the helper right. Go back over the instructions.
I did this already when i did the mount doll :s or do i need to add it in twice? because it all seems the same.

edit: So i went to this link (https://otland.net/threads/tfs-1-2-modal-window-helper-lib.238773/) and it is the same link when i click in Install on the addon doll, i pretty much added everything 100% i just dont know why its not working.
 
So i found the problem, i removed the mage and summoner addon line so i had to re do the numbers on the side :p haha great script though!
 
Could it work in otservbr global ?? I have tried many scrips and none works for me :(
 
Back
Top