MsCabelo
-
Total de itens
16 -
Registro em
-
Última visita
Posts postados por MsCabelo
-
-
eae cara, poderia me dizer se nas raids, os tempos de spawn seriam normais, ou seriam em milisegundos?
-
Gostaria se possivel, de uma talkaction que ao invez de trocar o rank da guild, criasse um novo, o gesior faz isso, mas queria um comando in game, há como?
E também gostaria se possível de um comando de bloquear o !invite da guild quando a mesma estivesse em war.
Informações adcionais:The Crystal Server ( baseado no TFS 0.4 )
Versão 8.7
-
e então cara, as mounts não estão funcionando, achei os id's da leather whip, fiz os monstros de mount, mas qualquer char diz que ja possui está mount e se for no set outfit ele possui todas as mounts, alguém sabe como arrumar?
-
Cara muito bom, parabéns.
Mas ajuda ai plis, o server ta encryptografando a senha ainda ou como faço para quando criar account pelo geisor ele cryptografa a senha
para não cryptografar a senha modifique em seu config.lua essa linha:
encryptionType = "sha1"
e substitua por
encryptionType = "plain"
para o gesior cryptografar
em seu config-and-functions.php no htdocs busque por:
if(strtolower($config['server']['encryptionType']) == '')
$passwordency = '';
e substitua por :
if(strtolower($config['server']['encryptionType']) == 'sha1')
$passwordency = 'sha1';
espero que de certo.
-
MsCabelo, esse comando SQL que você me passou não tem nada a ver, isso está se referindo as Wars.. e enquanto ao sha1... não posso mudá-lo, pois o TFS 0.4 necessita do sha1 pra funcionar.
E assim.. eu não sei o porque que eu não consigo logar a conta do god, logo apenas a acc manager e crio uma conta, mas a conta criada tbm não loga. Tanto no Sqlite como no MySQL.
Não sei se o problema é do sha1 ou é do arquivo .mysql.
quanto ao comando sql que eu lhe passei, você disse que não vinha com arquivo .mysql, eu disse para usar o .sql do seu ot e apenas adcionar aquilo.
e se você executar em plain, ele apenas lhe dará um aviso, em cerca de 1 minuto depois ele segue. Cheque no seu mysql se ele ja não criptografou as senhas em SHA1, se criptografou, resete o seu banco de dados, caso não, apenas rode seu sv e entre.
P.S: normalmente na primeira vez que você executa em SHA1 ele criptgrafa automaticamente dependendo de suas configurações.
P.S2: Se não estiverem criptografadas as senhas, e você botar em Plain e ele não funcionar, tente dar restart no ot, toda vez que mudo de SHA1 para plain aqui, ele não entra, só após dar restart.
-
para usar o tfs 0.4 baixe a distros e as dlls disponibilizada no tópico, extraia-as na pasta de seu otserv, configure o ot e executeo normalmente.
-use o mysql do seu ot apenas executando isso na aba SQL:
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;
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;
ALTER TABLE `guilds` ADD `balance` BIGINT UNSIGNED NOT NULL AFTER `motd`;
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;
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;
ALTER TABLE `killers` ADD `war` INT NOT NULL DEFAULT 0;
-para mudar o Sha1 vá no seu config.lua e procure por :
encryptionType = "sha1"
e o substitua por
encryptionType = "plain"
ou a criptogração que você usar.
p.s: caso o sql que eu lhe passei não funcione, me diga seu servidor que eu passo um arquivos .sql para o mysql completo.
-
então cara, é o seguinte, se seu servidor for muito grande, tente retirar tudo que você não usar, pois por exemplo, no meu outro computador tem 196mb de memória e não roda nem map de war com 2 mb. ja o outro de 512mb não roda um global por exemplo, e esse com um pouco mais ja aguenta um global, use o stian repack 64, e a mesma coisa para 32 bits, para compilar olhe esse tutorial : http://www.xtibia.com/forum/topic/145300-c-compilando-um-otserv/ caso seu ot não seja tfs, ele funcinará ( é claro se você souber as funções ).
p.s: no link há o link para o 32 e o 64 bits.
-
@cmgabriel eh baiak 8.60
@decos num entendi velho esse erro começou do nada ;S
e quando da eu tenho q reiniciar o pc de tao lerdo que fika =/
ajuda ae por favor !!
o que o decos quis dizer, é que na compilação (processo para criar o .exe do servidor) ele pode ter sido feito para rodar em 64 ou 32 bits, que pode ser ao contrário da sua máquina, nesse caso, use o programa laatido no executável do seu servidor e tente rodar.
-
testando aki!
EDIT
onde eu add msmo o create food? eu botei no data/lib/function mais nao pegou nao ta certo o lugar?
adcione o create food em data/spells/scripts/support/conjure food.lua
-
Cara, isso talvez pode ser a memória do seu PC, ou a compilação ...
Pois e bom usar a compilação do 64bit no win 32 BIT ;x
No mínimo para rodar o TFS 0.4 são 4 GB
Na verdade, o TFS 0.4 (8.54 - 8.57) funciona normal aqui.
veio se merece um beijo na bunda, aleluia alguem postou isso e olha q ja tem tempo, veio te amo muito!
++++++++++++++++++++++++REP pra vc!
EDIT
TEstei aki funfou 100% tudo do system o problema que muitas coisa no meu ot deu pau:
- magia de fazer food!
- minhas talk actions como save, clean e lotery nao estao contando tempo executam de 1 em 1 segundo! ou seja save sem parar e etc!
- monstros nao dropam mais loot!
- e ele pede um arkivo na pasta npc/ lib / npcsystem/main.php sendo q isso nunca existiu no meu ot !
se puder me dar uma luz agradeço!
OBS: eu modifiquei todos as linhas dentro do global events que tinha isso -> "dbExecute.query" eu botei isso "db.query" se tiver errado me avisem! preciso muito de arrumar isso!
-A magia de food, não consegui arrumar, mas tente usar essa, aqui funcionou
local FOODS = {
2666, -- meat
2671, -- ham
2681, -- grape
2674, -- aple
2689, -- bread
2690, -- roll
2696 -- cheese
}
function onCastSpell(cid, var)
local size = table.maxn(FOODS)
if(not doPlayerAddItem(cid, FOODS[math.random(1, size)])) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
doSendMagicEffect(getThingPosition(cid), CONST_ME_POFF)
return false
end
if(math.random(1, 100) > 50) then
doPlayerAddItem(cid, FOODS[math.random(1, size)])
end
doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN)
return true
end
-O TFS 0.4 e todos outros utilizam os milisecundos, e não segundos como nos outros OTS. o tempo igual ao dos outros para the forgotten server é:
Save:900000
Clean:7200000
(modificar no globalevents.xml)
-Os monstros não dropam loot para player da Staff ( GOD,GM,CM ) tente com um player normal.
-Cara, não existe main.php no tfs, existe o .lua se for copie faça um com esse script:
-- Advanced NPC System (Created by Jiddo),
-- Modified by TheForgottenServer Team.
if(NpcSystem == nil) then
-- Loads the underlying classes of the npcsystem.
dofile(getDataDir() .. 'npc/lib/npcsystem/keywordhandler.lua')
dofile(getDataDir() .. 'npc/lib/npcsystem/queue.lua')
dofile(getDataDir() .. 'npc/lib/npcsystem/npchandler.lua')
dofile(getDataDir() .. 'npc/lib/npcsystem/modules.lua')
-- Global npc constants:
-- Keyword nestling behavior. For more information look at the top of keywordhandler.lua
KEYWORD_BEHAVIOR = BEHAVIOR_NORMAL_EXTENDED
-- Greeting and unGreeting keywords. For more information look at the top of modules.lua
FOCUS_GREETWORDS = {'hi', 'hello'}
FOCUS_FAREWELLWORDS = {'bye', 'farewell'}
-- The word for requesting trade window. For more information look at the top of modules.lua
SHOP_TRADEREQUEST = {'offer', 'trade'}
-- The word for accepting/declining an offer. CAN ONLY CONTAIN ONE FIELD! For more information look at the top of modules.lua
SHOP_YESWORD = {'yes'}
SHOP_NOWORD = {'no'}
-- Pattern used to get the amount of an item a player wants to buy/sell.
PATTERN_COUNT = '%d+'
-- Talkdelay behavior. For more information, look at the top of npchandler.lua.
NPCHANDLER_TALKDELAY = TALKDELAY_ONTHINK
-- Conversation behavior. For more information, look at the top of npchandler.lua.
NPCHANDLER_CONVBEHAVIOR = CONVERSATION_PRIVATE
-- Constant strings defining the keywords to replace in the default messages.
-- For more information, look at the top of npchandler.lua...
TAG_PLAYERNAME = '|PLAYERNAME|'
TAG_ITEMCOUNT = '|ITEMCOUNT|'
TAG_TOTALCOST = '|TOTALCOST|'
TAG_ITEMNAME = '|ITEMNAME|'
TAG_QUEUESIZE = '|QUEUESIZE|'
NpcSystem = {}
-- Gets an npcparameter with the specified key. Returns nil if no such parameter is found.
function NpcSystem.getParameter(key)
local ret = getNpcParameter(tostring(key))
if((type(ret) == 'number' and ret == 0) or ret == nil) then
return nil
else
return ret
end
end
-- Parses all known parameters for the npc. Also parses parseable modules.
function NpcSystem.parseParameters(npcHandler)
local ret = NpcSystem.getParameter('idletime')
if(ret ~= nil) then
npcHandler.idleTime = tonumber(ret)
end
local ret = NpcSystem.getParameter('talkradius')
if(ret ~= nil) then
npcHandler.talkRadius = tonumber(ret)
end
local ret = NpcSystem.getParameter('message_greet')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_GREET, ret)
end
local ret = NpcSystem.getParameter('message_farewell')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_FAREWELL, ret)
end
local ret = NpcSystem.getParameter('message_decline')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_DECLINE, ret)
end
local ret = NpcSystem.getParameter('message_needmorespace')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_NEEDMORESPACE, ret)
end
local ret = NpcSystem.getParameter('message_needspace')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_NEEDSPACE, ret)
end
local ret = NpcSystem.getParameter('message_sendtrade')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_SENDTRADE, ret)
end
local ret = NpcSystem.getParameter('message_noshop')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_NOSHOP, ret)
end
local ret = NpcSystem.getParameter('message_oncloseshop')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_ONCLOSESHOP, ret)
end
local ret = NpcSystem.getParameter('message_onbuy')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_ONBUY, ret)
end
local ret = NpcSystem.getParameter('message_onsell')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_ONSELL, ret)
end
local ret = NpcSystem.getParameter('message_missingmoney')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_MISSINGMONEY, ret)
end
local ret = NpcSystem.getParameter('message_needmoney')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_NEEDMONEY, ret)
end
local ret = NpcSystem.getParameter('message_missingitem')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_MISSINGITEM, ret)
end
local ret = NpcSystem.getParameter('message_needitem')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_NEEDITEM, ret)
end
local ret = NpcSystem.getParameter('message_idletimeout')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_IDLETIMEOUT, ret)
end
local ret = NpcSystem.getParameter('message_walkaway')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_WALKAWAY, ret)
end
local ret = NpcSystem.getParameter('message_alreadyfocused')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_ALREADYFOCUSED, ret)
end
local ret = NpcSystem.getParameter('message_placedinqueue')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_PLACEDINQUEUE, ret)
end
local ret = NpcSystem.getParameter('message_buy')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_BUY, ret)
end
local ret = NpcSystem.getParameter('message_sell')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_SELL, ret)
end
local ret = NpcSystem.getParameter('message_bought')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_BOUGHT, ret)
end
local ret = NpcSystem.getParameter('message_sold')
if(ret ~= nil) then
npcHandler:setMessage(MESSAGE_SOLD, ret)
end
-- Parse modules.
for parameter, module in pairs(Modules.parseableModules) do
local ret = NpcSystem.getParameter(parameter)
if(ret ~= nil) then
local number = tonumber(ret)
if(number ~= nil and number ~= 0) then
npcHandler:addModule(module:new())
end
end
end
end
end
-e sim é db.query.
-
Fala /war accept, dentro da seu Chat guild ...
estou fazendo isso kk
cara, usei o laatido, ficou mais ou menos uma hora e meia online e então ele ficou off. alguém sabe resolver? ficaria grato se alguém pudesse ajudar. Pode ser alguma configuração errada? uso como base o data do styller yourouts 8.6, mas tenho a disposição todas as revs do 0.4.
-
e então cara, to com a rev 3777 os comandos de invitar, rejeitar, cancelar e balance funcionam, mas após eu invitar uma guild eu entro no outro char e falo /war accept, Example War e ele sai no default, se eufalar outro nome de guild que não tenha invitado ele diz que não existe, estranho né. se poder me ajudar ficaria grato.
-
e então cara, os id que serião dos itens de mounts são os corpos, tem como me dizer os certos?
-
@SkyDangerous Valeu cara, o erro 2 era isso mesmo, analisei e experimente botar no group 1, o problema agora é que ele fica muted ç.ç.
Mais uma duvidinha. Dúvida 3: quando vou tentar compilar o TFS 0.4 da muitos erros, tem de ser alguma versão especifica do dev-cpp? Se tem qual?
tentei todas as revs.
-
Dúvida 1: É o seguinte, eu estou com o TFS 0.4, usando Xampp (mysql), tudo direito.
Antes eu abria o ot e ele ficava on até eu desligar, agora que eu troquei para TFS 0.4, sempre que o OTserv atinge 4 pessoas online ele kika todas, mas no executável, aparece como se elas estivessem on, uso o OTserver de base Styller rev 2 8.6, mas a distro e DLL's TFS 0.4.
Dúvida 2: Todos os player tem comando de god...eles fazem o que quiserem.
Thanks a quem responder.
-
Cara, eu abri direitnho, como sempre abria, mas então quando entrou a 3ª pessoa, até ai tudo bem, quando vai tentar entrar outra, ele simplesmente kika todos e diz que o sv está offline, mas meu distro fica com todas as pessoas online.
-
Bom, primeiramente desculpe-me se essa pergunta ja foi respondida, mas meus amigos estão emplorando para mim reabrir o ot, mais eu to pacc e quero ficar on la no global,
MINHA DÚVIDA É: se eu deixar executando o ot com o global aberto eu posso ser ban?
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
[Action]Script Debugando
em Lixeira Pública
Postado · Editado por MsCabelo
E então, estou fazendo o sistema da tin key/inoperative tin lizzard para meu ot, ela funciona, mas quando o player ganha a mount usando a tin key no inoperative tin lizzard, o client debuga, mas o player ganha a mount. Uso Crystal Server 1.2.
Se der, alguém poderia revisar esse script? :
se possível, alguém poderia corriji-lo ou me apontar o erro?
Obrigado.
P.S: Testei com God e player normal, os 2 deu debug no client.