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

TFS 1.X+ Talk orange/monster when using item

Lalo I

Accepting Dms
Joined
Jul 10, 2018
Messages
52
Reaction score
6
Location
USA
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


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
 
Back
Top