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

Lua modalwindow

titokere

Member
Joined
May 31, 2014
Messages
38
Reaction score
7
Hi i need one script for mi custom Ot. TFS 1.0

If you use the Item (id=xxx) open modalwindow with the List of skills (axe, sword etc.) and you choose your skill and click on accept, and Puff up 1 skill. sorry mi bad english:

i need this = 1 Click.
2vxet8g.png


2 : choose

m9opip_th.png


3: upgrade

210jait_th.png



can someone help me? :(

Here mi script :

This only open the Skills window But not give :S

function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
local modalWindow = ModalWindow(0x0100, "Upgrade", "choose an skill:")

modalWindow:addChoice(0x00, "Sword")
modalWindow:addChoice(0x01, "Axe")
modalWindow:addChoice(0x02, "Club")
modalWindow:addChoice(0x03, "Lancer")
modalWindow:addChoice(0x04, "Shielding")
modalWindow:addChoice(0x05, "Magic")
modalWindow:addChoice(0x06, "Blader")
modalWindow:addChoice(0x07, "Smith")
modalWindow:addChoice(0x08, "Costurer")
modalWindow:addChoice(0x09, "Enchanter")


modalWindow:addButton(0x00, "Upgrade")
modalWindow:setDefaultEnterButton(0x00)

modalWindow:addButton(0x01, "Cancel")
modalWindow:setDefaultEscapeButton(0x01)

modalWindow:sendToPlayer(player)
return true
end
 
Last edited:
I would personally suggest the request board if you're looking for someone to make you a full script without contributing to it yourself.
 
Back
Top