Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''erro''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. Adriez

    TFS 0.4 ERRO

    fala galera eu coloquei o tfs 0.4 no meu server pra mim instala o sistema de escudinhos lá mais quando vou logar qualquer char da isso aí.... esse dai ja arrumei é só coloca na pasta lib compat isso db.executeQuery = db.query o problema agora q o distro só aceita no config.lua open, ai o pvp não funciona como altera isso ?? agora ta dando esse quando mata alguem
  2. Eu adicionei novas vocações! Só que quando eu vou tentar abrir o serv dá esse erro aqui ERROR: Unable to load vocations! Porfavor me ajudem !!! Meu vocation.xml anexado. Obrigado desde já ! <3 vocations.xml
  3. Boa Noite Xtibia, Alguem poderia me ajudar esta dando esse erro na minha distro, estou usando o tfs 0.4 Erro que aparece na distro [18:27:06.049] [Error - Spell Interface] [18:27:06.049] data/spells/scripts/support/ultimate light.lua:onCastSpell [18:27:06.049] Description: [18:27:06.049] data/spells/scripts/support/ultimate light.lua:4: attempt to call global 'doSetCreatureLight' (a nil value) [18:27:06.049] stack traceback: [18:27:06.049] data/spells/scripts/support/ultimate light.lua:4: in function <data/spells/scripts/support/ultimate light.lua:1> Arquivo .lua function onCastSpell(cid, var) local pos = getPlayerPosition(cid) doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) return doSetCreatureLight(cid, 11, 215, (60*33+10)*1000) end
  4. blz galera boa noite, como conserta esses dois erros aos script aí local GemsConfig = { [2153] = { vocations = {4, 8, 12}, effect = CONST_ME_EXPLOSIONAREA, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SKILL_MELEEPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2154] = { vocations = {3, 7, 11}, effect = CONST_ME_HOLYDAMAGE, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SKILL_DISTANCEPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2156] = { vocations = {1, 5, 9}, effect = CONST_ME_MORTAREA, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_STAT_MAGICLEVELPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2158] = { vocations = {2, 6, 10}, effect = CONST_ME_SMALLPLANTS, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_STAT_MAGICLEVELPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } } } local Conditions = {} for itemid, info in pairs(GemsConfig) do Conditions[itemid] = {} for condition, parameters in pairs(info.conditions) do local new = createConditionObject(condition) for parameter, value in pairs(parameters) do setConditionParam(new, parameter, value) end table.insert(Conditions[itemid], new) end end local function doShowGemAura(cid, type) local position = getThingPosition(cid) doSendMagicEffect(position, type) if isCreature(cid) then if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 200) then addEvent(doShowGemAura, 1 * 1000, cid, type) end end return true end function onUse(cid, item, fromPosition, itemEx, toPosition) if not GemsConfig[item.itemid] then return false end if not isInArray(GemsConfig[item.itemid].vocations, getPlayerVocation(cid)) then return doPlayerSendCancel(cid, "You cannot use this spirit gem.") end if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 200) then return false end for _, condition in pairs(Conditions[item.itemid]) do doAddCondition(cid, condition) end doCreatureSay(cid, "AAAAH! I FEEL THE POWER!", TALKTYPE_ORANGE_1) doSendMagicEffect(toPosition, GemsConfig[item.itemid].effect) addEvent(doShowGemAura, 1 * 1000, cid, GemsConfig[item.itemid].effect) doRemoveItem(item.uid, 1) return true end agora do mount -- [( Mount System 1.4 created by Doidin for XTibia.com )] -- function onUse(cid, item) local outfit = {lookType = 4} -- Outfit da montaria! local exhaust = 60 -- Tempo para player poder usar o item novamente! (tempo em segundos) local time = 60 -- Tempo para ficar na montaria! (tempo em segundos) local speed = 300 -- Velocidade adicionada ao player após usar o item! (300 = velocidade, quanto maior mais rapido...) local mana = 500 -- Quantidade de mana que o player necessita para usar o sistema! local premium = "yes" -- Apenas players premium accounts "yes" or "no"!? local storage = 9393 -- Não mexa aqui! if premium == "yes" and not isPremium(cid) then return doPlayerSendTextMessage(cid, 23, "Sorry, only premium players.") end if(getCreatureMana(cid) < mana) then return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA) end if (getPlayerStorageValue(cid, storage) <= os.time()) then doCreatureSay(cid, "Yeeeah!!!\nYou went up on his ride.", 19) doSetCreatureOutfit(cid, outfit, time*1000) doChangeSpeed(cid, speed) doSendMagicEffect(getCreaturePosition(cid), 34) setPlayerStorageValue(cid, storage, os.time()+exhaust) doPlayerAddMana(cid, -mana) addEvent(doChangeSpeed, time*1000+40, cid, -speed) addEvent(doPlayerSendTextMessage, time*1000+45, cid, 23, "Mount System is time out!") addEvent(doSendMagicEffect, time*1000+50, getCreaturePosition(cid), 2) else doPlayerSendCancel(cid, "Sorry, you only can again use this item after "..exhaust.." seconds.") end return TRUE end
  5. Olá. Eu estou tentando colocar no meu gesior aquele sistema de mensagens que manda direto para o email. Mas toda vez que tento enviar fica acusando esse erro: SMTP Error: Could not connect to SMTP host. Alguém tem ideia de como posso resolve-lo?
  6. alguem me ajuda solucionar este erro quando inicio compilaçao tfs 1. 1>------ Rebuild All started: Project: theforgottenserver, Configuration: Release Win32 ------ 1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. 1>TRACKER : error TRK0005: Failed to locate: "CL.exe". O sistema não pode encontrar o arquivo especificado. 1> 1> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
  7. como resolver ??? function onUse(cid, item, frompos, item2, pos) wall1 = {x=pos.x-1, y=pos.y, z=pos.z, stackpos=1} wall1s1 = {x=pos.x-1, y=pos.y, z=pos.z, stackpos=2} getwall1 = getThingfromPos(wall1) getwall1s1 = getThingfromPos(wall1s1) wall2 = {x=pos.x, y=pos.y-1, z=pos.z, stackpos=1} wall2s1 = {x=pos.x, y=pos.y-1, z=pos.z, stackpos=2} getwall2 = getThingfromPos(wall2) getwall2s1 = getThingfromPos(wall2s1) player = getPlayerPosition(cid) if item.itemid == 1857 or item.itemid == 1860 or item.itemid == 1863 or item.itemid == 1866 or item.itemid == 1869 or item.itemid == 1872 or item.itemid == 1880 or item.itemid == 5616 then --flat tapestry if getwall1.itemid == 1036 or getwall1.itemid == 1040 or getwall1.itemid == 1041 or getwall1.itemid == 1042 or getwall1.itemid == 1043 or getwall1.itemid == 1044 or getwall1.itemid == 1046 or getwall1.itemid == 1049 or getwall1.itemid == 1053 or getwall1.itemid == 1054 or getwall1.itemid == 1055 or getwall1.itemid == 1056 or getwall1.itemid == 1057 or getwall1.itemid == 1059 or getwall1.itemid == 1100 or getwall1.itemid == 1104 or getwall1.itemid == 1105 or getwall1.itemid == 1106 or getwall1.itemid == 1107 or getwall1.itemid == 1108 or getwall1.itemid == 1110 or getwall1.itemid == 1111 or getwall1.itemid == 1115 or getwall1.itemid == 1116 or getwall1.itemid == 1117 or getwall1.itemid == 1119 or getwall1.itemid == 3361 or getwall1.itemid == 3365 or getwall1.itemid == 3366 or getwall1.itemid == 3367 or getwall1.itemid == 3369 or getwall1.itemid == 5261 or getwall1.itemid == 5265 or getwall1.itemid == 5266 or getwall1.itemid == 5267 or getwall1.itemid == 5268 or getwall1.itemid == 5269 or getwall1.itemid == 5271 then --west facing if getwall1s1.itemid > 0 then if getwall2.itemid == 1037 or getwall2.itemid == 1039 or getwall2.itemid == 1040 or getwall2.itemid == 1042 or getwall2.itemid == 1044 or getwall2.itemid == 1045 or getwall2.itemid == 1046 or getwall2.itemid == 1050 or getwall2.itemid == 1052 or getwall2.itemid == 1053 or getwall2.itemid == 1055 or getwall2.itemid == 1057 or getwall2.itemid == 1058 or getwall2.itemid == 1059 or getwall2.itemid == 1061 or getwall2.itemid == 1064 or getwall2.itemid == 1066 or getwall2.itemid == 1068 or getwall2.itemid == 1069 or getwall2.itemid == 1070 or getwall2.itemid == 1039 or getwall2.itemid == 1101 or getwall2.itemid == 1103 or getwall2.itemid == 1104 or getwall2.itemid == 1106 or getwall2.itemid == 1108 or getwall2.itemid == 1109 or getwall2.itemid == 1110 or getwall2.itemid == 1112 or getwall2.itemid == 1114 or getwall2.itemid == 1115 or getwall2.itemid == 1117 or getwall2.itemid == 1118 or getwall2.itemid == 1119 or getwall2.itemid == 3362 or getwall2.itemid == 3364 or getwall2.itemid == 3365 or getwall2.itemid == 3367 or getwall2.itemid == 3368 or getwall2.itemid == 3369 or getwall2.itemid == 5262 or getwall2.itemid == 5264 or getwall2.itemid == 5265 or getwall2.itemid == 5267 or getwall2.itemid == 5269 or getwall2.itemid == 5270 or getwall2.itemid == 5271 then --south facing if getwall2s1.itemid > 0 then else doRemoveItem(item.uid,1) doCreateItem(item.itemid-2,1,wall2) end end else doRemoveItem(item.uid,1) doCreateItem(item.itemid-1,1,wall1) end elseif getwall2.itemid == 1037 or getwall2.itemid == 1039 or getwall2.itemid == 1040 or getwall2.itemid == 1042 or getwall2.itemid == 1044 or getwall2.itemid == 1045 or getwall2.itemid == 1046 or getwall2.itemid == 1050 or getwall2.itemid == 1052 or getwall2.itemid == 1053 or getwall2.itemid == 1055 or getwall2.itemid == 1057 or getwall2.itemid == 1058 or getwall2.itemid == 1059 or getwall2.itemid == 1061 or getwall2.itemid == 1064 or getwall2.itemid == 1066 or getwall2.itemid == 1068 or getwall2.itemid == 1069 or getwall2.itemid == 1070 or getwall2.itemid == 1039 or getwall2.itemid == 1101 or getwall2.itemid == 1103 or getwall2.itemid == 1104 or getwall2.itemid == 1106 or getwall2.itemid == 1108 or getwall2.itemid == 1109 or getwall2.itemid == 1110 or getwall2.itemid == 1112 or getwall2.itemid == 1114 or getwall2.itemid == 1115 or getwall2.itemid == 1117 or getwall2.itemid == 1118 or getwall2.itemid == 1119 or getwall2.itemid == 3362 or getwall2.itemid == 3364 or getwall2.itemid == 3365 or getwall2.itemid == 3367 or getwall2.itemid == 3368 or getwall2.itemid == 3369 or getwall2.itemid == 5262 or getwall2.itemid == 5264 or getwall2.itemid == 5265 or getwall2.itemid == 5267 or getwall2.itemid == 5269 or getwall2.itemid == 5270 or getwall2.itemid == 5271 then --south facing if getwall2s1.itemid > 0 then else doRemoveItem(item.uid,1) doCreateItem(item.itemid-2,1,wall2) end end elseif item.itemid == 1856 or item.itemid == 1859 or item.itemid == 1862 or item.itemid == 1865 or item.itemid == 1868 or item.itemid == 1871 or item.itemid == 1879 or item.itemid == 5615 then --west facing if (player.x == pos.x+1) then doPlayerAddItem(cid, item.itemid+1, 1) doRemoveItem(item.uid,1) end elseif item.itemid == 1855 or item.itemid == 1858 or item.itemid == 1861 or item.itemid == 1864 or item.itemid == 1867 or item.itemid == 1870 or item.itemid == 1878 or item.itemid == 5614 then --south facing if (player.y == pos.y+1) then doRemoveItem(item.uid,1) doPlayerAddItem(cid, item.itemid+2, 1) end end
  8. fala galera, boa tarde assim q crio o boneco no site ou no account manager da esse erro já resolvi obrigado
  9. No ultimo passo eu coloco a senha clico em em set e aparece so : STEP 5 Set Admin Account o que fazer par concluir a instalação do site?
  10. Boa noite Xtibia! bom eu tenho pouca experiencia na area de linux e de script, resumindo pouca experiencia em ot server tem pouco tempo que comecei a mecher com ot, vamos ao que intereça compilei meu servidor no Ubuntu 12.04 meu servidor quando estava rodando no windows 7 estava sem nenhum bug, dai quando eu compilei ele no Ubuntu bugo monstros, npcs, e alguns sistemas teria alguma maneira de compilar meu servidor no ubuntu que não buge as coisas do meu servidor? alguem poderia arrumar isso pra mim? por favor? estou usando a TFS 0.4.
  11. Faço tudo que os tutorias mandam sempre quando chega nessa parte da erro STEP 4Add samples to DB: Fatal error: Call to a member function fetchall() on a non-object in C:\xampp\htdocs\classes\player.php on line 36 Alguem me ajuda? na linha 36 tem esse codigo: $this->data = $this->getDatabaseHandler()->query('SELECT ' . implode(', ', $fieldsArray) . ' FROM ' . $this->getDatabaseHandler()->tableName(self::$table) . ' WHERE ' . $search_string)->fetch();
  12. Bom dia, galera. É o seguinte, meu ot tem aquele sistema de VIP que da use no item ai fica vip apenas no character, até ai ta tudo bem, mas mesmo quando fica vip no gesior não muda o status lá nas informações do char. Já mudei a storage lá na config.php mas creio que precisa de algo mais que eu não sei. Agradeço desde já quem puder me ajudar com isso.
  13. Na hora que salvei o mapa totalmente a negia caiu ai nao me preocupei pq eu ja tinha salvado , so que quando fui abrir de novo fica so em 98%, e quando carrega da fechar progama e nao volta. Nao teria uma soluçao ae , ou abrir so esses 98% ?
  14. Olá xTibianos, venho pedir uma pequena ajudinha no Sistema de Mega Evolução do @@zipter98 Então, é o seguinte, está tudo adicionado e configurado como dito, porém, quando uso a spell o Pokémon simplesmente morre, como na imagem: E também, tem o seguinte erro na executável: Caso alguém puder ajudar, deixarei aqui o move1 e level system: move1.lua: level system: Caso alguém possa ajudar, REP+ Up
  15. fala galera boa noite, eu instalei o vip mais quando vou abrir duas conta no mc da isso no console e outra conta não abre, como arrumar ??? [17/03/2016 20:08:23] [Error - CreatureScript Interface] [17/03/2016 20:08:23] buffer:onLogin [17/03/2016 20:08:23] Description: [17/03/2016 20:08:23] (luaRegisterCreatureEvent) Creature not found
  16. Alguém pode me ajudar com este erro, quando vou abrir o meu server?? Ajudem dou REP!!
  17. Estou tendo um problema nesse script, ele não faz o que era pra ser feito, alguém pode me ajudar? eu uso tfs 0.4... O script funcionaria assim, teria uma lista de ids, cada id ganha um valor definido por mim, e tem uma variável soma, q soma esse valores e retorna esse valor como addon O que ele não faz: ele não ativa o addon, mas o valor está sendo retornado pois dei Print no script <movevent type="Equip" itemid="2523" slot="shield" event="script" value="addon.lua"/> <movevent type="DeEquip" itemid="2523" slot="shield" event="script" value="addon.lua"/> <movevent type="Equip" itemid="2195" slot="feet" event="script" value="addon.lua"/> <movevent type="DeEquip" itemid="2195" slot="feet" event="script" value="addon.lua"/> function onEquip(cid, item, slot) local tabVal = { [2523] = 1, [2195] = 2 } local soma = 0 for k, v in pairs(tabVal) do for slot = 1, 10 do if getPlayerSlotItem(cid, slot).itemid == k then soma = soma + v doPlayerAddOutfit(cid, 128, soma) end end end return true end function onDeEquip(cid, item, slot) local tabVal = { [2523] = 1, [2195] = 2 } local soma = 0 for k, v in pairs(tabVal) do for slot = 1, 10 do if getPlayerSlotItem(cid, slot).itemid == k then soma = soma + v doPlayerAddOutfit(cid, 128, soma) end end end return true end
  18. Toda ves que vo abri o meu servidor apareçe o seguinte erro [3:4:10.854] > ERROR: Couldn't estabilish connection to SQL database! alguem da pra me ajuda ??
  19. Ele simplesmente para de funcionar '-'
  20. Não sei se é a área certa, mas esse aqui é o erro http://prntscr.com/admze3 eu tentei colocar o sistema de vida e mana por porcentagem.
  21. Boa tarde, então essa é a minha primeira vez fazendo site com o gesior e ja me deparei com alguns problemas. bom vamos la! 1- o site só aparece online para mim! eu coloco o ip da minha net e ele entra, mas as outras pessoas n conseguem. obs: portas liberadas no firewall: 7171/7172 Portas liberadas no modem: 7171/7172 443/4433 80/8080 80/8090 2- Ao dar look no char da pessoa, não aparece nada. 3- Ao deslogar o char no ot e depois logar, o char aparece no templo. exemplo: posição do templo: 10160 10054 7 dai vc desloga no 10164 10054 7 o char aparece novamente no 10160 10054 7. E tambem não salva os itens e acredito que o level também não. ex: vc poe 1 wand na bp, desloga e loga, aparece no templo sem ela. Obrigado.
  22. Olá, Seguinte estou enfrentando o seguinte erro em uma das partes de utilizar o vagão para colocar o carvão. Lua Script Error: [Action Interface] data/actions/scripts/quests/the hidden city of beregar/coalWagon.lua:onUse .../scripts/quests/the hidden city of beregar/coalWagon.lua:9: attempt to index field 'wagon' (a number value) stack traceback: [C]: in function '__index' .../scripts/quests/the hidden city of beregar/coalWagon.lua:9: in function <.../scripts/quests/the hidden city of beregar/coalWagon.lua:6> Segue o coalWagon.lua local config = { {wagon = 7131, stopPos = Position(32717, 31492, 11)}, {wagon = 8749, stopPos = Position(32699, 31492, 11)} } function onUse(player, item, fromPosition, target, toPosition, isHotkey) for i = 1, #config do local table = config[i] local wagonPos = table.wagon:getPosition() if table.wagon == 7131 and wagonPos ~= table.stopPos then Tile(wagonPos):getTopTopItem():moveTo(wagonPos, x + 2) elseif table.wagon == 8749 and wagonPos ~= table.stopPos then Tile(wagonPos):getTopTopItem():moveTo(wagonPos, x - 2) end player:say("SQUEEEEAK", TALKTYPE_MONSTER_SAY, false, 0, wagonPos) end return true end Obrigado!
  23. Boa Noite Amigos Do XTibia!! Estou extremamente desesperado... esta aparecendo um erro em meu distro e não estou conseguindo resolver esse erro de jeito nenhum, alguém por favor poderia me ajudar? irei posta o erro que aparece na Distro e os arquivos .lua Estou Usando o TFS 0.4 Versão do server 8.6 Erro que aparece na Distro [02/03/2016 17:32:36] [Error - CreatureScript Interface] [02/03/2016 17:32:36] In a timer event called from: [02/03/2016 17:32:36] data/creaturescripts/scripts/login.lua:onLogin [02/03/2016 17:32:36] Description: [02/03/2016 17:32:36] (luaGetThingPosition) Thing not found [02/03/2016 17:32:36] [Error - CreatureScript Interface] [02/03/2016 17:32:36] In a timer event called from: [02/03/2016 17:32:36] data/creaturescripts/scripts/login.lua:onLogin [02/03/2016 17:32:36] Description: [02/03/2016 17:32:36] (internalGetPlayerInfo) Player not found when requesting player info #6 [02/03/2016 17:32:36] [Error - CreatureScript Interface] [02/03/2016 17:32:36] In a timer event called from: [02/03/2016 17:32:36] data/creaturescripts/scripts/login.lua:onLogin [02/03/2016 17:32:36] Description: [02/03/2016 17:32:36] (internalGetPlayerInfo) Player not found when requesting player info #6 [02/03/2016 17:32:36] [Error - CreatureScript Interface] [02/03/2016 17:32:36] In a timer event called from: [02/03/2016 17:32:36] data/creaturescripts/scripts/login.lua:onLogin [02/03/2016 17:32:36] Description: [02/03/2016 17:32:36] (luaGetCreatureStorage) Creature not found [02/03/2016 17:32:36] [Error - CreatureScript Interface] [02/03/2016 17:32:36] In a timer event called from: [02/03/2016 17:32:36] data/creaturescripts/scripts/login.lua:onLogin [02/03/2016 17:32:36] Description: [02/03/2016 17:32:36] data/lib/Pivi.lua:34: attempt to compare number with boolean [02/03/2016 17:32:36] stack traceback: [02/03/2016 17:32:36] data/lib/Pivi.lua:34: in function <data/lib/Pivi.lua:19> Arquivo Pivi.lua function doUseGem(cid, item) local voc = getPlayerVocation(cid) local interval = gems.interval[voc] if item.itemid ~= gems.id[voc] or getPlayerStorageValue(cid, gems.storage[voc]) > 0 then return FALSE end setPlayerStorageValue(cid, gems.storage[voc], 1) sendGemEffect(cid, gems.storage[voc], gems.interval[voc]) doRemoveItem(item.uid, 1) return TRUE end function sendGemEffect(cid, storage, interval) local pos = getThingPos(cid) local voc = getPlayerVocation(cid) local color = 1 if voc == 5 then color = gemMsg.colorDruid[math.random(1,#gemMsg.colorElderDruid)] elseif voc == 6 then color = gemMsg.colorSorcerer[math.random(1,#gemMsg.colorMasterSorcerer)] elseif voc == 7 then color = gemMsg.colorPaladin[math.random(1,#gemMsg.colorRoyalPaladin)] elseif voc == 8 then color = gemMsg.colorKnight[math.random(1,#gemMsg.colorEliteKnight)] end doSendAnimatedText(pos, gemMsg.rnd[math.random(1,#gemMsg.rnd)], color) if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) >= 1 then addEvent(sendGemEffect, interval, cid, storage, interval) end end function doRemoveGemEffect(cid) if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) < 1 then return FALSE end setPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)], 0) return TRUE end function doRemoveAllGemEffect(cid) for i = 1, table.maxn(gms.storage) do setPlayerStorageValue(cid, gems.storage[i], 0) end return TRUE end function isGemActivated(cid) if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) > 0 then return TRUE end return FALSE end Arquivo Login.lua function onLogin(cid)setPlayerStorageValue(cid, 47112120, 2) local voc = getPlayerVocation(cid) if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) > 0 then sendGemEffect(cid, gems.storage[voc], gems.interval[voc]) end local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then for i = PLAYERLOSS_EXPERIENCE, PLAYERLOSS_ITEMS do doPlayerSetLossPercent(cid, i, getConfigValue('deathLostPercent')) end end registerCreatureEvent(cid, "owned") registerCreatureEvent(cid, "conected") registerCreatureEvent(cid, "boss") registerCreatureEvent(cid, "thalasteleport") registerCreatureEvent(cid, "thalas_teleport") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) registerCreatureEvent(cid, "zombieevent") registerCreatureEvent(cid, "combat") registerCreatureEvent(cid, "forever amulet") return TRUE end
  24. Index of / Name Last modified Size Description www/ 02-Mar-2016 01:24 - Apache/2.2.14 (Ubuntu) Server at stellaot.no-ip.org Port 80
  25. BrunooMaciell

    Plain

    Alguem pode me ajuda com este bug que apareceu!! nao entendi muito bem eu sei que e a database do server mais dei uma trabalhada nela e nao resolveu e nem sei oque seja. ?? Rep++
×
×
  • Criar Novo...