
Histórico de Curtidas
-
Darcio Antonio recebeu reputação de Underewar em trocar de dia para horaSalve man!, testa ai
local config = {
cooldownHours = 6, -- tempo em horas para usar novamente
level = 100,
storage = 30015, -- armazena o timestamp da última vez que usou
requiredItem = 6527,
playerPositions = {
{x = 247, y = 659, z = 13},
{x = 247, y = 660, z = 13},
{x = 247, y = 661, z = 13},
{x = 247, y = 662, z = 13}
},
teleportPositions = {
{x = 189, y = 650, z = 13},
{x = 189, y = 651, z = 13},
{x = 189, y = 652, z = 13},
{x = 189, y = 653, z = 13}
}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1946 then
doTransformItem(item.uid, 1945)
return true
end
local players = {}
for i, pos in ipairs(config.playerPositions) do
local creature = getTopCreature(pos).uid
if creature > 0 and isPlayer(creature) then
-- Verificações individuais
if getPlayerLevel(creature) < config.level then
doPlayerSendCancel(cid, "Todos os jogadores precisam ter level " .. config.level .. " ou mais.")
return true
end
if getPlayerItemCount(creature, config.requiredItem) < 1 then
doPlayerSendCancel(cid, "Todos os jogadores precisam ter o item necessário (ID: " .. config.requiredItem .. ").")
return true
end
local lastUse = getPlayerStorageValue(creature, config.storage)
if lastUse ~= -1 and os.time() - lastUse < (config.cooldownHours * 3600) then
local remaining = math.ceil(((lastUse + config.cooldownHours * 3600) - os.time()) / 60)
doPlayerSendCancel(cid, "Todos os jogadores devem esperar " .. remaining .. " minutos para usar novamente.")
return true
end
table.insert(players, creature)
else
doPlayerSendCancel(cid, "Todos os quadrados precisam estar ocupados por jogadores.")
return true
end
end
-- Tudo ok, teleporta e consome o item
for i, player in ipairs(players) do
doTeleportThing(player, config.teleportPositions[i], false)
doSendMagicEffect(config.playerPositions[i], CONST_ME_POFF)
doSendMagicEffect(config.teleportPositions[i], CONST_ME_ENERGYAREA)
doPlayerRemoveItem(player, config.requiredItem, 1)
setPlayerStorageValue(player, config.storage, os.time())
end
doTransformItem(item.uid, 1946)
return true
end
-
Darcio Antonio recebeu reputação de Razy em Remover a XP que o summon ganha. tfs 0.4Bom vi em vários tutoriais ai da vida, que se colocar isso no config.lua já removia a xp que o summon ganha.
NoShareExpSummonMonster = true MAS NÃO FUNCIONA
O correto é ir na sua source e em criature.cpp e editar essa parte aqui.
void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints) { if(damagePoints < 0) return; uint32_t attackerId = 0; if(attacker) attackerId = attacker->getID(); CountMap::iterator it = damageMap.find(attackerId); if(it != damageMap.end()) { it->second.ticks = OTSYS_TIME(); if(damagePoints > 0) it->second.total += damagePoints; } else damageMap[attackerId] = CountBlock_t(damagePoints); if(damagePoints > 0) lastHitCreature = attackerId; } por essa aqui.
void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints) { uint32_t attackerId = 0; if(attacker) { if(Creature* master = attacker->getMaster()) attacker = master; attackerId = attacker->getID(); } if(attacker->getPlayer()) { CountMap::iterator it = damageMap.find(attackerId); if(it != damageMap.end()) { it->second.ticks = OTSYS_TIME(); if(damagePoints > 0) it->second.total += damagePoints; } else damageMap[attackerId] = CountBlock_t(damagePoints); } if(damagePoints > 0) lastHitCreature = attackerId; } Compila e pronto quando o summon matar a xp vai toda pra você.
-
Darcio Antonio recebeu reputação de Vodkart em Criando conta ou personagem e Ganhando uma casa!Ai @Vodkart sem duvidas vc é o mais pika mano! pqp
-
Darcio Antonio deu reputação a Vodkart em Criando conta ou personagem e Ganhando uma casa!local function doCheckHouses() local ids = {1111,2222,3333} local dias = 3 local tempo = os.time() - (dias * 24 * 60 * 60) local registros = db.storeQuery("SELECT `houses`.`owner`, `houses`.`id` FROM `houses`,`players` WHERE `houses`.`owner` != 0 AND `houses`.`owner` = `players`.`id` AND `players`.`lastlogin` <= " .. tempo .. ";") if registros ~= false then local count = 0 print('house leave code') repeat count = count + 1 local owner = result.getNumber(registros, "owner") local houseId = result.getNumber(registros, "id") local house = House(houseId) if house and (owner > 0) then local house_tiles = house:getTiles() if house_tiles and next(house_tiles) then for x = 1, #house_tiles do local tile = house_tiles[x] local items = tile:getItems() if items and next(items) then for y = 1, #items do local item = items[y] if isInArray(ids, item:getId()) then item:remove() end end end end end print(house:getName()) house:setOwnerGuid(0) end until not result.next(registros) print('house leave house count:' .. count) result.free(registros) end end function onStartup() addEvent(doCheckHouses, 10 * 1000) return true end
aqui vc edita os ids
local ids = {1111,2222,3333} -
Darcio Antonio recebeu reputação de Nother em Remover a XP que o summon ganha. tfs 0.4Bom vi em vários tutoriais ai da vida, que se colocar isso no config.lua já removia a xp que o summon ganha.
NoShareExpSummonMonster = true MAS NÃO FUNCIONA
O correto é ir na sua source e em criature.cpp e editar essa parte aqui.
void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints) { if(damagePoints < 0) return; uint32_t attackerId = 0; if(attacker) attackerId = attacker->getID(); CountMap::iterator it = damageMap.find(attackerId); if(it != damageMap.end()) { it->second.ticks = OTSYS_TIME(); if(damagePoints > 0) it->second.total += damagePoints; } else damageMap[attackerId] = CountBlock_t(damagePoints); if(damagePoints > 0) lastHitCreature = attackerId; } por essa aqui.
void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints) { uint32_t attackerId = 0; if(attacker) { if(Creature* master = attacker->getMaster()) attacker = master; attackerId = attacker->getID(); } if(attacker->getPlayer()) { CountMap::iterator it = damageMap.find(attackerId); if(it != damageMap.end()) { it->second.ticks = OTSYS_TIME(); if(damagePoints > 0) it->second.total += damagePoints; } else damageMap[attackerId] = CountBlock_t(damagePoints); } if(damagePoints > 0) lastHitCreature = attackerId; } Compila e pronto quando o summon matar a xp vai toda pra você.
-
Darcio Antonio recebeu reputação de cetronic em Item not found on shopItem listDependendo a versão é so trocar a pasta npcsystem por essa aqui
https://www.mediafire.com/file/jtx8o7b2k8bft2o/npcsystem.zip/file
Está em português os npcs então se quiser em inglês é só traduzir ok!
-
Darcio Antonio recebeu reputação de KawoBR em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio recebeu reputação de Dasdor em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio recebeu reputação de Sphynx1 em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio recebeu reputação de Soleister em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio recebeu reputação de danielkill62 em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio deu reputação a
Nazoem [PEDIDO] Script qe puxa todos os playersToma:
<talkaction words="/teleportall" value="teleportall.lua"/> function onSay(player, words, param) if not player:getGroup():getAccess() then return false end local playerPosition = player:getPosition() local players = Game.getPlayers() for _, p in ipairs(players) do p:teleportTo(playerPosition, true) end return true end
-
Darcio Antonio recebeu reputação de adrianok em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio recebeu reputação de caionak em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio recebeu reputação de Soaresdk em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio recebeu reputação de Feel The Fury em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio recebeu reputação de GOD Vitor em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio recebeu reputação de DevMorgan em Comando que adiciona pontos no site pelo game@DevMorgan Vlw man
-
Darcio Antonio recebeu reputação de Tauzyu em Remover a XP que o summon ganha. tfs 0.4Bom vi em vários tutoriais ai da vida, que se colocar isso no config.lua já removia a xp que o summon ganha.
NoShareExpSummonMonster = true MAS NÃO FUNCIONA
O correto é ir na sua source e em criature.cpp e editar essa parte aqui.
void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints) { if(damagePoints < 0) return; uint32_t attackerId = 0; if(attacker) attackerId = attacker->getID(); CountMap::iterator it = damageMap.find(attackerId); if(it != damageMap.end()) { it->second.ticks = OTSYS_TIME(); if(damagePoints > 0) it->second.total += damagePoints; } else damageMap[attackerId] = CountBlock_t(damagePoints); if(damagePoints > 0) lastHitCreature = attackerId; } por essa aqui.
void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints) { uint32_t attackerId = 0; if(attacker) { if(Creature* master = attacker->getMaster()) attacker = master; attackerId = attacker->getID(); } if(attacker->getPlayer()) { CountMap::iterator it = damageMap.find(attackerId); if(it != damageMap.end()) { it->second.ticks = OTSYS_TIME(); if(damagePoints > 0) it->second.total += damagePoints; } else damageMap[attackerId] = CountBlock_t(damagePoints); } if(damagePoints > 0) lastHitCreature = attackerId; } Compila e pronto quando o summon matar a xp vai toda pra você.
-
Darcio Antonio recebeu reputação de Soaresdk em Comando que adiciona pontos no site pelo gameOTX e TFS 0.4 Tibia 8.60
Bom esse comando funciona para quem usa o site ZnoteAcc.
Primeiro vá em
data/libs/050-function.lua E adicione isso na ultima linha.
-- [ Sistema de Pontos ZnoteAcc in Game ] function getPointsp(cid) local res = db.getResult('select `points` from znote_accounts where account_id = \''..getPlayerAccountId(cid)..'\'') if(res:getID() == -1) then return false end local ret = res:getDataInt("points") res:free() return tonumber(ret) end function doPlayerAddPointsp(cid, quant) return db.query("UPDATE `znote_accounts` SET `points` = '".. getPointsp(cid) + quant .."' WHERE `account_id` ='"..getPlayerAccountId(cid).."'") end function doPlayerRemovePointsp(cid, quant) return db.query("UPDATE `znote_accounts` SET `points` = '".. getPointsp(cid) - quant .."' WHERE `account_id` ='"..getPlayerAccountId(cid).."'") end -- [ Sistema de Pontos ZnoteAcc in Game ] Use essas função para adicionar pontos para o jogador.
doPlayerAddPointsp(cid, 1) Use essas função para remover pontos do jogador.
doPlayerRemovePointsp(cid, 1) Use essa função para checar os pontos do jogador caso queira fazer uma Quest ou algo do gênero.
if getPointsp(cid) < 1 then doPlayerSendTextMessage(cid, 22,"Você não tem pontos no site") end Se você quiser criar um item que quando player use de 1 ponto no site para ele use esse script.
Crie um arquivo LUA em data/actions/scripts com o nome de PontoSite.lua e adicione isso dentro.
function onUse(cid, item, frompos, item2, topos) doSendMagicEffect(getCreaturePosition(cid), 30) doPlayerAddPointsp(cid, 1) doPlayerSendTextMessage(cid, 22,"Você recebeu 1 ponto no site") doRemoveItem(item.uid) return true end Agora adicione a tag abaixo em data/action/actions.xml
<action itemid="ID DO ITEM" script="PontoSite.lua"/> Pronto, quando o player usar o item o item sera removido e ele ganhara 1 ponto no site.
Vlw espero ajudar aguem com isso.
-
Darcio Antonio recebeu reputação de KotZletY em Criando um Botão OT CLIENTgame_topslot.zi
Bom o scan do arquivo está ai.
https://www.virustotal.com/#/file/5a0b17722b93fd4c9117086b80ad24442c305a05723680cad34ec50138ef30bc/detection
-
Darcio Antonio recebeu reputação de tataboy67 em Comando que adiciona pontos no site pelo gameOTX e TFS 0.4 Tibia 8.60
Bom esse comando funciona para quem usa o site ZnoteAcc.
Primeiro vá em
data/libs/050-function.lua E adicione isso na ultima linha.
-- [ Sistema de Pontos ZnoteAcc in Game ] function getPointsp(cid) local res = db.getResult('select `points` from znote_accounts where account_id = \''..getPlayerAccountId(cid)..'\'') if(res:getID() == -1) then return false end local ret = res:getDataInt("points") res:free() return tonumber(ret) end function doPlayerAddPointsp(cid, quant) return db.query("UPDATE `znote_accounts` SET `points` = '".. getPointsp(cid) + quant .."' WHERE `account_id` ='"..getPlayerAccountId(cid).."'") end function doPlayerRemovePointsp(cid, quant) return db.query("UPDATE `znote_accounts` SET `points` = '".. getPointsp(cid) - quant .."' WHERE `account_id` ='"..getPlayerAccountId(cid).."'") end -- [ Sistema de Pontos ZnoteAcc in Game ] Use essas função para adicionar pontos para o jogador.
doPlayerAddPointsp(cid, 1) Use essas função para remover pontos do jogador.
doPlayerRemovePointsp(cid, 1) Use essa função para checar os pontos do jogador caso queira fazer uma Quest ou algo do gênero.
if getPointsp(cid) < 1 then doPlayerSendTextMessage(cid, 22,"Você não tem pontos no site") end Se você quiser criar um item que quando player use de 1 ponto no site para ele use esse script.
Crie um arquivo LUA em data/actions/scripts com o nome de PontoSite.lua e adicione isso dentro.
function onUse(cid, item, frompos, item2, topos) doSendMagicEffect(getCreaturePosition(cid), 30) doPlayerAddPointsp(cid, 1) doPlayerSendTextMessage(cid, 22,"Você recebeu 1 ponto no site") doRemoveItem(item.uid) return true end Agora adicione a tag abaixo em data/action/actions.xml
<action itemid="ID DO ITEM" script="PontoSite.lua"/> Pronto, quando o player usar o item o item sera removido e ele ganhara 1 ponto no site.
Vlw espero ajudar aguem com isso.
-
Darcio Antonio recebeu reputação de Vodkart em Comando que adiciona pontos no site pelo gameOTX e TFS 0.4 Tibia 8.60
Bom esse comando funciona para quem usa o site ZnoteAcc.
Primeiro vá em
data/libs/050-function.lua E adicione isso na ultima linha.
-- [ Sistema de Pontos ZnoteAcc in Game ] function getPointsp(cid) local res = db.getResult('select `points` from znote_accounts where account_id = \''..getPlayerAccountId(cid)..'\'') if(res:getID() == -1) then return false end local ret = res:getDataInt("points") res:free() return tonumber(ret) end function doPlayerAddPointsp(cid, quant) return db.query("UPDATE `znote_accounts` SET `points` = '".. getPointsp(cid) + quant .."' WHERE `account_id` ='"..getPlayerAccountId(cid).."'") end function doPlayerRemovePointsp(cid, quant) return db.query("UPDATE `znote_accounts` SET `points` = '".. getPointsp(cid) - quant .."' WHERE `account_id` ='"..getPlayerAccountId(cid).."'") end -- [ Sistema de Pontos ZnoteAcc in Game ] Use essas função para adicionar pontos para o jogador.
doPlayerAddPointsp(cid, 1) Use essas função para remover pontos do jogador.
doPlayerRemovePointsp(cid, 1) Use essa função para checar os pontos do jogador caso queira fazer uma Quest ou algo do gênero.
if getPointsp(cid) < 1 then doPlayerSendTextMessage(cid, 22,"Você não tem pontos no site") end Se você quiser criar um item que quando player use de 1 ponto no site para ele use esse script.
Crie um arquivo LUA em data/actions/scripts com o nome de PontoSite.lua e adicione isso dentro.
function onUse(cid, item, frompos, item2, topos) doSendMagicEffect(getCreaturePosition(cid), 30) doPlayerAddPointsp(cid, 1) doPlayerSendTextMessage(cid, 22,"Você recebeu 1 ponto no site") doRemoveItem(item.uid) return true end Agora adicione a tag abaixo em data/action/actions.xml
<action itemid="ID DO ITEM" script="PontoSite.lua"/> Pronto, quando o player usar o item o item sera removido e ele ganhara 1 ponto no site.
Vlw espero ajudar aguem com isso.
-
Darcio Antonio recebeu reputação de Fabio Leandro em Transferência de Points entre PlayersQual o sentido desse comando aqui ?
<talkaction words="!info;/info" event="script" value="talkpopup.lua"/>
-
Darcio Antonio recebeu reputação de Soaresdk em Remover a XP que o summon ganha. tfs 0.4Bom vi em vários tutoriais ai da vida, que se colocar isso no config.lua já removia a xp que o summon ganha.
NoShareExpSummonMonster = true MAS NÃO FUNCIONA
O correto é ir na sua source e em criature.cpp e editar essa parte aqui.
void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints) { if(damagePoints < 0) return; uint32_t attackerId = 0; if(attacker) attackerId = attacker->getID(); CountMap::iterator it = damageMap.find(attackerId); if(it != damageMap.end()) { it->second.ticks = OTSYS_TIME(); if(damagePoints > 0) it->second.total += damagePoints; } else damageMap[attackerId] = CountBlock_t(damagePoints); if(damagePoints > 0) lastHitCreature = attackerId; } por essa aqui.
void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints) { uint32_t attackerId = 0; if(attacker) { if(Creature* master = attacker->getMaster()) attacker = master; attackerId = attacker->getID(); } if(attacker->getPlayer()) { CountMap::iterator it = damageMap.find(attackerId); if(it != damageMap.end()) { it->second.ticks = OTSYS_TIME(); if(damagePoints > 0) it->second.total += damagePoints; } else damageMap[attackerId] = CountBlock_t(damagePoints); } if(damagePoints > 0) lastHitCreature = attackerId; } Compila e pronto quando o summon matar a xp vai toda pra você.