Tudo que tetheuscunha postou
-
(Resolvido)Quantidade RANDOM
Como Colocar pra mensagem aparecer com a quantidade random que ganhou? str = str .. amount .. ' ' .. getItemNameById(item_id) .. ' '..(i ~= table.maxn(items) and ', ' or '.')
- [8.6] Teleport System!
- [8.6] Teleport System!
- [8.6] Teleport System!
-
RME 3.2 nao Carrega SPAWN
Aparece algum erro quando abre o RME??
-
You healed yourself for x hitpoints
@FlavioHulk Então, conseguiu??
-
(Resolvido)Event Creaturescripts
Tenta assim: local config = { playerCount = 3915, -- Global storage for counting the players left/entered in the event fromPosition = {x = 1163, y = 1056, z = 7}, -- top left cornor of the playground toPosition = {x = 1187, y = 1083, z = 7}, -- bottom right cornor of the playground } local boss1 = "Agorak" local players = {} for _, pid in ipairs(getPlayersOnline()) do if isInRange(getPlayerPosition(pid), config.fromPosition, config.toPosition) then table.insert(players, pid) end end function onDeath(cid) if isMonster and getCreatureName(cid) == boss1 then if isInArea(getPlayerPosition(cid), config.fromPosition, config.toPosition) then doBroadcastMessage("O boss (".. boss1 .. ") foi morto e os jogadores dentro do World Boss Event foram recompensados com 10 event coins, 10 crystal coins e 5 event points.", MESSAGE_STATUS_CONSOLE_BLUE) for i = 1, 10 do doPlayerAddItem(players, 2159, 10) doPlayerAddItem(players, 2160, 10) doPlayerAddPontos(players, 5) end end end
-
Erros no otserv
Creio que tem alguma função na tua distro que precissa dessas tabelas na SQL, voce vai ter que criar as tabelas.
-
Erros no otserv
db.query("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";") - Atualizar o WORLD dos players db.query("DELETE FROM `guild_wars` WHERE `status` = 0 AND `begin` < " .. (os.time() - 2 * 86400) .. ";") - Deletar Guilds (acho que as que estão inativa) db.query("UPDATE `guild_wars` SET `status` = 5, `end` = " .. os.time() .. " WHERE `status` = 1 AND `end` > 0 AND `end` < " .. os.time() .. ";") - Isto e uma função do GuildWar
-
Erros no otserv
Tenta assim :
-
(Resolvido)Event Creaturescripts
Aparece na distro algum erro??
-
Erros no otserv
Seus erros são basicamente : 1- Não existe aquela tabela na sua database (porém a distro parece que criou elas) 2- Os monsters não estão catalogados no monsters.xml 3- Poste o arquivo start.lua para da uma olhada (entre spoilers)
-
You healed yourself for x hitpoints
game.cpp
-
You healed yourself for x hitpoints
- You healed yourself for x hitpoints
Quando da algum healing. exura, exura san,exura gran, exura vita, potions, runes vale pra mana e pra health. Igual distro OTX- You healed yourself for x hitpoints
Olá, gostaria da ajudar para adicionar "You healed yourself for x hitpoints" na distro da TFS 0.4 8.6- BAU QUE SÓ PEGA A CADA 1 HORA
Tem um erro ali : getPlayerStorageValue(cid, storage, os.time() + daysvalue) Teste este: function onUse(cid, item, fromPosition, itemEx, toPosition) local daysvalue = 1 * 24 * 60 * 60 storage = 928938923 local daily = getPlayerStorageValue(cid, 928938923) if getPlayerStorageValue(cid, storage) <= os.time() then setPlayerStorageValue(cid, storage, os.time() + daysvalue) local item = doPlayerAddItem(cid, 1990) doItemSetAttribute(item, "description", " Premio Diario [FREE].") doItemSetAttribute(item, 'aid', 10032) doSendMagicEffect(getThingPos(cid), 29) else local left = getPlayerStorageValue(cid, storage) - os.time() left = {hour = math.floor(left/3600), minutes = math.ceil((left % 3600)/60)} doPlayerSendCancel(cid, 'You have to wait '.. left.hour ..'h and '..left.minutes..'min [1 present per account].') doSendMagicEffect(getThingPos(cid), 2) end return true end- Gesior Vender Storage
Olá, gostaria de colocar para o gesior vender storage, tenho alguns sistemas, gostaria de colocar pra vender no site sem a necessidade de criar um item no server para adicionar tal storage. Utilizo : GesiorACC 2012 modificado by Natanael Beckman, TFS 0.4 (rev 8773) Shopsystem.php Shopadmin.php- Erro na Distro do Servidor
Você colocou o ip do hamachi no config.lua?- Aura healing system
Funcionou não. Ele só solta um efeito e para. E também qualquer um pode usar, quero que só quem tem o storage 25950 possa usar.- Aura healing system
- Aura healing system
Ihh mano, valeu. Só tem um erro, ele esta funcionando em todos os players, eu quero que funcione só em quem tem a storage @EDIT: Consegui Arrumar, VLW @Edit2: Te pergunta tem como colocar uma condição que dentro do templo não funciona??? somente dentro de area PZ, pra não sobrecarregar os efeitos no templo- Aura healing system
Olá, gostaria da ajuda de voces para transformar esse talkactions em Login e Logout. -- CONFIGURAÇÕES aurastr = 25950 -- storage da aura estr = 25951 -- storage para o exhaust porcentagem = 40 -- chance de curar em cada volta da aura, em porcentagem quantheal = 10 -- porcentagem do hp máximo que cada cura irá curar. (No caso, irá curar 10% do hp máximo cada cura) tempo = 1180 -- tempo para dar uma volta no player (este tempo foi o que achei mais agradável visualmente, é recomendável não mudar) tipoaura = 30 -- número do efeito da aura (efeito de distância, pode ser identificado com /x no jogo) efeitocura = 49 -- número do efeito quando a cura chega ao player (efeito de posição fixa, pode ser identificado com /z no jogo) -- Função que chama a aura function efeitosAura(i,tm,cid) if(isCreature(cid)) then local atual = getCreaturePosition(cid) local posaura = { {x=(atual.x)-1, y=(atual.y)-1, z=atual.z}, {x=atual.x, y=(atual.y)-1, z=atual.z}, {x=(atual.x)+1, y=(atual.y)-1, z=atual.z}, {x=(atual.x)+1, y=atual.y, z=atual.z}, {x=(atual.x)+1, y=(atual.y)+1, z=atual.z}, {x=atual.x, y=(atual.y)+1, z=atual.z}, {x=(atual.x)-1, y=(atual.y)+1, z=atual.z}, {x=(atual.x)-1, y=atual.y, z=atual.z}, } local chances = math.random(100) if(chances<=porcentagem/8 and getCreatureHealth(cid)<getCreatureMaxHealth(cid)) then doCreatureAddHealth(cid, getCreatureMaxHealth(cid)/quantheal) if(i<=8 and i>1) then doSendDistanceShoot({x=posaura[i].x, y=posaura[i].y, z=posaura[i].z}, atual, tipoaura) else doSendDistanceShoot({x=posaura[1].x, y=posaura[1].y, z=posaura[1].z}, atual, tipoaura) end doSendMagicEffect(atual, efeitocura) end if(i==8) then doSendDistanceShoot({x=posaura[i].x, y=posaura[i].y, z=posaura[i].z}, {x=posaura[1].x, y=posaura[1].y, z=posaura[1].z}, tipoaura) elseif(i<8) then doSendDistanceShoot({x=posaura[i].x, y=posaura[i].y, z=posaura[i].z}, {x=posaura[i+1].x, y=posaura[i+1].y, z=posaura[i+1].z}, tipoaura) end if(i<=8 and getPlayerStorageValue(cid, aurastr)==2) then i = i+1 tm = tempo/8 return addEvent(efeitosAura,tm,i,tm,cid) elseif(i>8 and getPlayerStorageValue(cid, aurastr)==2) then return efeitosAura(1,0,cid) else return TRUE end else return TRUE end end -- Função principal function onSay(cid, words, param, channel) if(param=="on") then if getPlayerStorageValue(cid, estr) > os.time() then doPlayerSendCancel(cid, "Espere "..(getPlayerStorageValue(cid, estr) - os.time()).." segundos para poder habilitar aura novamente.") else if(getPlayerStorageValue(cid, aurastr)==2) then doPlayerSendCancel(cid,"Sua aura já está habilitada.") elseif(getPlayerStorageValue(cid, aurastr)==-1) then doPlayerSendCancel(cid,"Aura ligada!") setPlayerStorageValue(cid, aurastr, 2) efeitosAura(1,tempo/8,cid) end end elseif(param=="off") then if(getPlayerStorageValue(cid, aurastr)==2) then setPlayerStorageValue(cid, estr, os.time()+2) setPlayerStorageValue(cid, aurastr, -1) doPlayerSendCancel(cid,"Aura desligada!") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Digite '!aura on' para ligar sua aura, e '!aura off' para desligá-la.") end return TRUE end- [8.6][MODS] AutoLoot By Account! [+Item]
- Healing Show
Olá, gostaria que só mostrasse o healing se tiver com a mana vazia, se tiver cheia não aparece nada. TFS 0.4 (3884) - You healed yourself for x hitpoints
Informação Importante
Confirmação de Termo