Ir para conteúdo

RigBy

Visconde
  • Total de itens

    411
  • Registro em

  • Última visita

  • Dias Ganhos

    10

Tudo que RigBy postou

  1. \o/
    1. heavy2

      heavy2

      Ei Rigby cade o mordecai ? >_<

  2. em vocation.xml fromvoc="1" -- mude pro mesmo id da vocation
  3. RigBy

    Npc Hunt por Item

    Testa assim: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) local pos = {x=1039, y=1072, z=7} -- Local da hunt local posreturn = {x=1039, y=1072, z=7} -- Posiçao onde o player sera teleportado quando acabar o tempo local itemid = 2160 -- item que sera removido local quantidade = 1 -- quantidade config = { time = 10 ---Tempo que ele vai ficar na hunt sabendo que cada numeral equivale a um minuto----- } function doReturnPos() doTeleportThing(cid, posreturn) setGlobalStorageValue(24688, 0) setGlobalStorageValue(24686, none) setPlayerStorageValue(cid, 28680, 0) end if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'hunt') then if getGlobalStorageValue(24688) == 1 then doPlayerSendTextMessage(cid,22,"O player "..getGlobalStorageValue(24686).." esta na hunt") return true end if not doPlayerRemoveItem(cid, itemid, quantidade) then doPlayerSendTextMessage(cid,22,""..getPlayerName(cid)..", voce precisa do "..itemid.." para usar a hunt paga") return true end doPlayerRemoveItem(cid, itemid, quantidade) doPlayerSendTextMessage(cid,22,"Obrigado "..getPlayerName(cid).." foi teleportado.") doTeleportThing(cid, pos) setGlobalStorageValue(24688, 1) setGlobalStorageValue(24686, getPlayerName(cid)) setPlayerStorageValue(cid, 28680, 1) addEvent(doReturnPos, config.time*60*1000) else selfSay('Diga Hunt', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  4. RigBy

    Addon Bonus EXP

    Va em data/creaturescript/script duplique e renomear para addonexp.lua apaga tudo e coloca isso dentro: local outfit = 128 -- outfit que vai ganha o bonus local xp = 2 -- sera mutiplicado o experience rate tipo 2 x 50 = 100 function onOutfit(cid, old, current) if getCreatureOutfit(cid).lookType == outfit then doPlayerSendCancel(cid, "Bonus Xp") doPlayerSetExperienceRate(cid, xp) end return true end em creaturescript.xml coloque isso: <event type="outfit" name="addonexps" event="script" value="addonexp.lua"/> em creaturescript/script abra o login.lua e adicione isso antes do ultimo return true registerCreatureEvent(cid, "addonexps") Testado e funcionando abraços.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...