Oi vcs poderiao me orientar nessa funçao
function onSay(cid, words, param)
local voce = 213
local lvl = 500
local voc = 350
local outfit = {lookType=28,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50}
local outfitTime = 10999999
local napis = "Transform!!Haaa! "
local effekt = 19
----------------------kod-----------------------------
if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl then
doPlayerSetVocation(cid,voc)
doSetCreatureOutfit(cid, outfit, outfitTime)
doPlayerSay(cid,napis,16)
local pos = getPlayerPosition(cid)
doSendMagicEffect(pos,effekt)
else
doPlayerSendCancel(cid,"Sorry , not possible")
end
return 1
end
Exemplo :
local voce = 213
local lvl = 500
local voc = 350
local outfit = {lookType=28,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50}
local outfitTime = 10999999
local napis = "Transform!!Haaa! "
local effekt = 19
pra que serve isso?