Histórico de Curtidas
-
ExtremyDsgnr deu reputação a DukeeH em (Resolvido)Gesior fora de esquadro@ExtremyDsgnr
Favor testar e me mandar print caso não tenha dado, estou sem ter como testar.
Não entendi o erro da pagina de castle que você falou.
-
ExtremyDsgnr deu reputação a thelifeofpbion em Gesior pagina bugada e themebox castle@ExtremyDsgnr
ta amigo, você quer que a gente te ajude como se você nao posta os códigos?
-
ExtremyDsgnr deu reputação a kiinho em Gesior nao mostra quem ta online BUGNa página whoisonline
-
ExtremyDsgnr deu reputação a KotZletY em (Resolvido)(AJUDA) nao consigo colocar 2 exp potion@ExtremyDsgnr
-
ExtremyDsgnr deu reputação a Rebreak em Mudar a cor do latestnewsIsso sao Imagens basta procurar em Layout, Umas Delas estao em Content
-
ExtremyDsgnr deu reputação a Fir3element em [talkaction] !comprar skill/magiclevelNome: Comprar skill/magic level Versão testada: TFS 0.3.6pl1 / 0.4 / 0.3.7 Créditos: fireelement Exemplo de uso: !comprar club !comprar magiclevel Vá em data/talkactions/talkactions.xml e adicione essa tag:
<talkaction words="!comprar;/comprar" event="script" value="comprar.lua"/> Agora vá em data/talkactions/scripts/ e crie um arquivo com o nome comprar.lua e cole isso nele:
local config = { protectZone = "sim", -- Precisa estar em PZ para usar o comando? skill = { item = 9971, -- Item removido quantidade = 10, -- Quantidade quantidadeskill = 10, -- Skill adicionada limiteskill = 350 -- Limite }, magicLevel = { item = 9971, -- Item removido quantidade = 15, -- Quantidade quantidademl = 5, -- Magic level adicionado limitedeml = 200 -- Limite }, skillID = { -- ID das skills ["club"] = SKILL_CLUB, ["sword"]= SKILL_SWORD, ["axe"] = SKILL_AXE, ["distance"] = SKILL_DISTANCE, ["shielding"] = SKILL_SHIELD }, vocationSkill = { -- Vocações que pode comprar x skill ["club"] = {4, 8}, ["sword"] = {4, 8}, ["axe"] = {4, 8}, ["distance"] = {3, 7}, ["shielding"] = {4, 8} }, vocationMagicLevel = {1, 2, 5, 6}, -- Vocações que pode comprar magic level delay = { skill = { storage = 45, duration = 5 -- Tempo para comprar skill novamente }, magicLevel = { storage = 97, duration = 5 -- Tempo para comprar magic level novamente } } } function onSay(cid, words, param, channel) if config.protectZone == "sim" and not getTilePzInfo(getCreaturePosition(cid)) then return doPlayerSendCancel(cid, "Você precisa estar em protection zone para comprar.") end if param == "magiclevel" then if getPlayerMagLevel(cid) < config.magicLevel.limitedeml then if isInArray(config.vocationMagicLevel, getPlayerVocation(cid)) then if doPlayerRemoveItem(cid, config.magicLevel.item, config.magicLevel.quantidade) then if (os.time() - getPlayerStorageValue(cid, config.delay.magicLevel.storage)) >= config.delay.magicLevel.duration then setPlayerStorageValue(cid, config.delay.magicLevel.storage, os.time()) doRemoveCreature(cid, true) local playerId = getPlayerGUID(cid) db.executeQuery("UPDATE `players` SET `maglevel` = `maglevel` + " .. config.magicLevel.quantidademl .. " WHERE `id` = " .. playerId) else doPlayerSendCancel(cid, "Espere " .. config.delay.magicLevel.duration .. " segundos para comprar novamente.") end else doPlayerSendCancel(cid, "Você não tem o item requerido.") end else doPlayerSendCancel(cid, "Voce não pode comprar magic level.") end else doPlayerSendCancel(cid, "Você chegou no limite de magic level.") end elseif config.skillID[string.lower(param)] then if getPlayerSkill(cid, config.skillID[string.lower(param)]) < config.skill.limiteskill then if isInArray(config.vocationSkill[string.lower(param)], getPlayerVocation(cid)) then if doPlayerRemoveItem(cid, config.skill.item, config.skill.quantidade) then if (os.time() - getPlayerStorageValue(cid, config.delay.skill.storage)) >= config.delay.skill.duration then setPlayerStorageValue(cid, config.delay.skill.storage, os.time()) doRemoveCreature(cid, true) local playerId = getPlayerGUID(cid) db.executeQuery("UPDATE `player_skills` SET `value` = `value` + " .. config.skill.quantidadeskill .. " WHERE `player_id` = " .. playerId .. " and `skillid` = " .. config.skillID[string.lower(param)]) else doPlayerSendCancel(cid, "Espere " .. config.delay.skill.duration .. " segundos para comprar novamente.") end else doPlayerSendCancel(cid, "Você não tem o item requerido.") end else doPlayerSendCancel(cid, "Voce não pode comprar este skill.") end else doPlayerSendCancel(cid, "Você chegou no limite de skill.") end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Possíveis parâmetros: club, sword, axe, distance, shielding, magiclevel.") end return true end -
ExtremyDsgnr recebeu reputação de mattosotavio em (Resolvido)Gesior do MatheusTK BUGkkkkk desculpa
-
ExtremyDsgnr recebeu reputação de mattosotavio em (Resolvido)Gesior do MatheusTK BUGele nao colocou install.php junto ao gesior fazendo com oque todos usassem a database dele, porem o site nao abre, aparece esse erro ao digitar localhost.
Warning: parse_ini_file(C:\Users\Otavio Mattos\Desktop\tibia\baiak vinny (war system)config.lua) [function.parse-ini-file]: failed to open stream: No such file or directory in F:\xampp\htdocs\config-and-functions.php on line 13
Database error. Unknown database type in C:\Users\Otavio Mattos\Desktop\tibia\baiak vinny (war system)config.lua . Must be equal to: "mysql" or "sqlite". Now is: ""
Por falta de atençao estava faltando apenas uma barrinha no final do diretorio no config.ini
-
ExtremyDsgnr deu reputação a Vodkart em (Resolvido)War System no sqlite com erro no acceptCREATE TABLE IF NOT EXISTS `guild_wars` ( `id` INT, `guild_id` INT NOT NULL, `enemy_id` INT NOT NULL, `begin` BIGINT NOT NULL DEFAULT 0, `end` BIGINT NOT NULL DEFAULT 0, `frags` INT NOT NULL DEFAULT 0, `payment` BIGINT NOT NULL DEFAULT 0, `guild_kills` INT NOT NULL DEFAULT 0, `enemy_kills` INT NOT NULL DEFAULT 0, `status` TINYINT(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) )
-
ExtremyDsgnr deu reputação a WhiteClown em Gesior erro latestnews.phpmais acredito que nao seja o gesior pois aconteceu em todos que coloquei ate agora...
-
ExtremyDsgnr deu reputação a WhiteClown em Gesior erro latestnews.phpnao deu
-
ExtremyDsgnr deu reputação a WhiteClown em Gesior erro latestnews.phpnao tem esse local aqui no xampp nem no htdocs
-
ExtremyDsgnr deu reputação a WhiteClown em Gesior erro latestnews.phpEntao, eu ja baixei varios gesiors agora estou com da chaitosoft ele funciona bem, e sem bugs mais tem um porem, em todos que baixei nao so nesse esta dando esse erro que nao sei oque (esta na imagem abaixo) se alguem puder ajudar agradeço ou entao tiver um gesior bom que compense usar realmente pra me passar...
-
ExtremyDsgnr deu reputação a WhiteClown em Gesior entrega itens sem parar TFS 0.4Entao, ja tentei de todas as formas, porem nao resolveu...
ja tentei o metodo de trocar o execute query por quer ND
ja usei todos os shop.lua que achei nos topicos por ai ND
ja usei no xml 30 3000 30000, e nada tambem, uso tfs 0.4 e aparece um erro no meu distro que e o da imagem abaixo... os itens ficam chegando sem parar, ja adicionei tambem no constant.lua aquela tagzinha e nd tambem
meu shop lua>
local SHOP_MSG_TYPE = MESSAGE_EVENT_ORANGE
local SQL_interval = 30
function onThink(interval, lastExecution)
local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';")
if(result_plr:getID() ~= -1) then
while(true) do
local id = tonumber(result_plr:getDataInt("id"))
local action = tostring(result_plr:getDataString("action"))
local delete = tonumber(result_plr:getDataInt("delete_it"))
local cid = getCreatureByName(tostring(result_plr:getDataString("name")))
if isPlayer(cid) then
local itemtogive_id = tonumber(result_plr:getDataInt("param1"))
local itemtogive_count = tonumber(result_plr:getDataInt("param2"))
local container_id = tonumber(result_plr:getDataInt("param3"))
local container_count = tonumber(result_plr:getDataInt("param4"))
local add_item_type = tostring(result_plr:getDataString("param5"))
local add_item_name = tostring(result_plr:getDataString("param6"))
local received_item = 0
local full_weight = 0
if add_item_type == 'container' then
container_weight = getItemWeightById(container_id, 1)
if isItemRune(itemtogive_id) == TRUE then
items_weight = container_count * getItemWeightById(itemtogive_id, 1)
else
items_weight = container_count * getItemWeightById(itemtogive_id, itemtogive_count)
end
full_weight = items_weight + container_weight
else
full_weight = getItemWeightById(itemtogive_id, itemtogive_count)
if isItemRune(itemtogive_id) == TRUE then
full_weight = getItemWeightById(itemtogive_id, 1)
else
full_weight = getItemWeightById(itemtogive_id, itemtogive_count)
end
end
local free_cap = getPlayerFreeCap(cid)
if full_weight <= free_cap then
if add_item_type == 'container' then
local new_container = doCreateItemEx(container_id, 1)
local iter = 0
while iter ~= container_count do
doAddContainerItem(new_container, itemtogive_id, itemtogive_count)
iter = iter + 1
end
received_item = doPlayerAddItemEx(cid, new_container)
else
local new_item = doCreateItemEx(itemtogive_id, itemtogive_count)
doItemSetAttribute(new_item, "description", "This item can only be used by the player ".. getPlayerName(cid) .."!")
doItemSetAttribute(new_item, "aid", getPlayerGUID(cid)+10000)
received_item = doPlayerAddItemEx(cid, new_item)
end
if received_item == RETURNVALUE_NOERROR then
doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'Voce recebeu >> '.. add_item_name ..' << do Street Shop. Obrigado pela compra, volte sempre!')
db.query("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";")
db.query("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";")
else
doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.')
end
else
doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.')
end
end
if not(result_plr:next()) then
break
end
end
result_plr:free()
end
return true
end
up
-
ExtremyDsgnr recebeu reputação de mattosotavio em Gesior entrega itens sem parar AJUDAdeixei tudo as versao ali, tfs 0.4 gesior do matheus tk
meu shop.lua e esse (funcionava no antigo direitinho troquei map nao funciona mais)
local SHOP_MSG_TYPE = MESSAGE_EVENT_ORANGE
local SQL_interval = 30
function onThink(interval, lastExecution)
local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';")
if(result_plr:getID() ~= -1) then
while(true) do
local id = tonumber(result_plr:getDataInt("id"))
local action = tostring(result_plr:getDataString("action"))
local delete = tonumber(result_plr:getDataInt("delete_it"))
local cid = getCreatureByName(tostring(result_plr:getDataString("name")))
if isPlayer(cid) then
local itemtogive_id = tonumber(result_plr:getDataInt("param1"))
local itemtogive_count = tonumber(result_plr:getDataInt("param2"))
local container_id = tonumber(result_plr:getDataInt("param3"))
local container_count = tonumber(result_plr:getDataInt("param4"))
local add_item_type = tostring(result_plr:getDataString("param5"))
local add_item_name = tostring(result_plr:getDataString("param6"))
local received_item = 0
local full_weight = 0
if add_item_type == 'container' then
container_weight = getItemWeightById(container_id, 1)
if isItemRune(itemtogive_id) == TRUE then
items_weight = container_count * getItemWeightById(itemtogive_id, 1)
else
items_weight = container_count * getItemWeightById(itemtogive_id, itemtogive_count)
end
full_weight = items_weight + container_weight
else
full_weight = getItemWeightById(itemtogive_id, itemtogive_count)
if isItemRune(itemtogive_id) == TRUE then
full_weight = getItemWeightById(itemtogive_id, 1)
else
full_weight = getItemWeightById(itemtogive_id, itemtogive_count)
end
end
local free_cap = getPlayerFreeCap(cid)
if full_weight <= free_cap then
if add_item_type == 'container' then
local new_container = doCreateItemEx(container_id, 1)
local iter = 0
while iter ~= container_count do
doAddContainerItem(new_container, itemtogive_id, itemtogive_count)
iter = iter + 1
end
received_item = doPlayerAddItemEx(cid, new_container)
else
local new_item = doCreateItemEx(itemtogive_id, itemtogive_count)
doItemSetAttribute(new_item, "description", "This item can only be used by the player ".. getPlayerName(cid) .."!")
doItemSetAttribute(new_item, "aid", getPlayerGUID(cid)+10000)
received_item = doPlayerAddItemEx(cid, new_item)
end
if received_item == RETURNVALUE_NOERROR then
doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'Voce recebeu >> '.. add_item_name ..' << do Street Shop.Obrigado pela compra, volte sempre!')
db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";")
db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";")
else
doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.')
end
else
doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.')
end
end
if not(result_plr:next()) then
break
end
end
result_plr:free()
end
return true
end
-
ExtremyDsgnr recebeu reputação de mattosotavio em Gesior entrega itens sem parar AJUDAJa tentei todos os shop.lua de todos os tutoriais que ja vi nenhum deu certo ja tentei no xml 30 3000 e 30000 nenhum deu certo e tbm ja tentei todos os scripts com executequery e so query, entao resolvi abrir meu proprio topico, no distro acusa um erro que e o da imagem, ja nen sei mais oque fazer entao espero que ajudem...
-
ExtremyDsgnr deu reputação a psychonaut em Error while saving player ajudeem porfavorTá errado o seu sql, tem que criar uma tabela cast e ir criando o que for dando errado.
-
ExtremyDsgnr deu reputação a psychonaut em Error while saving player ajudeem porfavorNão dou suporte via skype, tu tem que ir no phpmyadmin e criar uma nova tabela chamada cast.
-
ExtremyDsgnr deu reputação a psychonaut em Error while saving player ajudeem porfavorClica no banco de dados no phpmyadmin, la em baixo vai aparecer pra criar nova tabela. Nas colunas põe uma só com qualquer coisa, ai você vai ligando o servidor, vai dar um erro falando o que você tem que ir criando la. Ou vê aonde você pegou o sistema de cast se não veio com nenhuma scheme, algum arquivo .sql pra importar, é estranho não vir.
http://www.w3resource.com/mysql/Mysql-pics/create-table-phpmyadmin.png
-
ExtremyDsgnr deu reputação a Wakon em Error while saving player ajudeem porfavorOlá, use títulos adequados em seus tópicos, leia as regras:
http://www.tibiaking.com/forum/topic/1281-regras-gerais/