Ir para conteúdo

vankk

Membro
  • Registro em

  • Última visita

Tudo que vankk postou

  1. Vai no seu phpmyadmin, escolhe a database do seu servidor, e clica em SQL, cola a schema que eu te mandei, e clica em executar.
  2. Fique com falhas de account manager entao. std::string tmp = asLowerCaseString(managerString); if(tmp.substr(0, 4) != "god " && tmp.substr(0, 3) != "cm " && tmp.substr(0, 3) != "gm " && tmp.substr(0, 3) != "'") && tmp.substr(0, 3) != "ç" { talkState[1] = talkState[2] = true; msg << "{" << managerString << "}, are you sure? {yes} or {no}?"; } else msg << "You cannot use theses words";
  3. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 19 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';") if(result_plr:getID() ~= -1) then while(true) do id = tonumber(result_plr:getDataInt("id")) action = tostring(result_plr:getDataString("action")) delete = tonumber(result_plr:getDataInt("delete_it")) cid = getCreatureByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) == TRUE then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local container_id = tonumber(result_plr:getDataInt("param3")) local container_count = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local received_item = 0 local full_weight = 0 if add_item_type == 'container' then full_weight = getItemWeightById(itemtogive_id, 1) end local free_cap = getPlayerFreeCap(cid) if full_weight <= free_cap then if add_item_type == 'container' then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while iter ~= container_count do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) received_item = doPlayerAddItemEx(cid, new_item) end if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.') db.query("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.query("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") doPlayerSave(cid) else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> The item '.. add_item_name ..' << that you just bought on the website couldnt be added. Han error has ocurred, please wait '.. SQL_interval ..' seconds.. Shop ID: '.. id ..'') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> The item '.. add_item_name ..' << that you just bought on the website couldnt be added. Han error has ocurred, please wait '.. SQL_interval ..' seconds.. Shop ID: '.. id ..'') end end if not(result_plr:next()) then break end end result_plr:free() end return TRUE end no XML adiciona: <globalevent name="shop" interval="30000" script="shop.lua"/>
  4. Se voce tem website, voce nao precisa de account manager. E inutil. Leia por si proprio o que o Mark fala sobre account manager, REMOVIDO!
  5. >> if (getCreatureStorage(cid, 89745) == 4) then if (getCreatureStorage(cid, 89745) == 4 or getCreatureStorage(cid, STORAGE) == NUMEROSTORAGE) then
  6. Creaturescripts, ele nao esta adicionando a storage quando mata os monstros.
  7. vankk postou uma resposta no tópico em ElfBot NG
    auto 200 attack target nao funcionou: o.o.. No magebot voce seleciona o Hold Attack..
  8. Account Manager? Se sim, desativa. Se for em site, voce pode desativar caracteres como " ', ç, ´ ~ ^ ".
  9. local tempo = 180 -- tempo em segundos. local ml = 80 -- quantos ira aumentar o skill de ML local skillfist = 25 -- quantos ira aumentar o skill de Fist local skillsword = 85 -- quantos ira aumentar o skill de Sword local skillaxe = 25 -- quantos ira aumentar o skill de Axe local skillclub = 25 -- quantos ira aumentar o skill de Club local skilldistance = 85 -- quantos ira aumentar o skill de Distance local skillshield = 25 -- quantos ira aumentar o skill de Shield local health = 200 -- A cada 1 segundo quantos aumentar de vida local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield) setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_SPEED, 250) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000) setCombatCondition(combat, condition) function magicEffect113(tempo2,tempo3,cid) if (isCreature(cid)) then if getCreatureCondition(cid, CONDITION_REGENERATION, 1) then doSendMagicEffect(getPlayerPosition(cid), 113) end end end function onCastSpell(cid, var) local outfit = {lookType = 512, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0} if (getCreatureStorage(cid, 89745) == 4) then if getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then doSetCreatureOutfit(cid, outfit, 60*1000) doCombat(cid, combat, var) tempo2 = 0 while (tempo2 ~= (tempo*1000)) do addEvent(magicEffect113, tempo2, tempo2, tempo*1000, cid) tempo2 = tempo2 + 500 end doPlayerSendCancel(cid, "Sorry, you are transformed.") end else doPlayerSendCancel(cid, "Sorry, you're not Anbu.") end end
  10. Voce copiou errado, provavelmente. Esta faltando "end" para fechar o script. Posta os respectivos script no topico.
  11. Libera a porta 7171 e 7172 do seu modem, e coloca o seu IP no config.lua e tenta novamente.
  12. vankk postou uma resposta no tópico em Suporte Tibia OTServer
    Posta a parte do Action, do onUse.
  13. Esta apenas para Anbu so utilizar a spell. Voce quer que coloque a outfit por 60 segudos tambem? Se sim, qual. local tempo = 180 -- tempo em segundos. local ml = 80 -- quantos ira aumentar o skill de ML local skillfist = 25 -- quantos ira aumentar o skill de Fist local skillsword = 85 -- quantos ira aumentar o skill de Sword local skillaxe = 25 -- quantos ira aumentar o skill de Axe local skillclub = 25 -- quantos ira aumentar o skill de Club local skilldistance = 85 -- quantos ira aumentar o skill de Distance local skillshield = 25 -- quantos ira aumentar o skill de Shield local health = 200 -- A cada 1 segundo quantos aumentar de vida local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield) setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_SPEED, 250) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000) setCombatCondition(combat, condition) function magicEffect113(tempo2,tempo3,cid) if (isCreature(cid)) then if getCreatureCondition(cid, CONDITION_REGENERATION, 1) then doSendMagicEffect(getPlayerPosition(cid), 113) end end end function onCastSpell(cid, var) if (getCreatureStorage(cid, 89745) == 4) then if getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then doCombat(cid, combat, var) tempo2 = 0 while (tempo2 ~= (tempo*1000)) do addEvent(magicEffect113, tempo2, tempo2, tempo*1000, cid) tempo2 = tempo2 + 500 end doPlayerSendCancel(cid, "Sorry, you are transformed.") end else doPlayerSendCancel(cid, "Sorry, you're not Anbu.") end end
  14. Essa questao de absorver elementos, eu nao tenho ideia de qual seja a funcao a ser utilizada se fosse algum item, seria <attribute key="absorbPercentAll" value="10"/> function onStatsChange(cid, attacker, type, combat, value) local absorb = math.ceil(value * 0.2) local speed = 30 -- speed if (getCreatureStorage(cid, 21500) == 1) then doChangeSpeed(cid, speed) if isCreature(attacker) == TRUE and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) then if math.random(2) == 1 then -- 50% -- alguma coisa p absorver todos elementos doCreatureAddHealth(attacker, -absorb) doCreatureAddHealth(cid, absorb) doSendAnimatedText(getThingPos(cid), absorb, COLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_HOLYDAMAGE) end end end return true end
  15. Posta os erros que esta dando, talvez seja "arrumavel".
  16. Apenas doPlayerSendOutfitWindow(cid) . Que ficaria assim: else str = str .. " Please choose your outfit." end
  17. Tenta seguir esse tutorial: https://github.com/otland/forgottenserver/wiki/Compiling
  18. Eu nao entendo nada de Narutibia, HAHAHAHA! Mas vamos la.. Me explica, qualquer vocacao pode ser um Anbu? (Se nao, quais vocacoes podem ser Anbu?) Vai no seu spells.xml (nao sei se tem), e copia qualquer magia e posta nesse topico.
  19. Remove a linha 20, que seria: doPlayerSendOutfitWindow(cid)
  20. Qual TFS voce esta utilizando?
  21. Copia a schema que eu te mandei e bota no SQL e da executar. E seja feliz, ate vir o proximo erro.

Informação Importante

Confirmação de Termo