demon088
#088 in the Horde
Last edited:
no, unless you edit your client code and the modal window code, its not possible to do that with default code/clientIs it possible to add an amount slide?
not possible in cip client, and for OTC you would need to add aditional code yourself or hope someones release it for freehow to add images on modal window bumppppp
not possible in cip client, and for OTC you would need to add aditional code yourself or hope someones release it for free
CipSoft Client 8.60 on TFS 0.3In cip client it could be possible with some crazy dll injection!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
CipSoft Client 8.60 on TFS 0.3
View attachment 77954
CipSoft Client 8.60 on TFS 0.3
View attachment 77954
local config = {
Position(3700, 3611, 7),
Position(3702, 3612, 7),
Position(3705, 3617, 7)
}
local modal = TalkAction("!portal")
function modal.onSay(player, words, param)
player:registerEvent("ModalWindow_Tutorial")
local title ="Portal"
local message = "Choose your location"
local window = ModalWindow(1000, title, message)
window:addButton(100, "Confirm")
window:addButton(101, "Cancel")
window:addChoice(1, "Hunts")
window:addChoice(2, "Trainer")
window:addChoice(3, "Temple")
window:setDefaultEnterButton(100)
window:setDefaultEscapeButton(101)
window:sendToPlayer(player)
return true
end
modal:separator(" ")
modal:register()
local modal2 = CreatureEvent("ModalWindow_Tutorial")
function modal2.onModalWindow(player, modalWindowId, buttonId, choiceId)
player:unregisterEvent("ModalWindow_Tutorial")
print("It's happening")
if modalWindowId == 1000 then
if buttonId == 100 then -- "Select" button
local selectedLocation = config[choiceId]
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Teleported to " .. selectedLocation.name)
player:teleportTo(selectedLocation.position)
end
end
end
modal2:register()
Try uncoment also this in protocolgame.cpp :Yes i get the modal window buttons options everything as u just nothing happened.
function onWaypointsModal(player, modalWindowId, buttonId, choiceId) wont be executed tried to print text at first line of the function and nothing.
Today i also tried pulling the latest 772 branch, uncommented code in game.cpp compiled tried everything again from scratch just with the modals but same thing. Im desperate no errors i cant figure out how it works for u and not for me lul![]()
case 0xF9: parseModalWindowAnswer(msg); break;