Postado Março 20, 2014 11 anos Oiie ! Alguem ai tem uma action que quando da use numa alavanca ganha uma vocation? A vocation ID é 209. Desde já agradeço. Atenciosamente, Anuudek.
Postado Março 20, 2014 11 anos Vai em data/actions e cria um AddVocation.lua e cola isso dentro: local config = { [ACTION_ID] = { premiumOnly = false, storage = 15150, level = 20, t = { [{1, 5}] = { {ITEM_ID, COUNT}, {ITEM_ID, COUNT} } } } } function onUse(cid, item, fromPosition, itemEx, toPosition) local v = config[item.actionid] if(v.premiumOnly) then if(not isPremium(cid)) then doPlayerSendCancel(cid, "Sorry, you are not a Premium member.") return true end end if(getCreatureStorage(cid, v.storage) > 0) then doPlayerSendCancel(cid, "The " .. getItemName(item.uid) .. " is empty.") return true end if(getPlayerLevel(cid) < v.level) then doPlayerSendCancel(cid, "Sorry, not possible.") return true end for voc, k in pairs(v.t) do if(isInArray(voc, getPlayerVocation(cid))) then for i = 1, #k do local id = doCreateItemEx(k[i][1], k[i][2] or 1) if(doPlayerAddItemEx(cid, id) ~= RETURNVALUE_NOERROR) then return doPlayerSendCancel(cid, #k == 1 and "You cannot carry this item." or "You cannot carry these items."), false end end doCreatureSetStorage(cid, v.storage, 1) local msg = "You have found" if #k > 0 then for p = 1, #k do msg = msg .. " " .. k[p][2] .. " " .. (#k == 1 and "" .. getItemInfo(k[p][1]).name .. "" or "" .. getItemInfo(k[p][1]).plural .. "") .. " " end end doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg) doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_BLUE) end end return true end Vai no Actions.xml e cola: <action actionid="ACTION_ID;" event="script" value="AddVocation.lua"/> A Script não é minha, é do WarW0lf Editado Março 20, 2014 11 anos por principe sharingan (veja o histórico de edições)
Postado Março 20, 2014 11 anos Sinceramente ? Não! Só fiz a busca e achei pelo titulo, que é o que normalmente uma pessoa faz antes de criar um topico kkkkk' Mas qualquer coisa só ignorar o topico em que coloquei a script rsrsrs' Editado Março 20, 2014 11 anos por principe sharingan (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.