• 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!

Windows Mounts on Level!

domyno2837

Member
Joined
Oct 28, 2013
Messages
168
Reaction score
5
Hello OTLand, :)

it is possible to can select at a level one of 3 mounts..?

for example at level 100 you can select a Horse, a Sheep or a Wolf as Mount..

Thanks for every Help! :)
 
Like this?

dJHkNww.png

This is what I meant when I was talking about doing this task in modalWindows.
Its completely done in LuA if you are using TFS 1.0+(not sure about other distributions).
Very easy to set up but take caution:
The selection you choose is just sending a simple server request, so when you are processing which mount to give, also double check the players level and if he had received the mount before.
If you don't to that, any player, regardless of level, will be able to obtain all the mounts.
 
PHP:
        local modalWindow = ModalWindow(modalID,     "Title", "Window message")
        modalWindow:addButton(1, "Select")
        modalWindow:addButton(0, "Cancel")
        modalWindow:setDefaultEnterButton(1)
        modalWindow:setDefaultEscapeButton(0)
        modalWindow:addChoice(1, "War horse")
        modalWindow:addChoice(2, "Black sheep")
        modalWindow:addChoice(3, "Crystal Wolf")
        modalWindow:sendToPlayer(player)
 
PHP:
        local modalWindow = ModalWindow(modalID,     "Title", "Window message")
        modalWindow:addButton(1, "Select")
        modalWindow:addButton(0, "Cancel")
        modalWindow:setDefaultEnterButton(1)
        modalWindow:setDefaultEscapeButton(0)
        modalWindow:addChoice(1, "War horse")
        modalWindow:addChoice(2, "Black sheep")
        modalWindow:addChoice(3, "Crystal Wolf")
        modalWindow:sendToPlayer(player)
is there something like this window for 0.3.6 ?
 
I could make a tutorial sometime, it's actually very easy to do, but you have to do it right and carefully, otherwise it's just gonna screw up your server.

@Lucian
CipSoft added ModalWindows to their client sometime after the 10.0 9.7 update, so if 0.3.6 can support Tibia 10.0+ 9.7+ and has the extensive source editing to support ModalWindows, then sure, you can use 0.3. But at this point, TFS 1.0+ is the only one that has ModalWindows supported.

edit: modal windows came in 9.7, not 10.0+
 
Last edited:
I could make a tutorial sometime, it's actually very easy to do, but you have to do it right and carefully, otherwise it's just gonna screw up your server.

@Lucian
CipSoft added ModalWindows to their client sometime after the 10.0 update, so if 0.3.6 can support Tibia 10.0+ and has the extensive source editing to support ModalWindows, then sure, you can use 0.3. But at this point, TFS 1.0+ is the only one that has ModalWindows supported.
No, my TFS 0.3.6 doesn/'t support Client 10.0+.
Sure, i want a tutorial explained how to do that, I love all your comments, posts all all fully explained with tutorials ^_^
 
PHP:
        local modalWindow = ModalWindow(modalID,     "Title", "Window message")
        modalWindow:addButton(1, "Select")
        modalWindow:addButton(0, "Cancel")
        modalWindow:setDefaultEnterButton(1)
        modalWindow:setDefaultEscapeButton(0)
        modalWindow:addChoice(1, "War horse")
        modalWindow:addChoice(2, "Black sheep")
        modalWindow:addChoice(3, "Crystal Wolf")
        modalWindow:sendToPlayer(player)
where does this go? is this for exe or a creature script?
 
Back
Top