Pedrook
Advanced OT User
- Joined
- May 24, 2009
- Messages
- 442
- Solutions
- 3
- Reaction score
- 183
- Location
- Brazil
- GitHub
- pedrogiampietro
I would like to add in the cast a bonus experience for when the player is open, and when closing the experience back to normal.
Lua:
function onSay(player, words, param)
if param == 'on' then
if player:startLiveCast() then
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have started casting your gameplay.")
else
player:sendCancelMessage("You're already casting your gameplay.")
end
elseif param == 'off' then
if player:stopLiveCast() then
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have stopped casting your gameplay.")
else
player:sendCancelMessage("You're not casting your gameplay.")
end
end
return false
end