tópico respondeu por Wazen em Archived
local config = {} --//Config config.newvoc = 1 config.dayscost = 3 --//Config function onSay(cid, words, param) if getPlayerPremiumDays(cid) >= config.dayscost then doPlayerSetVocation(cid, config.new
tópico respondeu por Wazen em Archived
local config = {} --//Config config.newvoc = 1 config.dayscost = 3 --//Config function onSay(cid, words, param) if getPlayerPremiumDays(cid) >= config.dayscost then doPlayerSetVocation(cid, config.new
tópico respondeu por Wazen em Archived
O /trainer se resume à isto: function onSay(cid, words, param) return getCreatureCondition(cid, CONDITION_INFIGHT) == false and doTeleportThing(cid, {x= ,y= ,z= }) or false end Só não esqueça de mudar
tópico respondeu por Wazen em Archived
Estou sem os parâmetros extra, mas tem se não me engano o mostDamageKiller e o lastHitKiller, preciso que alguém me confirme isso
tópico respondeu por Wazen em Archived
local townid = 1 function onStepIn(cid, item, position, fromPosition) return doPlayerSetTown(cid, townid) end
tópico respondeu por Wazen em Archived
function onKill(cid, target) if isPlayer(cid) then doPlayerSetStorageValue(cid, storage, getPlayerStorageValue(cid, storage)+1) end return true end Acho que é isso.
tópico respondeu por Wazen em Archived
if getCreatureCondition(cid, CONDITION_INFIGHT) == false then Coloque esta verificação no script.