Ir para conteúdo

CoLoRaDo

Barão
  • Total de itens

    242
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Tudo que CoLoRaDo postou

  1. nossa cara muito bom muito inovador e agora eu tive uma ideia será que alguem não conseguiria montar um código para não deixar divulgar links como .servegame.com - .no-ip.biz - .no-ip.info - .no-ip.org - .sytes.net .com.br etc...? seria uma boa para não deixar divulgar OTS e se você conseguir fazer isso te dou REP +... eu ja vi num ot que se tu tenta divulgar invés de aparecer o que tu falou aparece: Este ot é tão bom! hsuahsuahsu muito massa! ou então que deixe a pessoa muted quando ela tenta divulgar! e claro tem que aparecer uma mensagem pro player dizendo: é proibido divulgar aqui! estas coisas rsrsrs. se tu conseguir fazer te dou REP++ agora o tópico: estarei implantando no meu OT esse sistema de cadeia está muito legal
  2. id do que man? que eu saiba só tem storage 88888 e deu não precisa mais nada... vou mandar um exemplo de comando que eu ja tenho mas nao sei o que pegar: local config = { vip = "yes", priceForEachMessage = 10000, -- preço de cada mensagem storage = 88888 } function onSay(cid, words, param, channel) if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return TRUE end if (config.vip == "yes") and getPlayerStorageValue(cid, tonumber(config.storage)) - os.time() <= 0 then doPlayerSendCancel(cid,"Você não possui vip.") return TRUE end if(doPlayerRemoveMoney(cid, config.priceForEachMessage) == TRUE) then doBroadcastMessage("[V.I.P] " .. getPlayerName(cid) .. ": " .. param .. "", MESSAGE_INFO_DESCR) else doPlayerSendCancel(cid, "Você precisa de " .. config.priceForEachMessage .. " gps para enviar a messagem.") end return TRUE end esse é um broadcast só para vips nao sei o que tem que pegar
  3. @Disk ta mas onde eu coloco isso add ai no script pra mim??
  4. nossa eu também gostaria disso eu acho que sei o que fazer vou tentar e te aviso!
  5. mulizeu ok nao testei ainda eu ia testar agora vou esperar tu postar! ------------------------------------------------------------- disk o storage value da vip é 88888 é só isso que precisa?
  6. no seu layout.php depois de: <html xmlns="http://www.w3.org/1999/xhtml"> <head> adicione: <?php header("Content-Type: text/html; charset=ISO-8859-1",true); ?> retirado do seguinte tópico: http://www.xtibia.com/forum/topic/159389-sobre-fonte-do-site/page__p__1050736__hl__%2Bgesior+%2Bn%E3o+%2Bl%EA+%2Bacentos__fromsearch__1#entry1050736
  7. olá gente estou com um problema na verdade 4... eu queria colocar os seguintes comandos só para vips usar que no caso a storage da vip é 88888 casa.lua - vai até sua casa desde que não esteja com battle: function isWalkable(pos, creature, proj, pz)-- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function onSay(cid, words) if not getHouseByPlayerGUID(getPlayerGUID(cid)) then return doPlayerSendCancel(cid, "Voce nao tem casa.") end local pos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))) if getCreatureCondition(cid, CONDITION_INFIGHT) then return doPlayerSendCancel(cid, "Voce tem que estar sem battle.") end if not getTilePzInfo({x=pos.x-1, y=pos.y, z=pos.z}) and isWalkable({x=pos.x-1, y=pos.y, z=pos.z}) then pos = {x=pos.x-1, y=pos.y, z=pos.z} elseif not getTilePzInfo({x=pos.x+1, y=pos.y, z=pos.z}) and isWalkable({x=pos.x+1, y=pos.y, z=pos.z}) then pos = {x=pos.x+1, y=pos.y, z=pos.z} elseif not getTilePzInfo({x=pos.x, y=pos.y+1, z=pos.z}) and isWalkable({x=pos.x, y=pos.y+1, z=pos.z}) then pos = {x=pos.x, y=pos.y+1, z=pos.z} elseif not getTilePzInfo({x=pos.x, y=pos.y-1, z=pos.z}) and isWalkable({x=pos.x, y=pos.y-1, z=pos.z}) then pos = {x=pos.x, y=pos.y-1, z=pos.z} end doTeleportThing(cid, pos) end tirar pk.lua - comando para tirar o pk white black e red --50% kung lao %50 Vodkart function onSay(cid, words, param) local S = { [3] = {price = 1000000,cobrar = true,msg = "Você perdeu seu white skull e frags.", premium = true}, [4] = {price = 3000000,cobrar = true,msg = "Você perdeu seu red skull e frags", premium = true}, [5] = {price = 5000000,cobrar = true,msg = "Você perdeu seu black skull e frags", premium = true}, } local skull = S[getCreatureSkullType(cid)] if(not skull) then doPlayerSendCancel(cid,"Você nao está com nenhum tipo de skull.") return TRUE elseif skull.premium == true and not isPremium(cid) then doPlayerSendCancel(cid,"Apenas players premium podem remover skull.") return TRUE elseif skull.cobrar == true and doPlayerRemoveMoney(cid, skull.price) == FALSE then doPlayerSendCancel(cid,"Você não tem " .. skull.price .. " gps para remover sua skull.") doSendMagicEffect(getPlayerPosition(cid), 2) return TRUE end db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") doCreatureSetSkullType(cid, 0) doRemoveCreature(cid) doPlayerSendTextMessage(cid, 22,skull.msg) doSendMagicEffect(getPlayerPosition(cid), 26) return TRUE end outfit.lua - muda outfit do player para a que ele quiser menos as de GOD, CM e GM! function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end local t = string.explode(param, ",") t[1] = tonumber(t[1]) if(not t[1]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.") return true end local failout = {"66","302","56","45","10"} -- outfits proibidas for i = 1, #failout do if string.find(tostring(param), failout[i]) then doPlayerSendCancel(cid,"Não pode usar estas outfit.") return TRUE end end if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.") return true end local tmp = getCreatureOutfit(cid) tmp.lookType = t[1] doCreatureChangeOutfit(cid, tmp) return true end changesex.lua - para mudar de sexo local config = { costPremiumDays = 3 } function onSay(cid, words, param, channel) if(getPlayerSex(cid) >= 2) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot change your gender.") return TRUE end if(getPlayerPremiumDays(cid) < config.costPremiumDays) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, not enough premium time- changing gender costs " .. config.costPremiumDays .. " days.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE end if(getPlayerPremiumDays(cid) < 65535) then doPlayerAddPremiumDays(cid, -config.costPremiumDays) end if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then doPlayerSetSex(cid, PLAYERSEX_MALE) else doPlayerSetSex(cid, PLAYERSEX_FEMALE) end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have changed your gender and lost " .. config.costPremiumDays .. " days of premium time.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED) return TRUE end
  8. ok só avisei que se usar mysql nao precisa excluir!
  9. tá mas também tem gente que usa isto para receber itens do shop... é só add isso na sua database mysql: 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`) );
  10. eu vou te passar um script que eh o que eu uso no baiak mas tu pode editar: na pasta data/creaturescripts/creaturescripts.xml tu add isso: <event type="login" name="FirstItems" event="script" value="firstitems.lua"/> na pasta data/creaturescripts/scripts tu cria um arquivo chamado firstitems.lua e add isso: local firstItems = {} firstItems[0] = { 2173, 2525, 2428, 2124, 2460, 2478, 2643 } firstItems[1] = { 2173, 2525, 2190, 2124, 2460, 2478, 2643 } firstItems[2] = { 2173, 2525, 2182, 2124, 2460, 2478, 2643 } firstItems[3] = { 2173, 2525, 2389, 2124, 2460, 2478, 2643 } firstItems[4] = { 2173, 2525, 2428, 2124, 2460, 2478, 2643 } function onLogin(cid) if getPlayerStorageValue(cid, 30001) == -1 then for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)][i], 1) end if getPlayerSex(cid) == 0 then doPlayerAddItem(cid, 2465, 1) else doPlayerAddItem(cid, 2465, 1) end local bag = doPlayerAddItem(cid, 10518, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doAddContainerItem(bag, 2383, 1) setPlayerStorageValue(cid, 30001, 1) end return TRUE end espero ter ajudado! OBS: quando fui postar o sky dangeours não tinha postado ainda é que eu deixei o editor aberto e fui ver outras coisas!
  11. ah entendi faz assim: na pasta htdocs crie um arquivo chamado deposito.php e add isso: <?PHP $main_content .= ' SEU TEXTO AQUI PS:Pode usar vários codigos HTML como: link = <a href="www.xtibia.com"><b>XTibia</b></a> palavra piscando = <blink>XTibia</blink> palavras coloridas <font color="red">XTibia</font> - Cores em Inglês imagem = <img scr="www.xtibia.com/imagem.jpg"> '; ?> no index.php depois de: case "latestnews": $topic = "Latest News"; $subtopic = "latestnews"; include("latestnews.php"); break; adicione: case "deposito": $topic = "Deposito Bancario"; $subtopic = "deposito"; include("deposito.php"); break; e no layout.php depois de: <a href='?subtopic=shopsystem'> <div id='submenu_shopsystem' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'> <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div> <div id='ActiveSubmenuItemIcon_shopsystem' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div> <div class='SubmenuitemLabel'><div style=\"color: green;\">Shop Offer</div></div> <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div> </div> </a> adicione: <a href='?subtopic=deposito'> <div id='submenu_deposito' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'> <div class='LeftChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div> <div id='ActiveSubmenuItemIcon_deposito' class='ActiveSubmenuItemIcon' style='background-image:url(".$layout_name."/images/menu/icon-activesubmenu.gif);'></div> <div class='SubmenuitemLabel'><div style=\"color: green;\">Deposito Bancário</div></div> <div class='RightChain' style='background-image:url(".$layout_name."/images/general/chain.gif);'></div> </div> </a> veja se é isso espero ter ajudado
  12. creio que sim tu infringiu as regras do forum
  13. como em sql? é direto no script do gesior!
  14. bom eu não vou mais precisar pois retirei esta aba do meu gesior pois não vou usar este sistema de guild war system com escudos... se quiser ver: http://danger-world.no-ip.biz/
  15. esses talkactions estão bugados pois se tu está com Red Skull é só falar !attackguild off e atacar alguem da sua guild que o red skull sai... e no party também se tu está com Res Skull é só pedir pra alguem dar party em ti e tu ataca essa pessoa que teu red skull sai... o de attackguild eu ja tirei do meu servidor mas eu queria saber como tirar o bug do party!
  16. não seria no buypoints ou no doaçao? use isto: $main_content .= ' SEU TEXTO AQUI SEU TEXTO AQUI '; coloque num lugar que tu achar mais apropriado e não coloque dentro de algum outro código!
  17. CoLoRaDo

    Nicaw 8.6

    eu uso gesior mas gostaria de usar nicaw será que alguem ai consegue o nicaw 8.60???
  18. cara eu uso o distro do topico e tudo eh compativel eu nao uso mapa global uso baiak e tudo eh compativel ja abri o map com esse distro antes e agora ta dando que ta com malware
  19. nossa aqui deu tudo certo eu abri o ot e testei ta e fechei no outro dia fui abrir o avast acusou de malware e se eu quiser abrir agora vou ter que desativar o avast e não vou fazer isso pq nao sei se tem virus... vou mandar a imagem:
  20. não entendi o que tu quis dizer explique melhor!
  21. por acaso tu quis dizer para descompactar a pasta .rar ou .zip?
  22. tu nao tirou isso deste topico? http://www.xtibia.com/forum/topic/163228-featured-artcile/
  23. muito bom dhenyz me ajudasse muito eu peguei o script e dei umas editas fiz umas coisas a mais se kiser olhe: http://danger-world.no-ip.biz amanha dou rep+ atingiu o limite hj
  24. estou com o mesmo problema alguem ai sabe como resolver?
  25. e o resto do look exemplo: you are master sorcerer... ou isso é soh aparece para a propria pessoa?
  • Quem Está Navegando   0 membros estão online

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