Ir para conteúdo

Tiago6795

Membro
  • Registro em

  • Última visita

Tudo que Tiago6795 postou

  1. Boa tarde galera, tenhu um global 8.60, porem meu executável veio 32 bits ! e meu pc é 64, alguem tem algum executável 64 bits fazendo o favor ? ja tentei compilar mas não consigo. tenho as sourcers 3884 e 3777 mas não sei compilar, ja segui diversos tutoriais
  2. @77mateus77 sim, estão normais o ID, count, itemID1, o ID e itemID1 estão iguais. se caso alterarmos o LuaGetItemWeight pra LuaGetItemWeightID, no caso por id do item ? tem essa opção ? @77mateus77 problema sanado ! getItemWeightById só trocar para ID que funcionou perfeitamente, pode fechar o tópico, problema solucionado ! agradeço Mateus !
  3. @77mateus77 sim ! deletei do mysql as transações e loguei com conta normal e continua esse mesmo error na hora de enviar o item, eu compro ele no site e tal porem da esse error na hr de enviar e a transação fica Not realized yet.
  4. @77mateus77 bom, agora pelo menos os error's estão aparecendo ! https://imagizer.imageshack.us/v2/703x433q90/921/VCIevE.png shopguild.lua -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 18 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.storeQuery("SELECT * FROM z_ots_guildcomunication") if(result_plr ~= false) then repeat local id = tonumber(result.getDataInt(result_plr, "id")) local action = tostring(result.getDataString(result_plr, "action")) local delete = tonumber(result.getDataInt(result_plr, "delete_it")) local cid = getPlayerByName(tostring(result.getDataString(result_plr, "name"))) if(cid) then local itemtogive_id = tonumber(result.getDataInt(result_plr, "param1")) local itemtogive_count = tonumber(result.getDataInt(result_plr, "param2")) local container_id = tonumber(result.getDataInt(result_plr, "param3")) local container_count = tonumber(result.getDataInt(result_plr, "param4")) local add_item_type = tostring(result.getDataString(result_plr, "param5")) local add_item_name = tostring(result.getDataString(result_plr, "param6")) local received_item = 0 local full_weight = 0 if(add_item_type == 'container') then container_weight = getItemWeight(container_id, 1) if(isItemRune(itemtogive_id)) then items_weight = container_count * getItemWeight(itemtogive_id, 1) else items_weight = container_count * getItemWeight(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeight(itemtogive_id, itemtogive_count) if(isItemRune(itemtogive_id)) then full_weight = getItemWeight(itemtogive_id, 1) else full_weight = getItemWeight(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) received_item = doPlayerAddItemEx(cid, new_item) end if(type(received_item) == "number" and received_item == RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') 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 until not result.next(result_plr) result.free(result_plr) end return true end
  5. tentei aqui com a acc normal, tambem não vai, irei testar seu script e editarei esse post daqui a pouco, obrigado ! @77mateus77 o scripts pelo o que vejo são os mesmo, utilizei do topico do shop guild 100% offline para criar o shop system, troquei mesmo assim e nada... não da error na distro, mas também não envia o item, o comando !guildpoints está funcionando normal, e o shop também, somente para enviar o item que não está enviando ..
  6. nenhum .... fica no transactions do site Not realized yet. não da error nem nada na distro
  7. o shop guild não entre o item ... uso tfs 0_4 globalevents/scripts/shopguild.lua
  8. rev3777 tfs 0_4
  9. to com um error aqui no guildpoints.lua .. se alguem poder me ajudar Script :
  10. Fatal error: Call to a member function query() on a non-object in C:\xampp\htdocs\live.php on line 39 linha 39 : $players_online_data = $SQL->query('SELECT * FROM players WHERE world_id = '.(int) $world_id.' AND cast > 0 AND online > 0 ORDER BY '.$orderby);
  11. Funcionou perfeitamente aqui ! pessoal que ta com bug, procure o executável rev3777 tfs 0_4 link que contem este executável > http://www.tibiaking.com/forum/topic/57156-global-full-860-zao-war-system-cast-system/ baixa o ot por completo e use o executável, ira dar alguns erros, mas nada de grave ! fácil de resolver ! alguns bugs que pode ocorrer caso for utilizar esse tfs bug do tile-store no mysql solução : CREATE TABLE `tile_store` ( `house_id` INT UNSIGNED NOT NULL, `world_id` TINYINT(4) UNSIGNED NOT NULL DEFAULT 0, `data` LONGBLOB NOT NULL, FOREIGN KEY (`house_id`) REFERENCES `houses` (`id`) ON DELETE CASCADE ) ENGINE = InnoDB; pode dar error do tipo, não tem cast na tabela players, castviewers etc.. só adicionar ! ALTER TABLE `players` ADD `cast` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `players` ADD `castDescription` VARCHAR( 50 ) NOT NULL; lembrando que se aparecer algum bug sobre o cast no mysql, é só alterar a tag ADD 'NOMEDOERROR' INT( 11 ) para a coluna que estará faltando no mysql. qualquer dúvida posso tentar ajudar ! chame no skype : tiago.newbye
  12. boa tarde, bom, tenho um ot global 8.60 e tenho os sistema war system, utilizo o TFS REV 3777 version 0_4, meu cast system está normal, não tem error de script do war system, porem do o comando /war invite, guild, frag e não acontece nada, não da error, não invita, nada ! me ajudem ! talkactions/data/war.lua function onSay(cid, words, param, channel) local guild = getPlayerGuildId(cid) if(not guild or getPlayerGuildLevel(cid) < GUILDLEVEL_LEADER) then doPlayerSendChannelMessage(cid, "", "You cannot execute this talkaction.", TALKTYPE_CHANNEL_W, 0) return true end local t = string.explode(param, ",") if(not t[2]) then doPlayerSendChannelMessage(cid, "", "Not enough param(s).", TALKTYPE_CHANNEL_W, 0) return true end local enemy = getGuildId(t[2]) if(not enemy) then doPlayerSendChannelMessage(cid, "", "Guild \"" .. t[2] .. "\" does not exists.", TALKTYPE_CHANNEL_W, 0) return true end if(enemy == guild) then doPlayerSendChannelMessage(cid, "", "You cannot perform war action on your own guild.", TALKTYPE_CHANNEL_W, 0) return true end local enemyName, tmp = "", db.getResult("SELECT `name` FROM `guilds` WHERE `id` = " .. enemy) if(tmp:getID() ~= -1) then enemyName = tmp:getDataString("name") tmp:free() end if(isInArray({"accept", "reject", "cancel"}, t[1])) then local query = "`guild_id` = " .. enemy .. " AND `enemy_id` = " .. guild if(t[1] == "cancel") then query = "`guild_id` = " .. guild .. " AND `enemy_id` = " .. enemy end tmp = db.getResult("SELECT `id`, `begin`, `end`, `payment` FROM `guild_wars` WHERE " .. query .. " AND `status` = 0") if(tmp:getID() == -1) then doPlayerSendChannelMessage(cid, "", "Currently there's no pending invitation for a war with " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0) return true end if(t[1] == "accept") then local _tmp = db.getResult("SELECT `balance` FROM `guilds` WHERE `id` = " .. guild) local state = _tmp:getID() < 0 or _tmp:getDataInt("balance") < tmp:getDataInt("payment") _tmp:free() if(state) then doPlayerSendChannelMessage(cid, "", "Your guild balance is too low to accept this invitation.", TALKTYPE_CHANNEL_W, 0) return true end db.query("UPDATE `guilds` SET `balance` = `balance` - " .. tmp:getDataInt("payment") .. " WHERE `id` = " .. guild) end query = "UPDATE `guild_wars` SET " local msg = "accepted " .. enemyName .. " invitation to war." if(t[1] == "reject") then query = query .. "`end` = " .. os.time() .. ", `status` = 2" msg = "rejected " .. enemyName .. " invitation to war." elseif(t[1] == "cancel") then query = query .. "`end` = " .. os.time() .. ", `status` = 3" msg = "canceled invitation to a war with " .. enemyName .. "." else query = query .. "`begin` = " .. os.time() .. ", `end` = " .. (tmp:getDataInt("end") > 0 and (os.time() + ((tmp:getDataInt("begin") - tmp:getDataInt("end")) / 86400)) or 0) .. ", `status` = 1" end query = query .. " WHERE `id` = " .. tmp:getDataInt("id") if(t[1] == "accept") then doGuildAddEnemy(guild, enemy, tmp:getDataInt("id"), WAR_GUILD) doGuildAddEnemy(enemy, guild, tmp:getDataInt("id"), WAR_ENEMY) end tmp:free() db.query(query) doBroadcastMessage(getPlayerGuildName(cid) .. " has " .. msg, MESSAGE_EVENT_ADVANCE) return true end if(t[1] == "invite") then local str = "" tmp = db.getResult("SELECT `guild_id`, `status` FROM `guild_wars` WHERE `guild_id` IN (" .. guild .. "," .. enemy .. ") AND `enemy_id` IN (" .. enemy .. "," .. guild .. ") AND `status` IN (0, 1)") if(tmp:getID() ~= -1) then if(tmp:getDataInt("status") == 0) then if(tmp:getDataInt("guild_id") == guild) then str = "You have already invited " .. enemyName .. " to war." else str = enemyName .. " have already invited you to war." end else str = "You are already on a war with " .. enemyName .. "." end tmp:free() end if(str ~= "") then doPlayerSendChannelMessage(cid, "", str, TALKTYPE_CHANNEL_W, 0) return true end local frags = tonumber(t[3]) if(frags ~= nil) then frags = math.max(10, math.min(1000, frags)) else frags = 100 end local payment = tonumber(t[4]) if(payment ~= nil) then payment = math.max(100000, math.min(1000000000, payment)) tmp = db.getResult("SELECT `balance` FROM `guilds` WHERE `id` = " .. guild) local state = tmp:getID() < 0 or tmp:getDataInt("balance") < payment tmp:free() if(state) then doPlayerSendChannelMessage(cid, "", "Your guild balance is too low for such payment.", TALKTYPE_CHANNEL_W, 0) return true end db.query("UPDATE `guilds` SET `balance` = `balance` - " .. payment .. " WHERE `id` = " .. guild) else payment = 0 end local begining, ending = os.time(), tonumber(t[5]) if(ending ~= nil and ending ~= 0) then ending = begining + (ending * 86400) else ending = 0 end db.query("INSERT INTO `guild_wars` (`guild_id`, `enemy_id`, `begin`, `end`, `frags`, `payment`) VALUES (" .. guild .. ", " .. enemy .. ", " .. begining .. ", " .. ending .. ", " .. frags .. ", " .. payment .. ");") doBroadcastMessage(getPlayerGuildName(cid) .. " has invited " .. enemyName .. " to war till " .. frags .. " frags.", MESSAGE_EVENT_ADVANCE) return true end if(not isInArray({"end", "finish"}, t[1])) then return false end local status = (t[1] == "end" and 1 or 4) tmp = db.getResult("SELECT `id` FROM `guild_wars` WHERE `guild_id` = " .. guild .. " AND `enemy_id` = " .. enemy .. " AND `status` = " .. status) if(tmp:getID() ~= -1) then local query = "UPDATE `guild_wars` SET `end` = " .. os.time() .. ", `status` = 5 WHERE `id` = " .. tmp:getDataInt("id") tmp:free() doGuildRemoveEnemy(guild, enemy) doGuildRemoveEnemy(enemy, guild) db.query(query) doBroadcastMessage(getPlayerGuildName(cid) .. " has " .. (status == 4 and "mend fences" or "ended up a war") .. " with " .. enemyName .. ".", MESSAGE_EVENT_ADVANCE) return true end if(status == 4) then doPlayerSendChannelMessage(cid, "", "Currently there's no pending war truce from " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0) return true end tmp = db.getResult("SELECT `id`, `end` FROM `guild_wars` WHERE `guild_id` = " .. enemy .. " AND `enemy_id` = " .. guild .. " AND `status` = 1") if(tmp:getID() ~= -1) then if(tmp:getDataInt("end") > 0) then tmp:free() doPlayerSendChannelMessage(cid, "", "You cannot request ending for war with " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0) return true end local query = "UPDATE `guild_wars` SET `status` = 4, `end` = " .. os.time() .. " WHERE `id` = " .. tmp:getDataInt("id") tmp:free() db.query(query) doBroadcastMessage(getPlayerGuildName(cid) .. " has signed an armstice declaration on a war with " .. enemyName .. ".", MESSAGE_EVENT_ADVANCE) return true end doPlayerSendChannelMessage(cid, "", "Currently there's no active war with " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0) return true end
  13. Olá pessoal, estou com um problema, quero que quem criar a acc ganha-se 3 dias de premdays, pois tenho area vip no servidor e uso xampp, o ot é 9.60 $config['site']['newaccount_premdays'] = 3; // how many days receive new account esta assim o config.php, alguem poderia me ajudar ou testar? site do ot http://globalfull960.servegame.com:8090 agradeço desde já ! @up
  14. [Error - NpcScript Interface] data/npc/scripts/Rabaz.lua Description: data/npc/scripts/Rabaz.lua:1: attempt to index global 'KeywordHandler' (a nil value) [Warning - NpcEvents::NpcEvents] Cannot load script: data/npc/scripts/Rabaz.lua ? estou abrindo um global no meu VPS pelo linux, porem o executavel q estou usando creio eu que não está batendo com meu servidor, pois o executavel era de outro servidor, alguem pode me ajudar? a compilar se possível tambem no VPS é linux ubuntu 10.4, agradeço desde já !
  15. mysql_real_query(): SELECT `id` FROM `guild_invites` WHERE `player_id` = 1985 AND `guild_id`= 122 LIMIT 1 - MYSQL ERROR: Unknown column 'id' in 'field list' (1054) ?? nao manjo de mysql
  16. Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'show_eq' in 'field list'' in C:\xampp\htdocs\pot\OTS_Player.php:1811 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Player.php(1811): PDO->query('SELECT `show_eq...') #1 C:\xampp\htdocs\characters.php(114): OTS_Player->getCustomField('show_eq') #2 C:\xampp\htdocs\index.php(164): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\pot\OTS_Player.php on line 1811 alguem em ajuda, procurei em alguns sites a solução mas não funcionou ..
  17. Tiago6795 postou uma resposta no tópico em Suporte Tibia OTServer
    An Error Was Encountered The URI you submitted has disallowed characters. quando eu vou procurar algum char que tem ' ou - no nick da isso, e quando compra itesn no shop também ! não envia para ele e nem fica grava no history. me ajudem pf, preciso muito arrumar isto
  18. quando vou enviar um iten com o nick exemplo : Owner'killer ou Abadu-jair buga, nao envia o iten, nao aparece no history e nada ! enfim, são os caracteres que não saão permitidos, o script nao "aceita" teria como adaptar esse script ? meu ot tem muitos players cadastrados com nick com ' e - , então ficaria mas fácil "adaptar" este script para mandar esses itens para estas pessoas. ta ai o script shop.lua
  19. quero que quando eu uso a alavanca ela tira 2 pedra do caminho que seria a da pos 30 93 7 e a da 30 119 7 e quando puxo dnv ela volte as pedras no lugar, o ID da alavanca é 1945 , o ID do iten deixa a parte que é uma pedra que esqueci o ID
  20. Depois vá em data > talkactions > talkaction.xml e adicione essa tag : <talkaction log="yes" words="/ban" access="3" event="script" value="ban.lua"/> Para usar o comando use /ban NOMEDOPLAYER, quantas horas dura o ban, motivo irei testar jaja edi /eu executo o comando , o player desloga, porem ele loga denovo, nos outro foruns falaram qeu o "doAddBanishment" em alguns ot nao sao mas usados, pode ser isso ?
  21. quero um script para banir com /ban , pois meu rule violatios nao funciosa, somente da ban no player. é para ot 8.60
  22. Tiago6795 postou uma resposta no tópico em Suporte Tibia OTServer
    fiz o procedimento, dei reload e nada, tem skype para nos conversarmoss? irei testar apos reiniciar o servidor.
  23. Tiago6795 postou uma resposta no tópico em Suporte Tibia OTServer
    Nada :/ troco o script e do reload talkactions e nada.

Informação Importante

Confirmação de Termo