Ir para conteúdo

1027929

Membro
  • Registro em

  • Última visita

Solutions

  1. 1027929's post in (Resolvido)[AJUDA AQUI] Como mudar servidor MYSQL para SQLITE , Sem dar BUGS ! was marked as the answer   
    Se no config.lua está Sqlite e não está funcionando, quer dizer que a distro do servidor ignora essa opção, assim deixando apenas como Mysql...
     
    Tente usar outra distro =)
  2. 1027929's post in (Resolvido)NPC que troca items por montaria? was marked as the answer   
    Crie um arquivo na pasta npc/scripts com nome de tokenexchange.lua e coloque isso:
    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 config = { montaria = 74, -- ID Da montaria token = 21400 -- ID Do Token } if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'trade') or msgcontains(msg, 'token')) then selfSay('Voce quer trocar Silver Raid Token pela montaria XXX?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(getPlayerItemCount(cid, config.token) >= 1) then doPlayerRemoveItem(cid, config.token, 1) doPlayerAddMount(cid, config.montaria) selfSay('Aqui esta sua montaria =).', cid) else selfSay('desculpe, voce nao tem este item.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then talkState[talkUser] = 0 selfSay('Ok then.', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Na pasta NPC crie um arquivo chamado tokenexchange.xml e coloque isso:
    <?xml version="1.0" encoding="UTF-8"?> <npc name="Token Exchange" script="tokenexchange.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="134" head="55" body="60" legs="50" feet="75" addons="3"/> </npc> OBS: Configure o script e o nome à seu gosto =)
  3. 1027929's post in (Resolvido)[Ajuda] Erro em Script was marked as the answer   
    Nessa linha
    itemr, amountr = rand[1], (not rand[2] and 1 or isItemStackable(rand[1]) and rand[2] or 1) Substitui por isso:
    itemr, amountr = rand[1], (not rand[2] and 1 or rand[1] and rand[2] or 1)
  4. 1027929's post in (Resolvido)[Duvida] Remover Tiles was marked as the answer   
    Vá no Remeres Map Editor > House Palettte e depois selecione a cidade e vai listar pra você as houses.
     
    Só selecionar uma e clicar em "Remove".
  5. 1027929's post in (Resolvido)Healing Collor was marked as the answer   
    TRADUZINDO: Tem que tirar da source e deixar só esse ai por que o da source ainda executa junto com esse script xD
  6. 1027929's post in (Resolvido)[ARENA] BUG MOVEMENT was marked as the answer   
    Na linha 18 ta assim:
    local monster_uid = getGlobalStorageValue(arena_room+100) Adicione isso abaixo ficando assim:
     
    local monster_uid = getGlobalStorageValue(arena_room+100) monster_uid = tonumber(monster_uid) Me avisa se funcionou zzz
  7. 1027929's post in (Resolvido)[AJUDA] Monstros não veem utana vid was marked as the answer   
    Vai no arquivo do Monstro que deseja mexer e procure por:
     
    <immunity invisible="0"/> Coloque:
    <immunity invisible="1"/>

Informação Importante

Confirmação de Termo