vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 46
Hi, i have script for create teleport with actionid and it work normaly, but why when i say only !event i dont see anything on default only sendCancelMessage, but when i use !event trash i see this command on default chat why?
//edit i wanna hide command on default chat, cuz script working
Code:
function onSay(player, words, param)
if param == '' then
player:sendCancelMessage("Wrong command")
return false
elseif param == 'trash' then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "tp open")
local tp_pos = Position(1014, 997, 7)
local teleport = Game.createItem(1387, 1, tp_pos)
if teleport then
teleport:setActionId(10038)
end
elseif param == 'test' then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "test")
end
return true
end
//edit i wanna hide command on default chat, cuz script working
Last edited: