
Tudo que vankk postou
-
(Resolvido)[Urgente] Comando /t Bugado
Provavelmente você está residindo uma outra cidade que não é a principal para o jogo, cheque na database do servidor, e coloque a town principal em town_id, se estiver utilizando Gesior, para jogadores novos que criarem a conta, vá em config/config.php e mude isso $config['site']['newchar_towns'] = array(2); - o 2 seria que todos os jogadores que criassem a account iria para o townid 2.. E um comando para sql para fazer todos serem moradores de uma cidade é: UPDATE players SET `town_id` = 2 Vai fazer que todos os players que estiverem na database seja residente da cidade com o id 2. Espero que entenda, se não entender o que eu disse, leia 843753 vezes até entender, é a melhor explicação que posso dar.
-
(Resolvido)[GESIOR] ME AJUDEM É URGENTE !
?? https://github.com/s3kk/Heromassa/blob/master/schemas/war_cast_mysql%28gesior%29.sql#L54 https://github.com/s3kk/Heromassa/blob/master/schemas/war_cast_mysql%28gesior%29.sql#L174-L201 https://github.com/s3kk/Heromassa/blob/master/schemas/war_cast_mysql%28gesior%29.sql#L367-L482 https://github.com/s3kk/Heromassa/blob/master/schemas/war_cast_mysql%28gesior%29.sql#L996-L1340 https://github.com/s3kk/Heromassa/blob/master/schemas/war_cast_mysql%28gesior%29.sql#L1364-L1709 etc etc etc
-
(Resolvido)script quando o tempo da storage terminar player é teleportado
@Sekk ta mal em.. Utilize globalevents algo assim para dar tp no player local k = { storage = 1111 } function onThink(interval, lastExecution, thinkInterval) if getPlayerStorageValue(cid, k.storage) < os.time() and isPlayerPzLocked(cid) == true then return false else doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) return true end end PS: Só vai dar tp se não tiver pz locked, assim não tem maneiras de bugar.
-
(Resolvido)[GESIOR] ME AJUDEM É URGENTE !
@Sekk não, da uma olhada e atualiza lá
-
Forcem músicas
kevin gates tira mt onda, já tem o album full dele, HAHAHA! Essa do jay z com kanye west eu to ate enjoado de tanto que ja escutei, iuwehtiuwtheuiw. vou ver essa hora, parece ser top!
- Monstros e Items 10.94 10.98 10.99
-
(Resolvido)Limite de Players da Página de Loteria
Tudo nessa vida é possível. <?PHP ECHO '<center> <h1>Lottery System</h1> <h4>Nosso Lottery System sorteia toda hora 5K de Crystal Coins, entre os Players On Line.</h4> </center> <br> <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS=white><center><b>Nome do ganhador</b></center></td> <td CLASS=white width=184 colspan=2> <center><b>Recompensa</b></center> </td> </tr>'; $lottery = $SQL->query('SELECT id, name, item, world_id FROM lottery WHERE world_id = 0 ORDER BY id DESC LIMIT 5;'); foreach($lottery as $result) { $players++; if(is_int($players / 2)) $bgcolor = $config['site']['lightborder']; else $bgcolor = $config['site']['darkborder']; ECHO '<TR BGCOLOR='.$bgcolor.'> <TD WIDTH=35%> <center><a href="?subtopic=characters&name='.urlencode($result['name']).'">'.$result['name'].'</a></center> </td> <TD WIDTH=35%><center>'.$result['item'].'</center></td><TD WIDTH=30%><center>Br Ot Server</center></td> </tr>'; } ECHO '</table>'; ?> Está com um limite de 5.
- Monstros e Items 10.94 10.98 10.99
-
Ajuda com canal Help
Você está testando com uma conta de GOD ou até mesmo com o god? Se sim, já achamos o problema, se não, eu removi a condição para adicionar o muted. local CHANNEL_HELP = 7 local muted = Condition(CONDITION_CHANNELMUTEDTICKS, CONDITIONID_DEFAULT) muted:setParameter(CONDITION_PARAM_SUBID, CHANNEL_HELP) muted:setParameter(CONDITION_PARAM_TICKS, 120000) function onSpeak(player, type, message) local playerAccountType = player:getAccountType() if player:getLevel() == 1 and playerAccountType == ACCOUNT_TYPE_NORMAL then player:sendCancelMessage("You may not speak into channels as long as you are on level 1.") return false end -- muted por tempo if player:getCondition(CONDITION_CHANNELEXAUSTTICKS, CONDITIONID_DEFAULT, CHANNEL_HELP) then player:sendCancelMessage("You may only ask a question once every two minutes.") return false end player:addCondition(muted) if type == TALKTYPE_CHANNEL_Y then if playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(player, PlayerFlag_TalkOrangeHelpChannel) then type = TALKTYPE_CHANNEL_O end elseif type == TALKTYPE_CHANNEL_O then if playerAccountType < ACCOUNT_TYPE_TUTOR and not getPlayerFlagValue(player, PlayerFlag_TalkOrangeHelpChannel) then type = TALKTYPE_CHANNEL_Y end elseif type == TALKTYPE_CHANNEL_R1 then if playerAccountType < ACCOUNT_TYPE_GAMEMASTER and not getPlayerFlagValue(player, PlayerFlag_CanTalkRedChannel) then if playerAccountType >= ACCOUNT_TYPE_TUTOR or getPlayerFlagValue(player, PlayerFlag_TalkOrangeHelpChannel) then type = TALKTYPE_CHANNEL_O else type = TALKTYPE_CHANNEL_Y end end end return type end
-
[duvida] Vps linux
Porque existe um ";" depois do screen? Tente utilizar screen ./theotxserver
- [ERRO] Gersior
- EVENTO - Last Man Standing - 100% funcional.
- [ERRO] GESIOR
-
VOLTEI NESSA CARALHA
IEWUHTIWEUHTWIEUHTWIEUHTIUWEHTIUHWEITUHWEIUTWEIUTHWE
-
VOLTEI NESSA CARALHA
concordo newfag.
- EVENTO - Last Man Standing - 100% funcional.
- [ERRO] GESIOR
-
[Pedido] NPC que transfira pontos físicos no jogo em pontos no site
Depois da uma ajudada nesse tópico ai, pq 0.4 fede
-
[Pedido] NPC que transfira pontos físicos no jogo em pontos no site
@xWhiteWolf meu caro lobo, ajude essa pobre alma chamada vankk que é horrível com npcs do TFS 0.4, noix. btw, tenta isso pela ultima vez. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local k = { item = 9970 } 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 local function getCount(s) local b, e = s:find('%d+') return b and e and math.min(4294967295, tonumber(s:sub(b, e))) or -1 end function creatureSayCallback(cid, type, msg) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if not npcHandler:isFocused(cid) then return false elseif msgcontains(msg, 'transfer') then npcHandler:say('Please tell me the amount that you want change.', cid) talkState[talkUser] = 1 if talkState[talkUser] == 1 then if getCount(msg) > 1 then count[cid] = getCount(msg) npcHandler:say('Do you want change ' .. count[cid] .. ' '.. getItemNameById(k.item) ..' for ' .. count[cid] .. ' premium points in the website?', cid) talkState[talkUser] = 2 else npcHandler:say('Please tell me the amount that you want change.', cid) talkState[talkUser] = nil end end elseif talkState[talkUser] == 2 and msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid, k.item, count[cid]) then local p = "UPDATE `accounts` SET `premium_points` = `premium_points` + ".. count[cid] .." where id="..getPlayerAccountId(cid) db.executeQuery(p) npcHandler:say('Very well. You have transfered ' .. count[cid] .. ' '.. getItemNameById(k.item) ..' for ' .. count[cid] .. '.', cid) talkState[talkUser] = nil else npcHandler:say('You do not have the items.', cid) talkState[talkUser] = nil end elseif talkState[talkUser] == 2 and msgcontains(msg, 'no') then npcHandler:say('Ok then.', cid) talkState[talkUser] = nil end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
[Pedido] NPC que transfira pontos físicos no jogo em pontos no site
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local k = { item = 9970 } 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 local function getCount(s) local b, e = s:find('%d+') return b and e and math.min(4294967295, tonumber(s:sub(b, e))) or -1 end function creatureSayCallback(cid, type, msg) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if not npcHandler:isFocused(cid) then return false elseif msgcontains(msg, 'transfer') then npcHandler:say('Please tell me the amount that you want change.', cid) talkState[talkUser] = 1 if talkState[talkUser] == 1 then if getCount(msg) == -1 then count[cid] = getCount(msg) npcHandler:say('Do you want change ' .. count[cid] .. ' '.. getItemNameById(k.item) ..' for ' .. count[cid] .. ' premium points in the website?', cid) talkState[talkUser] = 2 end end elseif talkState[talkUser] == 2 and msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid, k.item, count[cid]) then local p = "UPDATE `accounts` SET `premium_points` = `premium_points` + ".. count[cid] .." where id="..getPlayerAccountId(cid) db.executeQuery(p) npcHandler:say('Very well. You have transfered ' .. count[cid] .. ' '.. getItemNameById(k.item) ..' for ' .. count[cid] .. '.', cid) talkState[talkUser] = nil else npcHandler:say('You do not have the items.', cid) talkState[talkUser] = nil end elseif talkState[talkUser] == 2 and msgcontains(msg, 'no') then npcHandler:say('Ok then.', cid) talkState[talkUser] = nil end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
[Pedido] NPC que transfira pontos físicos no jogo em pontos no site
Não foi seu, foi meu mesmo, eu esqueço sempre de configurar o talkState mesmo. Testa e veja o que da.
-
[Pedido] NPC que transfira pontos físicos no jogo em pontos no site
Por isso que odeio npcs da versão 0.4 local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local k = { item = 9970 } 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 local function getCount(s) local b, e = s:find('%d+') return b and e and math.min(4294967295, tonumber(s:sub(b, e))) or -1 end function creatureSayCallback(cid, type, msg) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if not npcHandler:isFocused(cid) then return false elseif msgcontains(msg, 'transfer') then npcHandler:say('Please tell me the amount that you want change.', cid) talkState[talkUser] = 1 if talkState[talkUser] == 1 then if getCount(msg) == -1 then npcHandler:say('Please tell me the amount that you want change.', cid) talkState[talkUser] = nil else count[cid] = getCount(msg) npcHandler:say('Do you want change ' .. count[cid] .. ' '.. getItemNameById(k.item) ..' for ' .. count[cid] .. ' premium points in the website?', cid) talkState[talkUser] = 2 end end elseif talkState[talkUser] == 2 and msgcontains(msg, 'yes') then if doPlayerRemoveItem(cid, k.item, count[cid]) then local p = "UPDATE `accounts` SET `premium_points` = `premium_points` + ".. count[cid] .." where id="..getPlayerAccountId(cid) db.executeQuery(p) npcHandler:say('Very well. You have transfered ' .. count[cid] .. ' '.. getItemNameById(k.item) ..' for ' .. count[cid] .. '.', cid) talkState[talkUser] = nil else npcHandler:say('You do not have the items.', cid) talkState[talkUser] = nil end elseif talkState[talkUser] == 2 and msgcontains(msg, 'no') then npcHandler:say('Ok then.', cid) talkState[talkUser] = nil end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
(Resolvido)[GESIOR] ME AJUDEM É URGENTE !
A pasta htdocs do xampp? xddd
-
(Resolvido)[GESIOR] ME AJUDEM É URGENTE !
Leia o erro do install, que você conseguirá. AAC installation is disabled. To enable it make file install.php in main AAC directory and put there your IP. E utilize esses comandos no SQL ALTER TABLE `guilds` ADD `logo_gfx_name` varchar(255) NOT NULL DEFAULT ''; CREATE TABLE IF NOT EXISTS `z_forum` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sticky` tinyint(1) NOT NULL DEFAULT '0', `closed` tinyint(1) NOT NULL DEFAULT '0', `first_post` int(11) NOT NULL DEFAULT '0', `last_post` int(11) NOT NULL DEFAULT '0', `section` int(3) NOT NULL DEFAULT '0', `replies` int(20) NOT NULL DEFAULT '0', `views` int(20) NOT NULL DEFAULT '0', `author_aid` int(20) NOT NULL DEFAULT '0', `author_guid` int(20) NOT NULL DEFAULT '0', `post_text` text NOT NULL, `post_topic` varchar(255) NOT NULL, `post_smile` tinyint(1) NOT NULL DEFAULT '0', `post_date` int(20) NOT NULL DEFAULT '0', `last_edit_aid` int(20) NOT NULL DEFAULT '0', `edit_date` int(20) NOT NULL DEFAULT '0', `post_ip` varchar(32) NOT NULL DEFAULT '0.0.0.0', PRIMARY KEY (`id`), KEY `section` (`section`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-
Forcem músicas
força músicas nessa porra ai!!!