Histórico de Curtidas
-
harrydk deu reputação a Wise em (Resolvido)Item Para Mudar de Vocaçãovocitem.lua (data/actions/scripts):
function onUse(cid, item, fromPos, toPos) local voc = 5 -- new vocationID if getPlayerVocation(cid) == voc then return doPlayerSendCancel(cid, 'You are already a '..getPlayerVocationName(cid)) end doPlayerSetVocation(cid, voc) doSendMagicEffect(toPos, CONST_ME_STUN) doRemoveItem(item.uid, 1) return true end
Tag - actions.xml (data/actions):
<action itemid="ITEMID" script="vocitem.lua"/> -
harrydk deu reputação a ViitinG em Como Colocar Palavras Animadas"data/globalevents/scripts/texto"
local config = { positions = { ["PALAVRA"] = { x = 1095, y = 1062, z = 7 }, } } function onThink(cid, interval, lastExecution) for text, pos in pairs(config.positions) do doSendAnimatedText(pos, text, math.random(1, 255)) end return TRUE end "data/globalevents/globalevents.xml"
<globalevent name="Texto" interval="2" script="texto.lua" /> -
harrydk deu reputação a ViitinG em (Resolvido)Script De alavancaTenta esse :
local config = { addItem = {id = 2401, count = 1}, } function onUse(cid, item) doPlayerAddItem(cid, config.addItem.id, config.addItem.count) setPlayerStorageValue(cid,11111,1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You gained "..config.addItem.count.." "..getItemNameById(config.addItem.id)..".") end