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.
2 : choose
3: upgrade
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
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.
2 : choose
3: upgrade
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: