Solutions
-
Danihcv's post in (Resolvido)Port 7171 ~~ 7172 was marked as the answerTentou esse video??:
-
Danihcv's post in (Resolvido)meu world name não quer aparecer was marked as the answerDe nada... suasuhashuahuahuas kkk, sou mt útil pow.
-
Danihcv's post in (Resolvido)Erros mysql server was marked as the answerDá debug no kina, por conta de algum item que ñ existe mas está dentro da mochila dele (por exemplo) ou por causa do look type que está zuado. Reveja os itens iniciais de knight, e se estiver tudo certo, então o problema é no looktype que ta zuado, aí vc exeuta esse comando:
UPDATE `SUA DATA BASE`.`players` SET `looktype` = '136' Que eu postei lá em cima.
Não esquece de colocar o nome da sua data base.
Não tem como dar erro dizendo que já existe, agr.
-
Danihcv's post in (Resolvido)[AJUDA] Ganhar tal level ao criar char was marked as the answerOk, abra sua data base pelo phpmyadmin e execute esse comando:
UPDATE `ot`.`players` SET `level` = '8', `health` = '180', `healthmax` = '180', `experience` = '4200', `mana` = '35', `manamax` = '35', `cap` = '400' ATENÇÃO!! OT é o nome da sua data base, ou seja, no lugar de "ot" vc coloca o nome da sua data base.
Abraços.
-
Danihcv's post in (Resolvido)Códigos de House was marked as the answerhm.. Aparece algum erro na distro??
Tenta mudar as suas linhas do aleta sio e do aleta som no seu talkactions.xml
Substitua as linhas deles 2 por essas:
<talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/> <talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/> -
Danihcv's post in (Resolvido)Npc que da storage was marked as the answerlocal id1 = 12468 --id do item a ser trocado local stor = 4150 -- storage que o npc vai adr pelo item local quantidade = 150 -- quantos itens player deve ter para trocar por storage local palavra = "battle" --palavra chave pra falar com o npc pra trocar a storage local mensagem = "You need to be prepared for this fight, bring more {Minor Crystalline Token}." -- a mensagem que deve ser dita se ele não tiver o item local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 playerHaveItems(cid, itemid) local items = type(itemid) == "table" and itemid or {itemid} for i = 1, #items do if getPlayerItemCount(cid, items[i]) <= 0 then return false end end return true end function doPlayerRemoveItems(cid, itemid, count) local items = type(itemid) == "table" and itemid or {itemid} for i = 1, #items do doPlayerRemoveItem(cid, items[i], count ~= nil and count or 1) end return nil end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end if msgcontains(msg, palavra) then if playerHaveItems(cid, {id1}) then doPlayerRemoveItems(cid, {id1}, quantidade) setPlayerStorageValue(cid, stor, 1) else selfSay(mensagem) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Vê aí.
-
Danihcv's post in (Resolvido)[AJUDA] Site ñ conta os players online was marked as the answerOpa, vlw ae amg, mas já resolvi aqui. REP+ pela atenção!
-
Danihcv's post in (Resolvido)[MOVEMENTS] Faster regeneration was marked as the answerBoots em movements.xml:
<!-- Boots (equipped) --> <movevent type="Equip" itemid="2358" slot="feet" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="2358" slot="feet" event="function" value="onDeEquipItem"/> <!-- Boots (unequipped) --> <movevent type="Equip" itemid="2358" slot="feet" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="2358" slot="feet" event="function" value="onDeEquipItem"/> Boots em items.xml:
<item id="2358" article="a" name="boots"> <attribute key="weight" value="1000" /> <attribute key="slotType" value="feet" /> <attribute key="healthGain" value="250" /> <attribute key="healthTicks" value="2000" /> <attribute key="manaGain" value="250" /> <attribute key="manaTicks" value="2000" /> <attribute key="showattributes" value="1" /> </item> Aqui vc define quanto de hp/mana o cara vai ganhar (healthGain/manaGain). E em healthTicks/manaTicks é o tempo em milissegundos (caso seu ot seja em milissegundos).
Mesma coisa pro amuleto:
Amuleto em movements.xml:
<!-- Amuleto (equipped) --> <movevent type="Equip" itemid="10134" slot="necklace" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="10134" slot="necklace" event="function" value="onDeEquipItem"/> <!-- Amuleto (unequipped) --> <movevent type="Equip" itemid="10134" slot="necklace" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="10134" slot="necklace" event="function" value="onDeEquipItem"/> Amuleto em items.xml:
<item id="10134" article="an" name="amuleto"> <attribute key="weight" value="1000" /> <attribute key="slotType" value="necklace" /> <attribute key="healthGain" value="250" /> <attribute key="healthTicks" value="2000" /> <attribute key="manaGain" value="250" /> <attribute key="manaTicks" value="2000" /> <attribute key="showattributes" value="1" /> </item> -
Danihcv's post in (Resolvido)Bug market , não poe item ! was marked as the answerOk, como pedido, aqui vai um tutorial mais detalhado das configurações da columns.
Vou colocar quais "caixinhas" vc deve deixar selecionadas em cada column:
Na column id basta selecionar o Data type como INTERGER e marcar a Primary key:
Na column player_id basta selecionar o Data type como INTERGER e marcar Not NULL:
Na column channel_id basta selecionar o Data type como INTERGER, marcar Not NULL, Default value, e configurar o Default value como está na imagem:
Na column text basta selecionar o Data type como VARCHAR, colocar o size como 255 e marcar o Not NULL:
Na column date basta selecionar o Data type como INTERGER, marcar Not NULL, Default value, e configurar o Default value como está na imagem:
Agora aperte Ok, depois Add e agora Create:
Agora encontre a table criada (player_statements), clique nela com o botão direito do mouse, e selecione Edit table:
E por fim vamos adicionar a Foreign key. Siga as imagens (AS IMAGENS ESTÃO LITERALMENTE PASSO-A-PASSO) :
Clique no + :
Aparecerá uma nova linha na parte de Table constraints (do lado do +) :
Agora clique na setinha ao lado de onde está escrito Primary key e selecione Foreign key:
Agora clique em Configure e abrirá uma nova janelinha:
Nela, clique na setinha ao lado da barra de Foreign key e selecione a table players:
Agora marque player_id, clique na setinha e selecione id:
Agora clique Ok e depois Change.
Pronto, agora seu problema está resolvido.
Para vc ter certeza de que está tudo certo, novamente clique com o botão direito na table nova (player_statements), clique em Edit table, e clique em DLL. Nessa parte, se tudo está igual à imagem, então está tudo certo mesmo:
OBS.: Na parte dos "DEFAULT" não importa se o 0 estiver entre aspas simples ' ou entre parenteses ( .
Espero ter ajudado! Se puder dar rep, pra dar aquela força, seria de imensa ajuda.
Se ainda persistir algum erro, pode me comunicar!
Abraços!