
Tudo que Rusherzin postou
-
Um probleminha com o Ajax... [atualizar página sem refresh]
Bom, a tua versão de gesior é diferente da minha, mas creio que o que tu está procurando é essa parte: onBlur="SendAjaxCip({DataType: \'Container\'}, {Href: \'account/ajax_accountname.php\',PostData: \'a_AccountName=\'+this.value,Method: \'POST\'}) Acredito que esteja enviando para o arquivo de nome ajax_accountname.php presente na pasta /account/ (é um dos que tu citou no post). Aconselho que abra ele e tente editar os valores que ele retorna para tentar descobrir o que está errado. Se precisar de ajuda, pode postar os arquivos que eu tento te orientar.
-
Um probleminha com o Ajax... [atualizar página sem refresh]
Tu precisas ver no teu createaccount.php qual função ele está executando em cada campo para descobrir o que o AJAX está recebendo como resposta do php. No gesior que eu tenho aqui, por exemplo, a função Javascript para a account name é checkAccount() e ela se comunica com o arquivo ajax_check_account.php, dentro da própria pasta de páginas do site.
-
Erro Creature script Gonka
Tu tens duas opções, ou cria um NPC com o nome [Server Information], ou tu remove a seguinte linha: doCreatureSay(getCreatureByName("[Server Information]"), "[DOUBLE POINTS]: Receba pontos em dobro para qualquer valores! Promoção por tempo LIMITADO!.", TALKTYPE_PRIVATE, false, cid)
-
[AJUDA] Procura gesior ou server com system
Pode tentar usar uma dessas sources, é só usar as tuas coisas para ver se funcionam com alguma delas. Link 1 Link 2
-
Erro Creature script Gonka
É no arquivo login.lua. Pode postar ele?
-
[AJUDA] Procura gesior ou server com system
Não entendi exatamente o que aconteceu. Qual versão de TFS está usando? O que exatamente tu fez no site que bugou o servidor? Tu compilou um TFS novo e começou a bugar?
- Launcher AutoUpdate C#
-
[Movements] Receber atributos ao equipar item.
Vai ter que determinar os ids para funcionar. Se eles estiverem em ordem, pode usar: (vai funcionar com itens de id 5400 até 5410) <movevent event="Equip" fromid="5400" toid="5410" slot="armor" script="armor.lua"/> Mas se não estiverem na ordem, pode fazer assim: (vai funcionar com os ids que estiverem ali) <movevent event="Equip" itemid="123;321;456" slot="armor" script="armor.lua"/>
-
movements da stora
<movevent type="StepIn" actionid="48001" event="script" value="storageStep.lua"/> storageStep.lua local storage = 12000 function onStepIn(cid, item, pos, fromPosition) if not isPlayer(cid) then return true end local playerStorage = getPlayerStorageValue(cid, storage) if (playerStorage == 37) then setPlayerStorageValue(cid, storage, 38) elseif (playerStorage == 40) then setPlayerStorageValue(cid, storage, 41) end return true end
-
Como mudar onde o player está pelo MYSQL?
UPDATE `players` SET `posx`=1, `posy`=2, `posz`=7 WHERE `name`="Nome do Personagem";
-
Servidor desenvolvido no Windows.
@ManoelMagebott, sim, tu pode. Só tem que saber qual versão/distribuição do TFS tu está usando no Windows e ter certeza de que tem uma versão equivalente para rodar no sistema operacional que tu escolheu. Se for a mesma versão e ela funcionar no Linux, então provavelmente tudo vai dar certo.
-
Script Da Exp (Poketibia)
Procura no config.lua por experienceStages e coloca true no lugar de false se quiser ativar e arrumar de acordo com o stages.xml.
-
(Resolvido)[SUPORTE] Most Powerful não funciona com GUILD
Não, ele procura por kills entre os jogadores que fazem parte da guild, se não tiver nenhum frag, vai retornar um conjunto vazio. Tenta pegar algum kill e depois checar o site de novo.
-
(Resolvido)[SUPORTE] Most Powerful não funciona com GUILD
O único motivo para não aparecer seria se não tivesse kills registrados para essa guild.
- Sword Art Online/LegendOfAincrad - Official Discussion Thread
-
Erro Rme Map Editor
Colocou o teu items.xml e items.otb do teu servidor na pasta da respectiva versão que está usando? (pasta do Remere's)
-
(Resolvido)NPC QUE TROCA VOCAÇÃO_CONFIG HP/MANA
Pode tentar com isso: local id = getPlayerGUID(cid) doRemoveCreature(cid, true) db.executeQuery("UPDATE `players` SET `maglevel`=1, `manaspent` = 1 WHERE `id`="..id..";") Mas não tenho certeza se vai funcionar.
-
(Resolvido)SPELL TARGET - IMPOSSIVEL?
Aaaah, okay. Usa assim então: local healed = var.number if(healed == cid) then doPlayerSendTextMessage(cid, 27, "Não pode usar em si mesmo.") return false end
-
(Resolvido)SPELL TARGET - IMPOSSIVEL?
Pode me mandar a tag que está usando no XML? Eu testei aqui e deu certo.
-
(Resolvido)NPC QUE TROCA VOCAÇÃO_CONFIG HP/MANA
Tenta assim: 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 creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local function getPlayerInfoByVocation(cid, vocation) local info = getVocationInfo(vocation) local level = getPlayerLevel(cid) return {health = (info.healthGain * level-1) + 150, mana = (info.manaGain * level-1) + 90, cap = (info.capacity) * level} end if(msgcontains(msg, 'sorcerer') or msgcontains(msg, 'sorc')) then selfSay('Deseja virar {Sorcerer} por 10 Lethal Orbs?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(getPlayerItemCount(cid, 7722) >= 10) then doPlayerRemoveItem(cid, 7722, 10) doPlayerSetVocation(cid,1) local values = getPlayerInfoByVocation(cid, 1) setCreatureMaxHealth(cid, values.health) setCreatureMaxMana(cid, values.mana) doPlayerSetMaxCapacity(cid, values.cap) selfSay('Vocação trocada com sucesso , Agora você é um Sorcerer.', cid) else selfSay('Você não tem {Lethal Orbs} Suficientes.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'druid') or msgcontains(msg, 'druida')) then selfSay('Deseja virar {Druid} por 10 Lethal Orbs?', cid) talkState[talkUser] = 2 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then if(getPlayerItemCount(cid, 7722) >= 10) then doPlayerRemoveItem(cid, 7722, 10) doPlayerSetVocation(cid,2) local values = getPlayerInfoByVocation(cid, 2) setCreatureMaxHealth(cid, values.health) setCreatureMaxMana(cid, values.mana) doPlayerSetMaxCapacity(cid, values.cap) selfSay('Vocação trocada com sucesso , Agora você é um Druid.', cid) else selfSay('Você não tem {Lethal Orbs} Suficientes.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'Knight') or msgcontains(msg, 'kina')) then selfSay('Deseja virar {knight} por 10 Lethal Orbs?', cid) talkState[talkUser] = 3 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then if(getPlayerItemCount(cid, 7722) >= 10) then doPlayerRemoveItem(cid, 7722, 10) doPlayerSetVocation(cid,4) local values = getPlayerInfoByVocation(cid, 4) setCreatureMaxHealth(cid, values.health) setCreatureMaxMana(cid, values.mana) doPlayerSetMaxCapacity(cid, values.cap) selfSay('Vocação trocada com sucesso , Agora você é um Knight.', cid) else selfSay('Você não tem {Lethal Orbs} Suficientes.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'paladin') or msgcontains(msg, 'pala')) then selfSay('Deseja virar {Paladin} por 10 Lethal Orbs?', cid) talkState[talkUser] = 4 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 4) then if(getPlayerItemCount(cid, 7722) >= 10) then doPlayerRemoveItem(cid, 7722, 10) doPlayerSetVocation(cid,3) local values = getPlayerInfoByVocation(cid, 3) setCreatureMaxHealth(cid, values.health) setCreatureMaxMana(cid, values.mana) doPlayerSetMaxCapacity(cid, values.cap) selfSay('Vocação trocada com sucesso , Agora você é um Paladin.', cid) else selfSay('Você não tem {Lethal Orbs} Suficientes.', cid) end talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
(Resolvido)SPELL TARGET - IMPOSSIVEL?
@Infused, tenta colocar isso depois de function onCastSpell(cid, var) local healed = getCreatureByName(var.string) if(healed == cid) then doPlayerSendTextMessage(cid, 27, "Não pode usar em si mesmo.") return false end
-
getSpecialAttribute on all items
I'm sorry, but I don't know why it's returning a bool instead of a string.
-
getSpecialAttribute on all items
I'm not sure if it's going to work because I did not test the code. Anyway, I think you can do something like this: local TItoDelete = db.storeQuery("SELECT `player_id`,`pid`,`sid`,CONVERT(`attributes` USING latin1 ) AS `attr` FROM `player_items` WHERE CONVERT(`attributes` USING latin1 ) LIKE '%timerOnExp%'") if TItoDelete then -- if the MySQL result is not empty repeat local attrstring = result.getString(TItoDelete, "attr") -- get the attribute local attrnumber = tonumber(string.sub(attrstring, -12, string.len(attrstring)-2)) -- here I try to get only the number (I'm not sure if it will work) if (os.time() >= attrnumber) then local playerid = result.getNumber(TItoDelete, "player_id") local pid = result.getNumber(TItoDelete, "pid") local sid = result.getNumber(TItoDelete, "sid") db.storeQuery("DELETE FROM `player_items` WHERE `player_id`="..playerid.." AND `pid` = "..pid.." AND `sid` ="..sid) -- deletes item end until not result.next(TItoDelete) end By the way, this one is just an example that should work for `player_items`.
-
getSpecialAttribute on all items
First of all, you need to know how is your attribute stored. Try executing the MySQL command that luanluciano posted. For example: SELECT `player_id`,`pid`,`sid`,CONVERT(`attributes` USING latin1 ) FROM `player_items` WHERE CONVERT(`attributes` USING latin1 ) LIKE '%timerOnExp%' After that, you'll get the results and know how the attribute is stored, then you need to figure out how to retrieve the data. If you're not able to do it yourself, post the results so we can try to help you with that.
-
[PEDIDO]Script que order não funciona em pz
Tu tens que postar o teu script de order para que alguém possa ajudar. Provavelmente está em actions.