Ir para conteúdo

CoLoRaDo

Barão
  • Total de itens

    242
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Tudo que CoLoRaDo postou

  1. acho que tem um tópico do GM Beckman com isso
  2. muito bom isso varias pessoas vao precisar... mas alguem sabe como eu consigo as sources do tfs 0.4 dev? eh que eu uso ele pra usar o guild war system com escudos do walef mas alguem tem as sources dele?
  3. gente eu queria saber o que eu tenho que fazer para colocar dois ot on no mesmo dedicado eh que eu vou colocar server 1 e server 2 mas vai ser com ips diferentes pois o outro eh do meu amigo que paga junto comigo o dedicado e no meu ot o config lua ta assim: worldId = 0 ip = "exemplo.no-ip.biz" bindOnlyConfiguredIpAddress = false loginPort = 7171 gamePort = 7172 adminPort = 7171 statusPort = 7171 e no ot dele o que eu tenho que colocar??? ta assim: worldId = 0 ip = "exemplo.servegame.com" bindOnlyConfiguredIpAddress = false loginPort = 7171 gamePort = 7172 adminPort = 7171 statusPort = 7171 não sei se tem que mudar o ip e as portas como mudar ai se precisar usar porta diferente eu usaria a 7173 mas se for soh mudar o ip alguem pode me explicar o que fazer??? rep +
  4. use o que eu uso que não da erro nenhum: 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, '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 if not(result_plr:next()) then break end end result_plr:free() end return true end e também adicione isso a sua database: CREATE TABLE IF NOT EXISTS `z_ots_comunication` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `action` varchar(255) NOT NULL, `param1` varchar(255) NOT NULL, `param2` varchar(255) NOT NULL, `param3` varchar(255) NOT NULL, `param4` varchar(255) NOT NULL, `param5` varchar(255) NOT NULL, `param6` varchar(255) NOT NULL, `param7` varchar(255) NOT NULL, `delete_it` int(2) NOT NULL default '1', PRIMARY KEY (`id`) ); CREATE TABLE IF NOT EXISTS `z_shop_offer` ( `id` int(11) NOT NULL auto_increment, `points` int(11) NOT NULL default '0', `itemid1` int(11) NOT NULL default '0', `count1` int(11) NOT NULL default '0', `itemid2` int(11) NOT NULL default '0', `count2` int(11) NOT NULL default '0', `offer_type` varchar(255) default NULL, `offer_description` text NOT NULL, `offer_name` varchar(255) NOT NULL, PRIMARY KEY (`id`) ); CREATE TABLE IF NOT EXISTS `z_shop_history_item` ( `id` int(11) NOT NULL auto_increment, `to_name` varchar(255) NOT NULL default '0', `to_account` int(11) NOT NULL default '0', `from_nick` varchar(255) NOT NULL, `from_account` int(11) NOT NULL default '0', `price` int(11) NOT NULL default '0', `offer_id` int(11) NOT NULL default '0', `trans_state` varchar(255) NOT NULL, `trans_start` int(11) NOT NULL default '0', `trans_real` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ); CREATE TABLE IF NOT EXISTS `z_shop_history_pacc` ( `id` int(11) NOT NULL auto_increment, `to_name` varchar(255) NOT NULL default '0', `to_account` int(11) NOT NULL default '0', `from_nick` varchar(255) NOT NULL, `from_account` int(11) NOT NULL default '0', `price` int(11) NOT NULL default '0', `pacc_days` int(11) NOT NULL default '0', `trans_state` varchar(255) NOT NULL, `trans_start` int(11) NOT NULL default '0', `trans_real` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ); e no globalevents.xml add isso: <globalevent name="shop" interval="30" event="script" value="shop.lua"/>
  5. flyware use o sistema de war do walef: http://www.xtibia.com/forum/topic/155489-gesior-acc-guild-war-system-com-escudos/ quanto ao premium ali é nas configurações no site ai eu já não sei... mas ali no topico do walef tem tudo!
  6. pois é ninguem ai conseguiu eu ja vi em varios sites... mas ai ta com black e red skull soh sendo red skull jata bom eu ateh tenho um script aki mas nao sei onde colocar olha ele: <script language="JavaScript1.2"></div> <!-- var trailLength = 10 var path = "http://img819.imageshack.us/img819/4710/redskull.gif" var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body var i,d = 0 function initTrail() { images = new Array() for (i = 0; i < parseInt(trailLength); i++) { images[ i ] = new Image() images[ i ].src = path } storage = new Array() for (i = 0; i < images.length*3; i++) { storage[ i ] = 0 } for (i = 0; i < images.length; i++) { document.write('<div id="obj' + i + '" style="position: absolute; z-Index: 100; height: 0; width: 0"><img src="' + images[ i ].src + '"></div>') } trail() } function trail() { for (i = 0; i < images.length; i++) { document.getElementById("obj" + i).style.top = storage[d]+'px' document.getElementById("obj" + i).style.left = + storage[d+1]+'px' d = d+2 } for (i = storage.length; i >= 2; i--) { storage[ i ] = storage[i-2] } d = 0 var timer = setTimeout("trail()",20) } function processEvent(e) { if (window.event) { storage[0] = window.event.y+standardbody.scrollTop+10 storage[1] = window.event.x+standardbody.scrollLeft+10 } else { storage[0] = e.pageY+12 storage[1] = e.pageX+12 } } initTrail() document.onmousemove = processEvent //--> tem como alguem ver se ta certo e me dizer onde tem que colocar isso?!?!
  7. provavelmente tu esqueceu de adicionar alguma table na database vá onde tu pegou o war system e veja as tabelas que tem que adicionar.... tente esses vá na aba sql la no seu phpmyadmin adicione isso: CREATE TABLE IF NOT EXISTS `guild_wars` ( `id` INT NOT NULL AUTO_INCREMENT, `guild_id` INT NOT NULL, `enemy_id` INT NOT NULL, `begin` BIGINT NOT NULL DEFAULT '0', `end` BIGINT NOT NULL DEFAULT '0', `frags` INT UNSIGNED NOT NULL DEFAULT '0', `payment` BIGINT UNSIGNED NOT NULL DEFAULT '0', `guild_kills` INT UNSIGNED NOT NULL DEFAULT '0', `enemy_kills` INT UNSIGNED NOT NULL DEFAULT '0', `status` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `status` (`status`), KEY `guild_id` (`guild_id`), KEY `enemy_id` (`enemy_id`) ) ENGINE=InnoDB; depoois: ALTER TABLE `guild_wars` ADD CONSTRAINT `guild_wars_ibfk_1` FOREIGN KEY (`guild_id`) REFERENCES `guilds` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `guild_wars_ibfk_2` FOREIGN KEY (`enemy_id`) REFERENCES `guilds` (`id`) ON DELETE CASCADE; depois: ALTER TABLE `guilds` ADD `balance` BIGINT UNSIGNED NOT NULL AFTER `motd`; depois: CREATE TABLE IF NOT EXISTS `guild_kills` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `guild_id` INT NOT NULL, `war_id` INT NOT NULL, `death_id` INT NOT NULL ) ENGINE = InnoDB; depois: ALTER TABLE `guild_kills` ADD CONSTRAINT `guild_kills_ibfk_1` FOREIGN KEY (`war_id`) REFERENCES `guild_wars` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `guild_kills_ibfk_2` FOREIGN KEY (`death_id`) REFERENCES `player_deaths` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `guild_kills_ibfk_3` FOREIGN KEY (`guild_id`) REFERENCES `guilds` (`id`) ON DELETE CASCADE; depois: ALTER TABLE `killers` ADD `war` INT NOT NULL DEFAULT 0;
  8. tente descubrir qual a town id de carlin e vá na pasta do seu website vai na pasta htdocs ai vai na pasta config e abre config.php procura por $config['site']['newchar_towns'][0] dentro dos parênteses coloque o town id de carlin array(); exemplo: $config['site']['newchar_towns'][0] = array(2); como se o id fosse 2! se eu te ajudei?!?! rep +!
  9. gente eu gostaria de saber como colocar featured article no meu site do meu ot ja ta tudo pronto eu traduzi uns negocios entao nao queria mudar o layout mas alguem tem o script pra eu add no meu site? grato! ja vi no http://megatibia.net/ quem me conseguir dou rep + aki o link do meu site: htt://foreverot.no-ip.biz PS: ainda estou arrumando pois o site esta na minha casa entao nem adianta criar conta pois eu soh criei para editar o site
  10. poste seu shop.lua aqui! para eu ver e poste seu globalevents.xml
  11. CoLoRaDo

    Baiak Rox

    está falando os créditos do meu amigo bryaan que foi quem editou o mapa primeiro depois foi o TECH!
  12. walee va na pasta do OT e em: Data/globalevents/scripts abra o shop.lua aperte ctrl+h e na parte de cima digite: db.executeQuery e na parte de baixo digite db.query e clica em localizar próxima ae quando localizar clique em substituir até não ter mais nada para substituir! e salve! espero ter ajudo e se possivel rep +. hsuahsuash
  13. mano visite este topico aki do xtibia pode te ajudar: http://www.xtibia.com/forum/topic/141934-duvida-danada-xampp/
  14. olá a todos vcs eu vim aqui com mais uma duvida eu queria saber como se coloca umas caveirinhas embaixo do mouse vou colocar a foto: e queria saber se tem como editar aquilo em baixo do site a foto oh: eu quero adicionar: Traduzido Parcialmente por ADM_Forever quem me conseguir eu agradeço!
  15. REP + pra ti eskylo me ajudou muito!!
  16. estou interessado vou te adicionar agora! meu msn scooby-danger@live.com
  17. mano acho que já tem isso aqui no xtibia... olhe bem antes de postar mas ficou legal!
  18. obrigado max mas será que não tem algo tipo isso será mesmo que não dá? alguem mais ai pode ajudar?
  19. gente to com um script que aparece quem entrou no OT e eu queria saber se tem como não anunciar quando alguem que seja gm cm ou god não aparecer na broadcast quando entrar e tenho quando sair também se alguem puder me ajudar dou REP+ os scripts estão ai: entrou.lua function onLogin(cid) doBroadcastMessage(getPlayerName(cid) .. " [" .. getPlayerLevel(cid) .. "]: acabou de entrar No Forever OT 8.60 - Baiak!") return TRUE end saiu.lua function onLogout(cid) doBroadcastMessage(getPlayerName(cid) .. " [" .. getPlayerLevel(cid) .. "]: acabou de sair Do Forever OT 8.60 - Baiak,Volte Sempre!", MESSAGE_INFO_DESCR) return TRUE end quem me conseguir ai fico grato!
  20. Caraca Alex tu me ajudou te amooooooooooooh suhauahsuhasuashuash REP +++++++++++++++++++
  21. gente vou postar aqui o que eu fiz mas não adiantou... no config.php na pasta config eu fiz isso: tava assim: $config['site']['access_news'] = 2; // access level needed to edit news $config['site']['access_admin_panel'] = 3; // access level needed to open admin panel eu mudei para $config['site']['access_news'] = 3; // access level needed to edit news $config['site']['access_admin_panel'] = 3; // access level needed to open admin panel ai no phpmyadmin eu mudei o access_page da conta do accoumt mamanger para 2 e no config.php bem la emcima depois de <?PHP eu add isso: if($group_id_of_acc_logged == 2) $main_content .= '<h1>Account Manager Bloqueado.'; else será que ta faltando algo??? dou rep ++ por 1 mes pra quem me ajudar to precisando urgenteeeeeeeeeeeee
  22. WISP é uma praga fica invisivel ee eh mto chato...
  23. pois é se continuar eu vou ter que desativar o acc manager mas os players entram mais quando tem acc manager por isso nao quero tirar hsuashuash quem me conseguir dou rep++
  24. ja tentou aumentar o tamanho da foto?
  25. gente eu uso site e acc manager ao mesmo tempo soh que tem uns engraçadinhos mudando a senha do acc manager pelo site e eu queria saber se tem como bloquear?!?! eu ja vi um ot com isso ta ae o site: http://www.exsoftbaiak.com/sv1/?subtopic=accountmanagement ae ta a imagem: imagem.bmp
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...