Ir para conteúdo
Banner com Efeitos

harrydk

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    harrydk deu reputação a Wise em (Resolvido)Item Para Mudar de Vocação   
    vocitem.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"/>
  2. Gostei
    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" />
  3. Gostei
    harrydk deu reputação a ViitinG em (Resolvido)Script De alavanca   
    Tenta 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

Informação Importante

Confirmação de Termo