Is there any way I can click on an item , and after I use my "confirm" on my modal window on the item, for it to say something in monster way,
I got it to work with
player:sendTextMessage(MESSAGE_EVENT_ADVANCE,
But I wanted to know if It can be monster, so everyone in the ot or well, in screen, can see what it says after using that item
Here is my function
I got it to work with
player:sendTextMessage(MESSAGE_EVENT_ADVANCE,
But I wanted to know if It can be monster, so everyone in the ot or well, in screen, can see what it says after using that item
Here is my function
Lua:
function onModalWindow(player, modalWindowId, buttonId, choiceId)
player:unregisterEvent("modalVAD")
if modalWindowId == 1000 then
if buttonId == 100 then
if player:getItemCount(35198) == 0 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You must have a Addon Doll in your backpack!")
return false
end
if choiceId == 0 then
return false
end
player:removeItem(35198, 1)
if player:getSex() == 0 then
player:addOutfitAddon(outfits[choiceId].female, 3)
else
player:addOutfitAddon(outfits[choiceId].male, 3)
end
player:getPosition():sendMagicEffect(CONST_ME_HEARTS)
end
player:sendTextMessage(MESSAGE_EVENT_ADVANCE,'Testing')
end
end