/attr vocation
exemplo quero dar vocation 5(elder druid)
/attr vocation 5
tipow como eu add no player
tipow assim /attr vocation 5 Glebber
assim? ou tem outra maneira
por favor mim ajudem
/attr vocation
exemplo quero dar vocation 5(elder druid)
/attr vocation 5
tipow como eu add no player
tipow assim /attr vocation 5 Glebber
assim? ou tem outra maneira
por favor mim ajudem
não não.
Vai na frente do jogador e digita o comando /attr vocation 5
ai esse jogador que estiver na sua frente irá ter a voc alterada
-------------------------------------------------
fiz um comando para vc usar
comando vai ser:
/vocation NOME,vocation
exemplo:
/vocation Vodkart,4
noc aso alterei minha voc para a 4 (knight)
em talkactions/script crie um arquivo.lua e renomeie para
setvocation.lua
--[[ Desenvolvido by Vodkart ]]-- function onSay(cid, words, param) local t = string.explode(param, ",") if not t[2] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") end local player = getPlayerByName(t[1]) local voc = t[2] local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player with this name doesn\'t exist or is offline.") return TRUE end doPlayerSetVocation(cid,voc) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você alterou a vocação do jogador " .. getCreatureName(pid) .. " para " .. getVocationInfo(getPlayerVocation(pid)).name .. ".") doPlayerSendTextMessage(player, MESSAGE_INFO_DESCR, "sua vocação foi alterada para " .. getVocationInfo(getPlayerVocation(pid)).name .. ".") return TRUE end
em talkactions.xml adicione a tag:
<talkaction log="yes" access="5" words="/vocation" event="script" value="setvocation.lua"/>