Ir para conteúdo

vankk

Membro
  • Registro em

  • Última visita

Tudo que vankk postou

  1. O menor, eu até pensei em te ajudar por um momento, mas depois disso do que você falou nem perco meu tempo mais. Se continuar com essa atitude de criança ai, nenhum de nos scripters do TibiaKing vai te ajudar, um forte abraço.
  2. Você está muito agressivo, menor. Veja quais funções não estão funcionando e as coloque para funcionar, até aonde que eu saiba, todos os servidores de pokemon são da mesma versão do TFS, só muda nome e algumas variáveis, ou seja, ajuste-as, e vai com tudo no seu servidor de Pokemon, sub 12!! UHUL!
  3. vankk postou uma resposta no tópico em Formação de Equipe
    Me adiciona lá, vankk_
  4. O próprio erro já te deu a solução Lê o erro antes de postar no tk.
  5. vankk postou uma resposta no tópico em Formação de Equipe
    Please fill the form that I did above. @bobsz Irei dar uma resposta no final da tarde de hoje com todas as pessoas que forem respondendo o tópico :D - tenta baixar skype para conversamos melhor se possível.
  6. @luanluciano93 Já que é TFS 1.0 muda o item:remove(1) para Item(item.uid):remove(1) Faz o que eu falei acima @batba15
  7. vankk postou uma resposta no tópico em Formação de Equipe
    Vai foi gamemaster de algum servidor? Tem experiência?
  8. vankk postou uma resposta no tópico em Formação de Equipe
    Olá a todos, estou atrás de gamemasters EXPERIENTES, e que tenham um dom para ajudar, e também tempo. O Cargo será um cargo remunerado. Você receberá semanalmente, e por isso, SÓ pessoas realmente interessadas, e saibam que serão exigidas em seu máximo queiram participar desse projeto. LEMBRANDO: ESTOU ATRÁS DE PESSOAS EXPERIENTES!!! E NÃO CRIANÇAS. Se estiver interessado, por favor entre em contato comigo via Discord, vankk #7765.
  9. Ainda não consigo adivinhar qual versão do TFS você está usando
  10. vankk postou uma resposta no tópico em Playground (Off-topic)
    vou ficar spamando então p ganhar um ban eterno de 30 dias, sr. bruno.
  11. Não, não, essa é uma função simples para checar se o jogador está ou não em Proctetion Zone/PVP Zone. Porque eu não gosto de ficar escrevendo toda hora.. Tile(player:getPosition()):hasFlag(TILESTATE_PROCTETIONZONE) ai por isso da função
  12. Cara, se fosse em TFS 1.2 eu até faria para você, mas como eu ODEIO 0.3.6 então, deixo você com essa tarefa, não é difícil Boa sorte.
  13. foreach($SQL->query('SELECT ' . $SQL->tableName('g') . '.' . $SQL->fieldName('id') . ' AS ' . $SQL->fieldName('id') . ', ' . $SQL->tableName('g') . '.' . $SQL->fieldName('name') . ' AS ' . $SQL->fieldName('name') . ', COUNT(' . $SQL->tableName('g') . '.' . $SQL->fieldName('name') . ') AS ' . $SQL->fieldName('frags') . ' FROM ' . $SQL->tableName('killers') . ' k LEFT JOIN ' . $SQL->tableName('player_killers') . ' pk ON ' . $SQL->tableName('k') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('pk') . '.' . $SQL->fieldName('kill_id') . ' LEFT JOIN ' . $SQL->tableName('players') . ' p ON ' . $SQL->tableName('pk') . '.' . $SQL->fieldName('player_id') . ' = ' . $SQL->tableName('p') . '.' . $SQL->fieldName('id') . ' LEFT JOIN ' . $SQL->tableName('guild_ranks') . ' gr ON ' . $SQL->tableName('p') . '.' . $SQL->fieldName('rank_id') . ' = ' . $SQL->tableName('gr') . '.' . $SQL->fieldName('id') . ' LEFT JOIN ' . $SQL->tableName('guilds') . ' g ON ' . $SQL->tableName('gr') . '.' . $SQL->fieldName('guild_id') . ' = ' . $SQL->tableName('g') . '.' . $SQL->fieldName('id') . ' WHERE ' . $SQL->tableName('g') . '.' . $SQL->fieldName('id') . ' > 0 AND ' . $SQL->tableName('k') . '.' . $SQL->fieldName('unjustified') . ' = 1 AND ' . $SQL->tableName('k') . '.' . $SQL->fieldName('final_hit') . ' = 1 GROUP BY ' . $SQL->fieldName('name') . ' ORDER BY ' . $SQL->fieldName('frags') . ' DESC, ' . $SQL->fieldName('name') . ' ASC LIMIT 4;') as $guild) $main_content .= '<td style="width: 25%; text-align: center;"><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="64" height="64" border="0"/><br />' . htmlspecialchars($guild['name']) . '</a><br />' . $guild['frags'] . ' kills </td>'; $main_content .= '</tr></table>'; testa com essa query, é uma incerteza que vai funcionar.
  14. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    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 local v = { experience = 20, -- experience vai para 2x level = 400, -- levle para entrar na zueira itemId = 11757, -- item dos s2 heartsNeeded = 10, -- qntos s2 precisa magicLevel = 10, -- ml + swordAdd = 10, -- sword + distanceAdd = 10 -- distance + } local config = { --[Vocation] = ( Nova Vocation, New Outfit ) [14] = { 14, 876}, -- Naruto } function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'anbu') then if getPlayerVocation(cid) ~= config then if getPlayerStorageValue(cid, 85798723243) == -1 then if getPlayerLevel(cid) >= v.level then selfSay('Tem certeza de que quer se juntar a Anbu?.', cid) talkState[talkUser] = 1 else selfSay('Você nem sabe o nível que é pra entrar na anbu, suma da minha frente seu idiota.', cid) end else selfSay('Você já faz parte de uma organizaçao!', cid) end else selfSay('Não preciso de você agora!', cid) end end if talkState[talkUser] == 1 and msgcontains(msg, 'yes') then selfSay('Para provar a sua lealdade, você tem que trazer '.. v.quantidade ..' {coraçao}.', cid) talkState[talkUser] = 2 end if talkState[talkUser] == 2 and msgcontains(msg, 'coraçao') then if getPlayerItemCount(cid, v.itemId) >= v.heartsNeeded then local voc = config[getPlayerVocation(cid)] doPlayerSetVocation(cid, voc[1]) local outfit = {lookType = voc[2]} doCreatureChangeOutfit(cid, v.outfit) doPlayerAddSkill(cid, 2, v.swordAdd) -- type 2 doPlayerAddSkill(cid, 4, v.distanceAdd) -- type 4 doPlayerAddMagLevel(cid, v.magicLevel) doPlayerRemoveItem(cid, v.itemId, v.heartsNeeded) setPlayerStorageValue(cid, 85798723243,1) doPlayerSetExperienceRate(cid, v.experience) selfSay('Parabéns agora você faz parte da Anbu.', cid) talkState[talkUser] = 1 else selfSay('Não adianta me enganar, você não tem '.. v.quantidade..' corações, vai atrás, e só volte com eles.', cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  15. Seria basicamente algo assim, eu não me recordo como funciona no TFS 0.3.6 para checar o outfit, e não tem como eu verificar, porque não tenho nenhum arquivo do 0.3.6, e não tenho nem intenção de baixar.. 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 local config = { storage = 98775, -- storage outfit = { male = 654, -- looktype do addon male female = 655, -- looktype do addon female }, } function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'addon') then if getPlayerStorageValue(cid, config.storage) == 1 then npcHandler:say('You already recived your addon!', cid) talkState[talkUser] = 0 return true end npcHandler:say('Do you want to get the second summoner addon?', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and (talkState[talkUser] == 1) then if getPlayerItemCount(cid, 2145 ) >= 10 then npcHandler:say('Here you are.', cid) doPlayerRemoveItem(cid, 2145, 10) doPlayerAddOutfit(cid, config.outfit.male, 3) doPlayerAddOutfit(cid, config.outfit.female, 3) talkState[talkUser] = 0 else npcHandler:say('You don\'t have the required items.', cid) talkState[talkUser] = 0 end elseif msgcontains(msg, 'no') and (talkState[talkUser] == 1) then npcHandler:say('Ok then.', cid) talkState[talkUser] = 0 else npcHandler:say('É, vankk odeia scripts de 0.3.6 mesmo..', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  16. ninguém é sabe adivinhar codes aqui ainda, então poste o code. veja se existe guild no servidor. veja se as guilds que existem no servidor possui kills. veja se o script está checando corretamente a database. se não entendeu nada o que eu falei, lê de novo.
  17. é assim mesmo que o TFS trabalha, para fazer isso provavelmente que deverá exigir um source edit. Tenta utilizar isso, não sei se funcionara. int32_t LuaScriptInterface::luaDoPlayerAddItem(lua_State* L) { //doPlayerAddItem(cid, itemid[, count/subtype = 1[, canDropOnMap = true[, slot = 0]]]) //doPlayerAddItem(cid, itemid[, count = 1[, canDropOnMap = true[, subtype = 1[, slot = 0]]]]) int32_t params = lua_gettop(L), subType = 1, slot = SLOT_WHEREEVER; if(params > 5) slot = popNumber(L); if(params > 4) { if(params > 5) subType = popNumber(L); else slot = popNumber(L); } bool canDropOnMap = true; if(params > 3) canDropOnMap = popNumber(L); uint32_t count = 1; if(params > 2) count = popNumber(L); uint32_t itemId = popNumber(L); if(slot > SLOT_AMMO) { errorEx("Invalid slot."); lua_pushboolean(L, false); return 1; } ScriptEnviroment* env = getEnv(); Player* player = env->getPlayerByUID((uint32_t)popNumber(L)); if(!player) { errorEx(getError(LUA_ERROR_PLAYER_NOT_FOUND)); lua_pushboolean(L, false); return 1; } const ItemType& it = Item::items[itemId]; int32_t itemCount = 1; if(params > 4) itemCount = std::max((uint32_t)1, count); else if(it.hasSubType()) { if(it.stackable) itemCount = (int32_t)std::ceil((float)count / 100); subType = count; } while(itemCount > ) { int32_t stackCount = std::min(100, subType); Item* newItem = Item::CreateItem(itemId, stackCount); if(!newItem) { errorEx(getError(LUA_ERROR_ITEM_NOT_FOUND)); lua_pushboolean(L, false); return 1; } if(it.stackable) subType -= stackCount; ReturnValue ret = g_game.internalPlayerAddItem(NULL, player, newItem, canDropOnMap, (slots_t)slot); if(ret != RET_NOERROR) { delete newItem; lua_pushboolean(L, false); return 1; } --itemCount; if(itemCount) continue; if(newItem->getParent()) lua_pushnumber(L, env->addThing(newItem)); else //stackable item stacked with existing object, newItem will be released lua_pushnil(L); return 1; } lua_pushnil(L); return 1; }
  18. 4youstart.com fala que vankk que te recomendou, gg.
  19. Só fazer isso.
  20. Desculpa senhor scripter, já ajudei falando para não utilizar essa merda que você mandou para ele, e para REALMENTE AJUDAR ELE, é só ele utilizar a ferramenta de pesquisa, eu já fiz uns 3 scripts diferentes para esse mesmo tipo de coisa.
  21. Para mim não importa utilizando gambiarra, coisa feia. Se for ajudar alguém que seja direito, e não uma coisa feia dessa

Informação Importante

Confirmação de Termo