Ir para conteúdo

1027929

Artesão
  • Total de itens

    109
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Tudo que 1027929 postou

  1. Amigo vamos fazer o seguinte. Vamos por um script no seu server para pegar o IP de todos que logam assim poderemos ver qual IP (Comparando a data que o OT caiu) e assim vamos ver quem logo nessa hora ou pouco depois, Assim tu da logo BAN IP. Cria um arquivo chamado nameip.lua e salve em data/creaturescripts/scripts function onLogin(cid) local ip = io.open("data/creaturescripts/scripts/nameip.txt", "a+") ip:write(getCreatureName(cid) .. " " .. os.date("%c") .. "\n" .. getIpByName(getCreatureName(cid)) .. "\n") io.close(ip) return TRUE end Depois vai no creaturescripts.xml e põe essa tag: <event type="login" name="Ip" event="script" value="nameip.lua"/> Assim você vai poder pegar quem está fazendo isso.
  2. Cara eu já tive isso e não é Nuker não é problema de algum Char...
  3. Todos problemas resolvidos menos esse... O problema é que quando OT ta ON ou OFF ele fica 0/0 e Uptime: Como se ninguem tivesse logado e o OT estivesse OFF. Script no Layout.php <?PHP if($config['status']['serverStatus_online'] >= 0) echo $config['status']['serverStatus_players'].'/'.$config['status']['serverStatus_playersMax'].'<br />Uptime: '.$config['status']['serverStatus_uptime'].'<br />'; else echo '<font color="red"><b>Server<br />OFFLINE</b></font>'; ?> @UP Help Me Please !
  4. Essas portas elas tem efeito como se fossem portas normais? (Abre com todo mundo e entra?) Mano pega o ID da porta que deveria ser o gate of expertise procure no item.xml e substitua por isso: <item id="ID DA PORTA" article="a" name="gate of expertise"> <attribute key="type" value="door" /> <attribute key="levelDoor" value="LEVEL" /> <attribute key="blockprojectile" value="1" /> </item> Espero que da certo
  5. Tente isso mano: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid)end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid)end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg)end function onThink() npcHandler:onThink()end function npcPromotion(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if (isPremium(cid)) then if (getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <=8) then if doRemoveItem(cid, ID DO ITEM, 1) then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doPlayerSendTextMessage(cid, 20, "Voce é um ".. getPlayerVocationName(cid) .."!") else doPlayerSendTextMessage(cid, 20, "Voce nao possui o item desejado!") end else doPlayerSendTextMessage(cid, 20, "Voce não possui a promotion anterior ou já esta promovido.") end else doPlayerSendTextMessage(cid, 20, "Voce nao possui premmium account.") end end local node1 = keywordHandler:addKeyword({'high promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promotion you if you give me a '.. getItemName(9971) ..'. Do you want me to promote you?'}) node1:addChildKeyword({'yes'}, npcPromotion, {}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then.', reset = true}) npcHandler:addModule(FocusModule:new()) Onde está escrito ID DO ITEM é o ID do item que você vai usar.
  6. Change Sex já deve vir no gesior. Me passa o seu Shop para eu adicionar.
  7. No seu OT da /reload npc e vê se aparece algum erro no executavel do OT.
  8. 1027929

    Comando /t

    Para por só pra GODs... <talkaction words="!t" script="teleport.lua"/> Mude para <talkaction log="yes" words="/t" access="5" event="script" value="teleport.lua"/> OBS: em teleport.lua mude para seu arquivo.lua
  9. Em todas as portas ou só em 1?
  10. Substitua pelo seu atual: function onUse(cid, item, frompos, item2, topos) bag = doPlayerAddItem(cid, 1988, 1) -- aqui voce coloca o id de uma bag ou backpack if item.uid == 7212 then queststatus = getPlayerStorageValue(cid,7212) if queststatus == -1 then doPlayerSendTextMessage(cid,25,"Voce pegou Mystical Free Set.") doAddContainerItem(bag, 10510, 1) -- aqui voce add os items que voce quer que o player ganhe dentro da bag doAddContainerItem(bag, 2538, 1) doAddContainerItem(bag, 9927, 1) doAddContainerItem(bag, 7885, 1) doAddContainerItem(bag, 2660, 1) doAddContainerItem(bag, 2642, 1) setPlayerStorageValue(cid,7212,1) else oPlayerSendTextMessage(cid,25,"It is empty.") end else return 0 end return 1 end Problema era que ele não colocava a storage no player por que storage é como histórico.
  11. Tenta pegar o spawn do 8.0 (Sem modificação nenhuma) e põe na pasta data/world do seu OT 8.54
  12. 1027929

    Gesior Problemas...

    Olá gente do Xtibia estou precisando da ajuda de vocês: 1. Queria arrumar o players online o problema é que mesmo se o server ta OFFLINE Fica 0 Quando ta ON ele fica ok entra player fica 1 normal só que o server OFFLINE não aparece. 2. Queria meu players online igual do underwar.org e com UPTime. Aguardo respostas rs
  13. Amigo eu sei que você quer o comando mas já que é só um erro faça manualmente pelo map editor .-.
  14. pqp que macumba vei abre com wordpad e manda o shop O_O ta tudo bagunçado e com &nbsp. Aguardo ...
  15. Acho que só amanhã tu pode dar REP+ ... Adiciona no MSN para discutir sobre problemas,assuntos de OT. charleskassab1@hotmail.com
  16. No seu sqlite studio com a database aberto vai em tables e procura market_offers e market_history apaga esses dois e põe os códigos de novo. Se não souber como apagar aperta delete ou botão direito do mouse e drop table.
  17. Na pasta Xampp vai achar uma pasta chamado (htdocs) Apaga tudo que estiver la dentro e ponha os arquivos do seu site lá. Qualquer dúvida poste.
  18. Olha abre seu sqlite studio seleciona sua database (O arquivo .s3db) abriu ele Ok ai você aperta no sqlite alt + e depois vai abrir uma janela nessa janela põe esses codigos que te passei não põe os 2 juntos põe 1 aperta F9 e põe o outro e aperta F9. depois testa. Caso continuar não entendendo me adicione no MSN. charleskassab1@hotmail.com
  19. Mudou firstitems.xml da pasta Mods do seu OT? Mudou firstitems.lua da pasta data/creaturescripts/scripts do seu OT?
  20. Então abre seu sqlite studio > abre sua database > aperte alt + e > e use isso: CREATE TABLE market_history ( id INTEGER PRIMARY KEY NOT NULL, player_id INTEGER NOT NULL, sale BOOLEAN NOT NULL DEFAULT 0, itemtype UNSIGNED INTEGER NOT NULL, amount UNSIGNED INTEGER NOT NULL, price UNSIGNED INTEGER NOT NULL DEFAULT 0, expires_at UNSIGNED INTEGER NOT NULL, inserted UNSIGNED INTEGER NOT NULL, state UNSIGNED INTEGER NOT NULL, FOREIGN KEY ( player_id ) REFERENCES players ( id ) ON DELETE CASCADE ); APERTE F9 E DEPOIS PÕE ISSO: CREATE TABLE market_offers ( id INTEGER PRIMARY KEY NOT NULL, player_id INTEGER NOT NULL, sale BOOLEAN NOT NULL DEFAULT 0, itemtype UNSIGNED INTEGER NOT NULL, amount UNSIGNED INTEGER NOT NULL, created UNSIGNED INTEGER NOT NULL, anonymous BOOLEAN NOT NULL DEFAULT 0, price UNSIGNED INTEGER NOT NULL DEFAULT 0, FOREIGN KEY ( player_id ) REFERENCES players ( id ) ON DELETE CASCADE ); APERTE F9 DE NOVO E PRONTO TESTE E AVISA!
  21. Você usa Mysql ou Sqlite?? Se for mysql vai no localhost/phpmyadmin e seleciona sua database e clica em SQL.
  22. Amigo executa isso no seu PhpMyAdmin: CREATE TABLE `market_history` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `player_id` int(11) NOT NULL, `sale` tinyint(1) NOT NULL DEFAULT '0', `itemtype` int(10) unsigned NOT NULL, `amount` smallint(5) unsigned NOT NULL, `price` int(10) unsigned NOT NULL DEFAULT '0', `expires_at` bigint(20) unsigned NOT NULL, `inserted` bigint(20) unsigned NOT NULL, `state` tinyint(1) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `player_id` (`player_id`,`sale`), FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB; E isso: CREATE TABLE `market_offers` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `player_id` int(11) NOT NULL, `sale` tinyint(1) NOT NULL DEFAULT '0', `itemtype` int(10) unsigned NOT NULL, `amount` smallint(5) unsigned NOT NULL, `created` bigint(20) unsigned NOT NULL, `anonymous` tinyint(1) NOT NULL DEFAULT '0', `price` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `sale` (`sale`,`itemtype`), KEY `created` (`created`), FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB; Deu certo? rsrs
  23. Verifica se na sua database tem a tabela market_offers Outra pergunta ele funciona com alguém esse market? ou com todos da mesmo problema?
  24. Mudo na firstitems.xml da pasta Mods do seu OT? Mudo na firstitems.lua da pasta data/creaturescripts/scripts do seu OT?
  • Quem Está Navegando   0 membros estão online

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