Ir para conteúdo

allanzinh

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    PokeFans é um servidor feito em cima base disponibilizada pelo @pota. No inicio era um projeto para estudar a TFS 1.2, visto que sempre trabalhei com 0.3.6.
    Fiquei maravilhado com a simplicidade e as possibilidades quase infinitas da base. Comecei a me dedicar mais e eventualmente nos tornamos um servidor sério.
     
    O PokeFans possui diversos sistemas novos que foram implementados em cima da base POTA, muitos mesmos, seria incapaz de nomear todos neste post, então deixo o link do https://trello.com/b/ELrkzeTi/pokefans
     
    O servidor era muito popular por um tempo, atingindo números bem altos para um Poketibia (100 ~ 120 players), mas eventualmente tivemos problemas sérios com lag,
    não sei se por alguém atacando, conflito de código causado pela quantidade de mudanças que fiz, fato é que após muito buscar uma resposta, finalmente consegui resolver o lag, mas não sem antes perder certa de 70% da player base.
    Junto à isso tive problemas pessoas sérios e tudo isso acabou me desmotivando bastante, entretanto, PokeFans pra mim foi uma ótima fase, fiz muitos amigos, tive bons momentos e aprendi ainda mais sobre lua, c++ e até esse HTML esquisito que usamos no OTC. Por isso não podia deixar a base mofando no meu drive, ela merece estar online e proporcionar bons momentos à todos.
     
    E com esta longa carta introdutória, com vocês, PokeFans.
     
    IMAGENS/SISTEMAS/CONTEUDO
     
    DOWNLOAD
    https://mega.nz/file/zVBVgKIZ#mfJZjw93ir3Rrpb05qfnafMMw9dlU3KJL9hLUQCXoV8
    https://www.mediafire.com/file/ejry9qxpe71mkvz/pokefans.rar/file
    SCAN
    https://www.virustotal.com/gui/url/f5da18695fff6d14f92c75e6d211de27c450abc5c12bfe861466c6ee9ed37578/detection
    https://www.virustotal.com/gui/url/d750e2fad1faab64b5f549c854ecddb03a27ff938e03981f0f696aa16eb4a818?nocache=1
    (Deu flag ESTsecurity - Malicious, não faço ideia do que seja, se alguém puder me auxiliar no que seja)
     
    OBSERVAÇÕES
    Não prestarei suporte à base, entretanto, atuo como freelancer de luascript e modulos para OTC, você pode entrar em contato comigo pelo Discord: zayonowatari
    Para abrir o mapa no Remeres você precisa de um SPR/DAT sem transparência, basta salvar sem transparência diretamente do object builder.
    Caso você tenha gostado da base e tenha interesse em fazer uma doação, utilize essa chave pix: f3cb7525-2b8c-47f8-8db6-876c8cd68bde
     
    CRÉDITOS
    @pota - por todo o seu trabalho e humildade em disponibilizar sua base inicialmente, sem ela não estariamos aqui.
    theforgottenserver - sem eles nenhuma base estaria aqui.
    OTLand e Tibiaking - ambas as comunidades me auxiliaram a vida toda com todas as dúvidas que tive, respeito máximo à todos que fazem parte disso.
  2. Curtir
    allanzinh deu reputação a L3K0T em Saiba todas as funções do seu TFS   
    Como diz o titulo? você pode gerar suas funções do seu tfs em um arquivo texto, para fazer isso é só ir na lib 050 e adicionar isso no final, depois é só ligar o seu servidor e assim todas funções do seu server vai aparecer no arquivo txt. "Isso é bom pra resolver problemas de scripts e trabalhar de forma melhor, com a manipulação do mesmo."
     
    function getLuaFunctions() local str = "" for f,k in pairs(_G) do if type(k) == 'function' then str = str..f..',' elseif type(k) == 'table' then for d,o in pairs(k) do if type(o) == 'function' then if f ~= '_G' and d ~= "_G" and f ~= 'package' then str = str..f.."."..d..',' end elseif type(o) == 'table' then for m,n in pairs(o) do if type(n) == 'function' then if d == "_M" and m ~= "_M" and f ~= "_G" and f ~= 'package' then str = str..f.."."..m.."," elseif f ~= '_G' and m ~= "_G" and d ~= "_G" and f ~= 'package' then str = str..f.."."..d..'.'..m..',' end elseif type(n) == 'table' then for x,p in pairs(n) do if type(p) == 'function' then if m == "_M" and d ~= "_M" and f ~= "_G" and f ~= 'package' then str = str..f.."."..d..'.'..x..',' elseif m == "_M" and d == "_M" and f ~= "_G" and f ~= 'package' then str = str..f.."."..x..',' elseif m ~= "_M" and d == "_M" and f ~= "_G" and f ~= 'package' then str = str..f..'.'..m..'.'..x..',' elseif f ~= '_G' and m ~= "_G" and d ~= "_G" and f ~= 'package' then str = str..f.."."..d..'.'..m..'.'..x..',' end end end end end end end end end return string.explode(str,',') end local k = getLuaFunctions() local file__ = io.open('funcoes do seu servidor.txt','w') table.sort(k) for i=1,#k do if k[i] ~= "" then file__:write((i-1)..' - '..k[i]..'\n') end end file__:close() Créditos: Mock
  3. Gostei
    allanzinh deu reputação a MaXwEllDeN em Aulas de Scripting Lua   
    Quer aprender a programar em Lua? Sugiro que você comece olhando esses tutoriais escritos por Urso Mock, Suricato Notorious e Raposa Skyen Hasus.
    Já leu todas as aulas anteriores e acha que você já está apto a criar seus próprios Scripts? Boa! Agora é hora de por suas habilidades em prática. Leia esses tutoriais:
    Outros Tutoriais:
     
     
    Avançado:
  4. Gostei
    allanzinh deu reputação a Tio Rusher em Sistema de guardian, alguém poderia me ajudar com um?   
    local config = { -- item que irá usar, nome do monstro, cowdown, remover? [19846] = {name = "Guardião1", cd = 2 * 60 * 60, remove = true}, [19847] = {name = "Guardião2", cd = 2 * 60 * 60, remove = true}, [19848] = {name = "Guardião3", cd = 2 * 60 * 60, remove = true} local cdStorage = 53799 function onUse(cid, item, frompos, item2, topos) local usedItem = config[item.itemid] if usedItem then if getPlayerLevel(cid) >= 120 then local att = getPlayerStorageValue(cid, cdStorage) if att == -1 or os.time() >= tonumber(att)+usedItem.cd or isGod(cid) then if getChanceCard(item.uid) >= 1 then doCreateNpcWithFocus(usedItem.name, getClosestFreeTile(cid, getCreaturePosition(cid)), cid) setPlayerStorageValue(cid, cdStorage, os.time()) --setPlayerStorageValue(cid, 2152525, 1) removeChanceCard(item.uid) doSendMsg(cid, "Para mais informações sobre, visite: https://pokerusher.com/c/teste") else if usedItem.remove then doRemoveItem(item.uid, 1) end end else stringTime = math.floor(((tonumber(att)+usedItem.cd)-os.time())) stringMinOrSec = "segundos" if stringTime > 60 then stringTime = math.floor(stringTime/60) stringMinOrSec = "minutos" end doPlayerSendCancel(cid, "Você poderá usar novamente em: "..stringTime.." "..stringMinOrSec) end end else doPlayerSendCancel(cid, "Você precisa de level 120 para poder este item.") end return true end  
  5. Gostei
    allanzinh deu reputação a Cat em Tutorial como abrir OTServBR-Global + XAMPP + MyAAC (mysql)   
    Download do Otservbr 12.60!
    Download XAMPP:
    https://sourceforge.net/projects/xampp/files/XAMPP Windows/7.4.3/xampp-windows-x64-7.4.3-0-VC15-installer.exe/download
    Download MyAAC:
    MyAAC: 
     
    2 - Instalação do XAMPP:
     
     
     
    2.1 - Configuração do XAMPP:
     
    2.1.1 - Alteração da senha do MySQL:
    - Abra o painel de controle do XAMPP;
    - Confira se os serviços Apache e MySQL estão rodando, depois clique no botão Shell.
    - No shell que abriu - linha de comando - digite o seguinte comando:
    mysqladmin.exe -u root password sua-nova-senha
    - Senha alterada.
     
    2.1.2 - Alteração da senha do phpMyAdmin:
    - Abra a pasta onde foi instalado o XAMPP (C:\xampp);
    - Acesse a pasta phpMyAdmin;
    - Abra o arquivo config.inc.php em um editor de textos de sua preferência e altere os campos abaixo:
     
     
    - Pronto! Seu MySQL e PHPMyAdmin estão configurados para a nova senha. Agora é só utilizar sempre a mesma quando for instalar uma aplicação que se conecte a um Banco de Dados MySQL.
     
    2.1.3 - Alteração da porta 80 no XAMPP:
    - Por padrão, algum software, outro servidor local, firewall do Windows utilizam a porta 80. Abaixo os passos de como alterar a porta 80 no XAMPP:
    - Abra o painel do XAMPP e clique no botão Config do Apache;
    - Escolha o arquivo chamado httpd.conf. Ele possui todos os parâmetros de funcionamento do Apache;
    - Aperte as teclas Ctrl + F e pesquise pela palavra Listen 80;
    - Adicione mais um número 80 (ou o 90) ao final desse parâmetro ficando: Listen 8080; (ou Listen 8090;)
    - Pesquise outra palavra chave chamada ServerName e adicione o 80 (ou o 90) no localhost:8080; (ou localhost:8090;)
    - Salve e feche o arquivo;
    - Volte ao Dashboard e clique no ícone Config;
    - Depois vá em Service and Port Settings;
    - Adicione o 8080 (ou o 8090) no Main Port;
    - Após estes passos tente iniciar o seu Apache, verifique se ficou com o ícone verde, abra o seu navegador, digite http://localhost:8080 (ou  http://localhost:8090) ou http://127.0.0.1:8080 (ou http://127.0.0.1:8090)  e analise se é possível ter acesso ao Dashboard do seu XAMPP.
     
    2.1.4 - Configuração de domínio no vhosts:
    - Para que as pessoas possam acessar o seu site pelo seu dominio é preciso configurar o arquivo vhost no XAMPP:
    - Abra o arquivo httpd-vhosts.conf (C:\xampp\apache\conf\extra).
    - Edite as seguintes linhas:
     
     
    - Altere para o seu domínio.
    - Exemplos:
     
    2.2 - Configuração de domínio (ou ip) no arquivo hosts do Windows:
    - Abra o arquivo C:\Windows\System32\drivers\etc\hosts e adicione:
    192.168.0.1 seusite.com
          (IPv4)        (domínio)
     
    2.3 - Portas
    - Verifique se as portas 80 (ou 8080, 8090), 7171, 7172 estão abertas para a conexão funcionar corretamente.
    - Para liberar as portas, pesquise pelo modelo do seu modem/roteador. Abaixo um site com guias para vários roteadores para auxiliar na liberação das portas:
    https://portforward.com/router.htm
     
     
    3 - Database
    - Acesse o PHPMyAdmin pelo endereço do seu domínio.
    - Na lateral esquerda clique em +Novo e crie uma database (ex: otservbrglobal)
    - Importe o arquivo schema.sql que está na pasta do OTServBR-Global.
     
     
    4 - Config.lua
    - Entre na pasta do OTServBR-Global;
    - Renomeie o arquivo config.lua.dist para config.lua. Obs: se a extensão estiver oculta, vá em Exibir > Extensões de nomes de arquivos;
    - Configure o IP ou domínio de conexão;
    - Coloque a senha do PHPMyAdmin (sua-nova-senha);
    - Coloque o nome da database criada .
    Exemplo:
    -- Connection Config ip = "ip ou domínio" - MySQL mysqlHost = "127.0.0.1" mysqlUser = "root" mysqlPass = "sua-nova-senha" mysqlDatabase = "otservbrglobal" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1"  
    5 - Site
    - Lembre-se de deixar a pasta htdocs vazia antes de salvar os arquivos e pastas do site.
    - Descompacte os arquivos e pastas do MyAAC diretamente na pasta htdocs do XAMPP. 
    - Deixe todos os arquivos e pastas do MyAAC conforme o exemplo abaixo:

     
    - Edite o arquivo .htaccess ou renomeie para .htaccess.dist.
    - Acesse http://seu-ip-ou-domínio para carregar o MyAAC.
    - Siga as etapas de instalação para instalar o MyAAC.
    - Na escolha da versão, selecione 11.0.
     
     
    6 - Conectando ao Servidor
    - Aviso: antes de abrir o servidor, vá até o diretório do servidor (data/world) e descompacte o world.rar, lembre-se de deixar o otservbr.otbm junto do otservbr-spawn.xml e otservbr-house.xml.
    - Para conectar ao servidor de acordo com a versão indicada, você precisa do cliente abaixo:
     
    - Obs: se você alterou a porta, precisa adicionar no ip do cliente 12.
     
     
    Exemplos:
    - http://127.0.0.1:8080/login.php
    - http://127.0.0.1:8090/login.php
    - Para conectar com o cliente Tibia 12, você precisa do recurso de login.php para o MyAAC:
     
     
     
    7 - Créditos
    Downloads:
    Desenvolvedores TFS, OTServBR: https://github.com/opentibiabr/OTServBR-Global
    slawkens: https://forums.otserv.com.br/index.php?/forums/topic/167474-myaac/
    Tutorial:
    Majesty
     
     
  6. Gostei
    allanzinh deu reputação a bjerg em [DxP] Exclusivo Poketibia OpenSource+Cliente+Site+DB   
    O meu bug n era esse, o meu era q n abria mapa com Transparency, mas consegui arrumar
     
    1 - Baixe o RME Extended By senhor aki: http://www.mediafire.com/download/fyklwfdwcawxepv/Remeres+Map+Editor+By+Senhor.rar
    2 - Depois de extrair o RME Extended, coloque-o na pasta do RME 2.2 e substitua todos arquivos.
    3 - Apague as pastar extensions, etc. ( MENOS A DATA E SOURCE )
    4 - Abra a pasta Source do RME e delete tudo, entao abra as source do Dxp e coloque tudo ( menos o arquivo .Rar ) na pasta Source do RME
    5 - Se pedir algumas DLL, baixe aki: http://www.4shared.com/rar/pPS8rMZyba/DLLS.html#_=_
    6 - Coloque o items.otb e items.xml na pasta do RME/data/854 e coloque pra substituir arquivos
    7 - Se nao tiver o Tibia 8.54 no seu pc baixe no site do RME, entao va no Client Dxp/data/thing, copie o arquivo DAT e o SPR para uma pasta qualquer, entao muda o nome deles para Tibia ( pro arquivo Dat ), e Tibia.spr ( pro arquivo spr ) e coloque-os na pasta do tibia 8.54 e coloque para substituir os arquivos
    8 - Ao abrir o RME va em File/Preferences/Client Version, coloque 8.54, marque Extended e Transparency e onde ta pedindo o arquivo dat e spr vc coloca onde ta sua pasta do tibia 8.54
    Se ajudei da REP+
  7. Gostei
    allanzinh deu reputação a doda4ever em (Resolvido)Aprender a linguagem.   
    Sr, elas já vem embutidas no tfsourcee
    //get* getCreatureHealth(cid) getCreatureMaxHealth(cid) getCreatureMana(cid) getCreatureMaxMana(cid) getCreatureMaster(cid) getCreatureSummons(cid) getCreatureOutfit(cid) getCreaturePosition(cid) getCreatureName(cid) getCreatureSpeed(cid) getCreatureBaseSpeed(cid) getCreatureTarget(cid) getCreatureByName(name) getCreatureSkullType(cid) getCreatureCondition(cid, condition[, subId]) getCreatureNoMove(cid) getMonsterInfo(name) getMonsterHealingSpells(name) getMonsterAttackSpells(name) getMonsterLootList(name) getMonsterTargetList(cid) getMonsterFriendList(cid) getPlayerByNameWildcard(name~) getPlayerLossSkill(cid) getPlayerLossPercent(cid, lossType) getPlayerGUIDByName(name[, multiworld]) getPlayerNameByGUID(guid[, multiworld]) getPlayerFood(cid) getPlayerLevel(cid) getPlayerExperience(cid) getPlayerMagLevel(cid[, ignoreBuffs]) getPlayerSpentMana(cid) getPlayerAccess(cid) getPlayerSkillLevel(cid, skillid) getPlayerSkillTries(cid, skillid) getPlayerTown(cid) getPlayerVocation(cid) getPlayerRequiredMana(cid, magicLevel) getPlayerRequiredSkillTries(cid, skillId, skillLevel) getPlayerItemCount(cid, itemid) getPlayerSoul(cid) getPlayerAccountId(cid) getPlayerAccount(cid) getPlayerIp(cid) getPlayerFreeCap(cid) getPlayerLight(cid) getPlayerSlotItem(cid, slot) getPlayerWeapon(cid[, ignoreAmmo]) getPlayerItemById(cid, deepSearch, itemId[, subType]) getPlayerDepotItems(cid, depotid) getPlayerGuildId(cid) getPlayerGuildName(cid) getPlayerGuildRank(cid) getPlayerGuildNick(cid) getPlayerGuildLevel(cid) getPlayerSex(cid) getPlayerLookDir(cid) getPlayerStorageValue(uid, valueid) getPlayerGUID(cid) getPlayerFlagValue(cid, flag) getPlayerCustomFlagValue(cid, flag) getPlayerPromotionLevel(cid) getPlayerGroupId(cid) getPlayerLearnedInstantSpell(cid, name) getPlayerInstantSpellCount(cid) getPlayerInstantSpellInfo(cid, index) getPlayerSex(cid) getPlayerBlessing(cid, blessing) getPlayerStamina(cid) getPlayerExtraExpRate(cid) getPlayerPartner(cid) getPlayerParty(cid) getPlayerPremiumDays(cid) getPlayerBalance(cid) getPlayerRedSkullTicks(cid) getPlayerRates(cid) getInstantSpellInfo(cid, name) getPlayersByAccountId(accountNumber) getPlayersByIp(ip[, mask = 0xFFFFFFFF]) getPlayersOnline() getPartyMembers(lid) getAccountIdByName(name) getAccountByName(name) getAccountIdByAccount(accName) getAccountByAccountId(accId) getIpByName(name) getItemRWInfo(uid) getItemDescriptionsById(itemid) getItemWeightById(itemid, count[, precise]) getItemDescriptions(uid) getItemWeight(uid[, precise]) getItemAttack(uid) getItemExtraAttack(uid) getItemDefense(uid) getItemExtraDefense(uid) getItemArmor(uid) getItemAttackSpeed(uid) getItemHitChance(uid) getItemShootRange(uid) getItemIdByName(name[, reportError]) getItemLevelDoor(itemid) getItemWeaponType(uid) getFluidSourceType(type) getContainerSize(uid) getContainerCap(uid) getContainerCapById(itemid) getContainerItem(uid, slot) getDepotId(uid) getTileItemById(pos, itemId[, subType]) getTileItemByType(pos, type) getTileThingByPos(pos) getTileInfo(pos) getTopCreature(pos) getClosestFreeTile(cid, targetpos[, extended[, ignoreHouse]]) getThingFromPos(pos) getThing(uid) getThingPos(uid) getHouseOwner(houseid) getHouseName(houseid) getHouseEntry(houseid) getHouseRent(houseid) getHousePrice(houseid) getHouseTown(houseid) getHouseAccessList(houseid, listid) getHouseByPlayerGUID(playerGUID) getHouseFromPos(pos) getHouseTilesSize(houseid) getTownId(townName) getTownName(townId) getTownTemplePosition(townId) getTownHouses(townId) getWorldType() getWorldTime() getWorldLight() getWorldCreatures(type) //0 players, 1 monsters, 2 npcs, 3 all getWorldUpTime() getHighscoreString(skillId) getVocationInfo(id) getGuildId(guildName) getGuildMotd(guildId) getSpectators(centerPos, rangex, rangey, multifloor) getSearchString(fromPosition, toPosition[, fromIsCreature[, toIsCreature]]) getWaypointPosition(name) getGameState() getNotationsCount(accId) getBanData(value) getBanList(type[, value]) getBanReason(id) getBanAction(id[, ipBanishment]) getGlobalStorageValue(valueid) getExperienceStage(level) getConfigFile() getConfigValue(key) getLogsDir() getDataDir() //set* setCreatureMaxHealth(cid, health) setCreatureMaxMana(cid, mana) setPlayerStorageValue(uid, valueid, newvalue) setPlayerGroupId(cid, newGroupId) setPlayerPromotionLevel(cid, level) setPlayerStamina(cid, minutes) setPlayerExtraExpRate(cid, value) setPlayerPartner(cid, guid) setHouseOwner(houseid, ownerGUID) setHouseAccessList(houseid, listid, listtext) setItemName(uid) setItemPluralName(uid) setItemArticle(uid) setItemAttack(uid, attack) setItemExtraAttack(uid, extraattack) setItemDefense(uid, defense) setItemArmor(uid, armor) setItemExtraDefense(uid, extradefense) setItemAttackSpeed(uid, attackspeed) setItemHitChance(uid, hitChance) setItemShootRange(uid, shootRange) setCombatArea(combat, area) setCombatCondition(combat, condition) setCombatParam(combat, key, value) setConditionParam(condition, key, value) setCombatCallBack(combat, key, function_name) setCombatFormula(combat, type, mina, minb, maxa, maxb) setConditionFormula(combat, mina, minb, maxa, maxb) setGlobalStorageValue(valueid, newvalue) setWorldType(type) //do* doCreatureAddHealth(cid, health[, force]) doCreatureAddMana(cid, mana) doCreatureSetDropLoot(cid, doDrop) doCreatureSetSkullType(cid, skull) doCreatureSetLookDir(cid, dir) doCreatureChangeOutfit(cid, outfit) doCreatureSay(cid, text, type[, pos]) doCreatureSetNoMove(cid, cannotMove) doSetCreatureLight(cid, lightLevel, lightColor, time) doSetCreatureOutfit(cid, outfit, time) doRemoveCreature(cid) doMoveCreature(cid, direction) doConvinceCreature(cid, target) doChallengeCreature(cid, target) doChangeSpeed(cid, delta) doSummonMonster(name, pos) doCreateMonster(name, pos) doMonsterChangeTarget(cid) doMonsterSetTarget(cid, target) doCreateNpc(name, pos) doSetMonsterOutfit(cid, name, time) doPlayerBroadcastMessage(cid, message[, type]) doPlayerSetSex(cid, newSex) doPlayerSetTown(cid, townid) doPlayerSetVocation(cid,voc) doPlayerRemoveItem(cid, itemid, count[, subtype]) doPlayerAddExp(cid, exp) doPlayerSetGuildId(cid, id) doPlayerSetGuildRank(cid, rank) doPlayerSetGuildNick(cid, nick) doPlayerAddOutfit(cid,looktype, addons) doPlayerRemoveOutfit(cid,looktype, addons) doPlayerSetRedSkullTicks(cid, amount) doPlayerSetLossPercent(cid, lossType, newPercent) doPlayerSetLossSkill(cid, doLose) doPlayerAddSkillTry(cid, skillid, n) doPlayerAddSpentMana(cid, amount) doPlayerAddSoul(cid, soul) doPlayerAddItem(uid, itemid[, count/subtype[, canDropOnMap]]) doPlayerAddItemEx(cid, uid[, canDropOnMap]) doPlayerSendTextMessage(cid, MessageClasses, message) doPlayerSendChannelMessage(cid, author, message, SpeakClasses, channel) doPlayerSendToChannel(cid, targetId, SpeakClasses, message, channel[, time]) doPlayerAddMoney(cid, money) doPlayerRemoveMoney(cid, money) doPlayerWithdrawMoney(cid, money) doPlayerDepositMoney(cid, money) doPlayerTransferMoneyTo(cid, target, money) doPlayerPopupFYI(cid, message) doPlayerSendTutorial(cid, id) doPlayerAddMapMark(cid, pos, type[, description]) doPlayerAddPremiumDays(cid, days) doPlayerAddBlessing(cid, blessing) doPlayerAddStamina(cid, minutes) doPlayerResetIdleTime(cid) doPlayerLearnInstantSpell(cid, name) doPlayerUnlearnInstantSpell(cid, name) doPlayerFeed(cid, food) doPlayerSendCancel(cid, text) doPlayerSendDefaultCancel(cid, ReturnValue) doPlayerSetExperienceRate(cid, value) doPlayerSetMagicRate(cid, value) doPlayerSetSkillRate(cid, skill, value) doPlayerJoinParty(cid, lid) doPlayerSendOutfitWindow(cid) doCreateItem(itemid, type/count, pos) doCreateItemEx(itemid[, count/subtype]) doAddContainerItemEx(uid, virtuid) doAddContainerItem(uid, itemid[, count/subtype]) doChangeTypeItem(uid, newtype) doDecayItem(uid) doRemoveItem(uid[, n]) doTransformItem(uid, toitemid[, count/subtype]) doSetItemActionId(uid, actionid) doSetItemText(uid, text[, writer[, date]]) doSetItemSpecialDescription(uid, desc) doSetItemOutfit(cid, item, time) doTileAddItemEx(pos, uid) doTileQueryAdd(uid, pos[, flags]) doAddCondition(cid, condition) doRemoveCondition(cid, type[, subId]) doRemoveConditions(cid[, onlyPersistent]) doAreaCombatHealth(cid, type, pos, area, min, max, effect) doTargetCombatHealth(cid, target, type, min, max, effect) doAreaCombatMana(cid, pos, area, min, max, effect) doTargetCombatMana(cid, target, min, max, effect) doAreaCombatCondition(cid, pos, area, condition, effect) doTargetCombatCondition(cid, target, condition, effect) doAreaCombatDispel(cid, pos, area, type, effect) doTargetCombatDispel(cid, target, type, effect) doCombat(cid, combat, param) doTeleportThing(cid, newpos[, pushmove]) doCreateTeleport(itemid, topos, createpos) doSendMagicEffect(pos, type[, creature]) doSendDistanceShoot(frompos, topos, type[, creature]) doSendAnimatedText(pos, text, color[, creature]) doShowTextDialog(cid, itemid, text) doRelocate(pos, posTo) doBroadcastMessage(message, type) doWaypointAddTemporial(name, pos) doSetGameState(id) doAddIpBanishment(ip[, length[, comment[, admin]]]) doAddNamelock(name[, reason[, action[, comment[, admin]]]]) doAddBanishment(accId[, length[, reason[, action[, comment[, admin]]]]]) doAddDeletion(accId[, reason[, action[, comment[, admin]]]]]) doAddNotation(accId[, reason[, action[, comment[, admin]]]]]) doRemoveIpBanishment(ip[, mask]) doRemoveNamelock(name) doRemoveBanisment(accId) doRemoveDeletion(accId) doRemoveNotations(accId) doSaveServer() doReloadInfo() doCleanHouse(houseId) doCleanMap() doRefreshMap() //is* isCreature(cid) isMonster(uid) isNpc(uid) isPlayer(cid) isPlayerPzLocked(cid) isItemStackable(itemid) isItemRune(itemid) isItemMovable(itemid) isItemDoor(itemid) isItemContainer(itemid) isItemFluidContainer(itemid) isContainer(uid) isCorpse(uid) isMovable(uid) isSightClear(fromPos, toPos, floorCheck) isIpBanished(ip[, mask]) isPlayerNamelocked(name) isAccountBanished(accId) isAccountDeleted(accId) isInArray({array}, value) //others registerCreatureEvent(uid, eventName) createCombatArea({area}[, {exArea}]) createConditionObject(type[, ticks[, buff[, subId]]]) addDamageCondition(condition, rounds, time, value) addOutfitCondition(condition, lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet) createCombatObject() numberToVariant(number) stringToVariant(string) positionToVariant(pos) targetPositionToVariant(pos) variantToNumber(var) variantToString(var) variantToPosition(var) canPlayerWearOutfit(cid, looktype, addons) executeRaid(name) addEvent(callback, delay, ...) stopEvent(eventid) hasProperty(uid) //db table db.executeQuery(query) db.storeQuery(query) db.escapeString(str) db.escapeBlob(s, length) db.stringComparisonOperator() //result table result.getDataInt(resId, s) result.getDataLong(resId, s) result.getDataString(resId, s) result.getDataStream(resId, s, length) result.next(resId) result.free(resId) //bit table #bit.cast bit.bnot(n) bit.band(type, n) bit.bor(type, n) bit.bxor(type, n) bit.lshift(type, n) bit.rshift(type, n) #bit.arshift #bit.ucast bit.ubnot(n) bit.uband(type, n) bit.ubor(type, n) bit.ubxor(type, n) bit.ulshift(type, n) bit.urshift(type, n) #bit.uarshift //compats table.getPos = table.find doSetCreatureDropLoot = doCreatureSetDropLoot doPlayerSay = doCreatureSay doPlayerAddMana = doCreatureAddMana playerLearnInstantSpell = doPlayerLearnInstantSpell doPlayerRemOutfit = doPlayerRemoveOutfit pay = doPlayerRemoveMoney broadcastMessage = doBroadcastMessage getPlayerName = getCreatureName getPlayerPosition = getCreaturePosition getCreaturePos = getCreaturePosition creatureGetPosition = getCreaturePosition getPlayerMana = getCreatureMana getPlayerMaxMana = getCreatureMaxMana hasCondition = getCreatureCondition isMoveable = isMovable isItemMoveable = isItemMovable saveData = saveServer savePlayers = saveServer getPlayerSkill = getPlayerSkillLevel getPlayerSkullType = getCreatureSkullType getAccountNumberByName = getAccountIdByName getIPByName = getIpByName getPlayersByIP = getPlayersByIp getThingfromPos = getThingFromPos getPlayersByAccountNumber = getPlayersByAccountId getIPByPlayerName = getIpByName getPlayersByIPNumber = getPlayersByIp getAccountNumberByPlayerName = getAccountIdByName convertIntToIP = doConvertIntegerToIp convertIPToInt = doConvertIpToInteger queryTileAddThing = doTileQueryAdd getTileHouseInfo = getHouseFromPos executeRaid = doExecuteRaid saveServer = doSaveServer cleanHouse = doCleanHouse cleanMap = doCleanMap shutdown = doShutdown mayNotMove = doCreatureSetNoMove doPlayerSetNoMove = doCreatureSetNoMove getPlayerNoMove = getCreatureNoMove getConfigInfo = getConfigValue //lua-made functions doPlayerGiveItem(cid, itemid, amount, subType) doPlayerTakeItem(cid, itemid, amount) doPlayerBuyItem(cid, itemid, count, cost, charges) doPlayerBuyItemContainer(cid, containerid, itemid, count, cost, charges) doPlayerSellItem(cid, itemid, count, cost) isInRange(pos, fromPos, toPos) isPremium(cid) getMonthDayEnding(day) getMonthString(m) getArticle(str) isNumber(str) getDistanceBetween(firstPosition, secondPosition) doPlayerAddAddons(cid, addon) isSorcerer(cid) isDruid(cid) isPaladin(cid) isKnight(cid) isRookie(cid) getDirectionTo(pos1, pos2) getPlayerLookPos(cid) getPosByDir(fromPosition, direction, size) getPlayerMoney(cid) doPlayerWithdrawAllMoney(cid) doPlayerDepositAllMoney(cid) doPlayerTransferAllMoneyTo(cid, target) playerExists(name) getTibiaTime() doWriteLogFile(file, text) isInArea(pos, fromPos, toPos) getExperienceForLevel(lv) doMutePlayer(cid, time) getPlayerVocationName(cid) getPromotedVocation(vid) doPlayerRemovePremiumDays(cid, days) getPlayerMasterPos(cid) getItemNameById(itemid) getItemPluralNameById(itemid) getItemArticleById(itemid) getItemName(uid) getItemPluralName(uid) getItemArticle(uid) getItemText(uid) getItemWriter(uid) getItemDate(uid) getTilePzInfo(pos) getTileZoneInfo(pos) debugPrint(text) doShutdown() doSummonCreature(name, pos) getOnlinePlayers() getPlayerByName(name) isPlayerGhost(cid) getPlayerFrags(cid) getPartyLeader(cid) isInParty(cid) isPrivateChannel(channelId) doConvertIntegerToIp(int, mask) doConvertIpToInteger(int, mask) getBooleanFromString(str) doCopyItem(item, attributes) exhaustion.check(cid, storage) exhaustion.get(cid, storage) exhaustion.set(cid, storage, time) exhaustion.make(cid, storage, time) table.find(table, value) table.isStrIn(txt, str) table.countElements(table, item) table.getCombinations(table, num) string.split(str) string.trim(str) string.explode(str, sep)
  8. Gostei
    allanzinh deu reputação a thalia em [LUA] Lista de funções   
    [LUA] Lista De Funções



    Esta lista contêm todas ou quase todas as funções LUA do The Forgotten Server



    1. Funções #get


    getCreatureHealth(cid) getCreatureMaxHealth(cid) getCreatureMana(cid) getCreatureMaxMana(cid) getCreatureMaster(cid) getCreatureSummons(cid) getCreatureOutfit(cid) getCreaturePosition(cid) getCreatureName(cid) getCreatureSpeed(cid) getCreatureBaseSpeed(cid) getCreatureTarget(cid) getCreatureByName(name) getCreatureSkullType(cid) getCreatureCondition(cid, condition[, subId]) getCreatureNoMove(cid) getMonsterInfo(name) getMonsterHealingSpells(name) getMonsterAttackSpells(name) getMonsterLootList(name) getMonsterTargetList(cid) getMonsterFriendList(cid) getPlayerByNameWildcard(name~) getPlayerLossSkill(cid) getPlayerLossPercent(cid, lossType) getPlayerGUIDByName(name[, multiworld]) getPlayerNameByGUID(guid[, multiworld]) getPlayerFood(cid) getPlayerLevel(cid) getPlayerExperience(cid) getPlayerMagLevel(cid[, ignoreBuffs]) getPlayerSpentMana(cid) getPlayerAccess(cid) getPlayerSkillLevel(cid, skillid) getPlayerSkillTries(cid, skillid) getPlayerTown(cid) getPlayerVocation(cid) getPlayerRequiredMana(cid, magicLevel) getPlayerRequiredSkillTries(cid, skillId, skillLevel) getPlayerItemCount(cid, itemid) getPlayerSoul(cid) getPlayerAccountId(cid) getPlayerAccount(cid) getPlayerIp(cid) getPlayerFreeCap(cid) getPlayerLight(cid) getPlayerSlotItem(cid, slot) getPlayerWeapon(cid[, ignoreAmmo]) getPlayerItemById(cid, deepSearch, itemId[, subType]) getPlayerDepotItems(cid, depotid) getPlayerGuildId(cid) getPlayerGuildName(cid) getPlayerGuildRank(cid) getPlayerGuildNick(cid) getPlayerGuildLevel(cid) getPlayerSex(cid) getPlayerLookDir(cid) getPlayerStorageValue(uid, valueid) getPlayerGUID(cid) getPlayerFlagValue(cid, flag) getPlayerCustomFlagValue(cid, flag) getPlayerPromotionLevel(cid) getPlayerGroupId(cid) getPlayerLearnedInstantSpell(cid, name) getPlayerInstantSpellCount(cid) getPlayerInstantSpellInfo(cid, index) getPlayerSex(cid) getPlayerBlessing(cid, blessing) getPlayerStamina(cid) getPlayerExtraExpRate(cid) getPlayerPartner(cid) getPlayerParty(cid) getPlayerPremiumDays(cid) getPlayerBalance(cid) getPlayerRedSkullTicks(cid) getPlayerRates(cid) getInstantSpellInfo(cid, name) getPlayersByAccountId(accountNumber) getPlayersByIp(ip[, mask = 0xFFFFFFFF]) getPlayersOnline() getPartyMembers(lid) getAccountIdByName(name) getAccountByName(name) getAccountIdByAccount(accName) getAccountByAccountId(accId) getIpByName(name) getItemRWInfo(uid) getItemDescriptionsById(itemid) getItemWeightById(itemid, count[, precise]) getItemDescriptions(uid) getItemWeight(uid[, precise]) getItemAttack(uid) getItemExtraAttack(uid) getItemDefense(uid) getItemExtraDefense(uid) getItemArmor(uid) getItemAttackSpeed(uid) getItemHitChance(uid) getItemShootRange(uid) getItemIdByName(name[, reportError]) getItemLevelDoor(itemid) getItemWeaponType(uid) getFluidSourceType(type) getContainerSize(uid) getContainerCap(uid) getContainerCapById(itemid) getContainerItem(uid, slot) getDepotId(uid) getTileItemById(pos, itemId[, subType]) getTileItemByType(pos, type) getTileThingByPos(pos) getTileInfo(pos) getTopCreature(pos) getClosestFreeTile(cid, targetpos[, extended[, ignoreHouse]]) getThingFromPos(pos) getThing(uid) getThingPos(uid) getHouseOwner(houseid) getHouseName(houseid) getHouseEntry(houseid) getHouseRent(houseid) getHousePrice(houseid) getHouseTown(houseid) getHouseAccessList(houseid, listid) getHouseByPlayerGUID(playerGUID) getHouseFromPos(pos) getHouseTilesSize(houseid) getTownId(townName) getTownName(townId) getTownTemplePosition(townId) getTownHouses(townId) getWorldType() getWorldTime() getWorldLight() getWorldCreatures(type) //0 players, 1 monsters, 2 npcs, 3 all getWorldUpTime() getHighscoreString(skillId) getVocationInfo(id) getGuildId(guildName) getGuildMotd(guildId) getSpectators(centerPos, rangex, rangey, multifloor) getSearchString(fromPosition, toPosition[, fromIsCreature[, toIsCreature]]) getWaypointPosition(name) getGameState() getNotationsCount(accId) getBanData(value) getBanList(type[, value]) getBanReason(id) getBanAction(id[, ipBanishment]) getGlobalStorageValue(valueid) getExperienceStage(level) getConfigFile() getConfigValue(key) getLogsDir() getDataDir() 2. Funções #set setCreatureMaxHealth(cid, health) setCreatureMaxMana(cid, mana) setPlayerStorageValue(uid, valueid, newvalue) setPlayerGroupId(cid, newGroupId) setPlayerPromotionLevel(cid, level) setPlayerStamina(cid, minutes) setPlayerExtraExpRate(cid, value) setPlayerPartner(cid, guid) setHouseOwner(houseid, ownerGUID) setHouseAccessList(houseid, listid, listtext) setItemName(uid) setItemPluralName(uid) setItemArticle(uid) setItemAttack(uid, attack) setItemExtraAttack(uid, extraattack) setItemDefense(uid, defense) setItemArmor(uid, armor) setItemExtraDefense(uid, extradefense) setItemAttackSpeed(uid, attackspeed) setItemHitChance(uid, hitChance) setItemShootRange(uid, shootRange) setCombatArea(combat, area) setCombatCondition(combat, condition) setCombatParam(combat, key, value) setConditionParam(condition, key, value) setCombatCallBack(combat, key, function_name) setCombatFormula(combat, type, mina, minb, maxa, maxb) setConditionFormula(combat, mina, minb, maxa, maxb) setGlobalStorageValue(valueid, newvalue) setWorldType(type) 3. Funções #do doCreatureAddHealth(cid, health[, force]) doCreatureAddMana(cid, mana) doCreatureSetDropLoot(cid, doDrop) doCreatureSetSkullType(cid, skull) doCreatureSetLookDir(cid, dir) doCreatureChangeOutfit(cid, outfit) doCreatureSay(cid, text, type[, pos]) doCreatureSetNoMove(cid, cannotMove) doSetCreatureLight(cid, lightLevel, lightColor, time) doSetCreatureOutfit(cid, outfit, time) doRemoveCreature(cid) doMoveCreature(cid, direction) doConvinceCreature(cid, target) doChallengeCreature(cid, target) doChangeSpeed(cid, delta) doSummonMonster(name, pos) doCreateMonster(name, pos) doMonsterChangeTarget(cid) doMonsterSetTarget(cid, target) doCreateNpc(name, pos) doSetMonsterOutfit(cid, name, time) doPlayerBroadcastMessage(cid, message[, type]) doPlayerSetSex(cid, newSex) doPlayerSetTown(cid, townid) doPlayerSetVocation(cid,voc) doPlayerRemoveItem(cid, itemid, count[, subtype]) doPlayerAddExp(cid, exp) doPlayerSetGuildId(cid, id) doPlayerSetGuildRank(cid, rank) doPlayerSetGuildNick(cid, nick) doPlayerAddOutfit(cid,looktype, addons) doPlayerRemoveOutfit(cid,looktype, addons) doPlayerSetRedSkullTicks(cid, amount) doPlayerSetLossPercent(cid, lossType, newPercent) doPlayerSetLossSkill(cid, doLose) doPlayerAddSkillTry(cid, skillid, n) doPlayerAddSpentMana(cid, amount) doPlayerAddSoul(cid, soul) doPlayerAddItem(uid, itemid[, count/subtype[, canDropOnMap]]) doPlayerAddItemEx(cid, uid[, canDropOnMap]) doPlayerSendTextMessage(cid, MessageClasses, message) doPlayerSendChannelMessage(cid, author, message, SpeakClasses, channel) doPlayerSendToChannel(cid, targetId, SpeakClasses, message, channel[, time]) doPlayerAddMoney(cid, money) doPlayerRemoveMoney(cid, money) doPlayerWithdrawMoney(cid, money) doPlayerDepositMoney(cid, money) doPlayerTransferMoneyTo(cid, target, money) doPlayerPopupFYI(cid, message) doPlayerSendTutorial(cid, id) doPlayerAddMapMark(cid, pos, type[, description]) doPlayerAddPremiumDays(cid, days) doPlayerAddBlessing(cid, blessing) doPlayerAddStamina(cid, minutes) doPlayerResetIdleTime(cid) doPlayerLearnInstantSpell(cid, name) doPlayerUnlearnInstantSpell(cid, name) doPlayerFeed(cid, food) doPlayerSendCancel(cid, text) doPlayerSendDefaultCancel(cid, ReturnValue) doPlayerSetExperienceRate(cid, value) doPlayerSetMagicRate(cid, value) doPlayerSetSkillRate(cid, skill, value) doPlayerJoinParty(cid, lid) doPlayerSendOutfitWindow(cid) doCreateItem(itemid, type/count, pos) doCreateItemEx(itemid[, count/subtype]) doAddContainerItemEx(uid, virtuid) doAddContainerItem(uid, itemid[, count/subtype]) doChangeTypeItem(uid, newtype) doDecayItem(uid) doRemoveItem(uid[, n]) doTransformItem(uid, toitemid[, count/subtype]) doSetItemActionId(uid, actionid) doSetItemText(uid, text[, writer[, date]]) doSetItemSpecialDescription(uid, desc) doSetItemOutfit(cid, item, time) doTileAddItemEx(pos, uid) doTileQueryAdd(uid, pos[, flags]) doAddCondition(cid, condition) doRemoveCondition(cid, type[, subId]) doRemoveConditions(cid[, onlyPersistent]) doAreaCombatHealth(cid, type, pos, area, min, max, effect) doTargetCombatHealth(cid, target, type, min, max, effect) doAreaCombatMana(cid, pos, area, min, max, effect) doTargetCombatMana(cid, target, min, max, effect) doAreaCombatCondition(cid, pos, area, condition, effect) doTargetCombatCondition(cid, target, condition, effect) doAreaCombatDispel(cid, pos, area, type, effect) doTargetCombatDispel(cid, target, type, effect) doCombat(cid, combat, param) doTeleportThing(cid, newpos[, pushmove]) doCreateTeleport(itemid, topos, createpos) doSendMagicEffect(pos, type[, creature]) doSendDistanceShoot(frompos, topos, type[, creature]) doSendAnimatedText(pos, text, color[, creature]) doShowTextDialog(cid, itemid, text) doRelocate(pos, posTo) doBroadcastMessage(message, type) doWaypointAddTemporial(name, pos) doSetGameState(id) doAddIpBanishment(ip[, length[, comment[, admin]]]) doAddNamelock(name[, reason[, action[, comment[, admin]]]]) doAddBanishment(accId[, length[, reason[, action[, comment[, admin]]]]]) doAddDeletion(accId[, reason[, action[, comment[, admin]]]]]) doAddNotation(accId[, reason[, action[, comment[, admin]]]]]) doRemoveIpBanishment(ip[, mask]) doRemoveNamelock(name) doRemoveBanisment(accId) doRemoveDeletion(accId) doRemoveNotations(accId) doSaveServer() doReloadInfo() doCleanHouse(houseId) doCleanMap() doRefreshMap() 4. Funções #is isCreature(cid) isMonster(uid) isNpc(uid) isPlayer(cid) isPlayerPzLocked(cid) isItemStackable(itemid) isItemRune(itemid) isItemMovable(itemid) isItemDoor(itemid) isItemContainer(itemid) isItemFluidContainer(itemid) isContainer(uid) isCorpse(uid) isMovable(uid) isSightClear(fromPos, toPos, floorCheck) isIpBanished(ip[, mask]) isPlayerNamelocked(name) isAccountBanished(accId) isAccountDeleted(accId) isInArray({array}, value) 5. Outras funções registerCreatureEvent(uid, eventName) createCombatArea({area}[, {exArea}]) createConditionObject(type[, ticks[, buff[, subId]]]) addDamageCondition(condition, rounds, time, value) addOutfitCondition(condition, lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet) createCombatObject() numberToVariant(number) stringToVariant(string) positionToVariant(pos) targetPositionToVariant(pos) variantToNumber(var) variantToString(var) variantToPosition(var) canPlayerWearOutfit(cid, looktype, addons) executeRaid(name) addEvent(callback, delay, ...) stopEvent(eventid) hasProperty(uid) 6. Funções #db table db.executeQuery(query) db.storeQuery(query) db.escapeString(str) db.escapeBlob(s, length) db.stringComparisonOperator() 7. Funções #result table result.getDataInt(resId, s) result.getDataLong(resId, s) result.getDataString(resId, s) result.getDataStream(resId, s, length) result.next(resId) result.free(resId) 8. Funções #bit table #bit.cast bit.bnot(n) bit.band(type, n) bit.bor(type, n) bit.bxor(type, n) bit.lshift(type, n) bit.rshift(type, n) #bit.arshift #bit.ucast bit.ubnot(n) bit.uband(type, n) bit.ubor(type, n) bit.ubxor(type, n) bit.ulshift(type, n) bit.urshift(type, n) #bit.uarshift 9. Funções iguais table.getPos = table.find doSetCreatureDropLoot = doCreatureSetDropLoot doPlayerSay = doCreatureSay doPlayerAddMana = doCreatureAddMana playerLearnInstantSpell = doPlayerLearnInstantSpell doPlayerRemOutfit = doPlayerRemoveOutfit pay = doPlayerRemoveMoney broadcastMessage = doBroadcastMessage getPlayerName = getCreatureName getPlayerPosition = getCreaturePosition getCreaturePos = getCreaturePosition creatureGetPosition = getCreaturePosition getPlayerMana = getCreatureMana getPlayerMaxMana = getCreatureMaxMana hasCondition = getCreatureCondition isMoveable = isMovable isItemMoveable = isItemMovable saveData = saveServer savePlayers = saveServer getPlayerSkill = getPlayerSkillLevel getPlayerSkullType = getCreatureSkullType getAccountNumberByName = getAccountIdByName getIPByName = getIpByName getPlayersByIP = getPlayersByIp getThingfromPos = getThingFromPos getPlayersByAccountNumber = getPlayersByAccountId getIPByPlayerName = getIpByName getPlayersByIPNumber = getPlayersByIp getAccountNumberByPlayerName = getAccountIdByName convertIntToIP = doConvertIntegerToIp convertIPToInt = doConvertIpToInteger queryTileAddThing = doTileQueryAdd getTileHouseInfo = getHouseFromPos executeRaid = doExecuteRaid saveServer = doSaveServer cleanHouse = doCleanHouse cleanMap = doCleanMap shutdown = doShutdown mayNotMove = doCreatureSetNoMove doPlayerSetNoMove = doCreatureSetNoMove getPlayerNoMove = getCreatureNoMove getConfigInfo = getConfigValue 10. Funções #lua-made doPlayerGiveItem(cid, itemid, amount, subType) doPlayerTakeItem(cid, itemid, amount) doPlayerBuyItem(cid, itemid, count, cost, charges) doPlayerBuyItemContainer(cid, containerid, itemid, count, cost, charges) doPlayerSellItem(cid, itemid, count, cost) isInRange(pos, fromPos, toPos) isPremium(cid) getMonthDayEnding(day) getMonthString(m) getArticle(str) isNumber(str) getDistanceBetween(firstPosition, secondPosition) doPlayerAddAddons(cid, addon) isSorcerer(cid) isDruid(cid) isPaladin(cid) isKnight(cid) isRookie(cid) getDirectionTo(pos1, pos2) getPlayerLookPos(cid) getPosByDir(fromPosition, direction, size) getPlayerMoney(cid) doPlayerWithdrawAllMoney(cid) doPlayerDepositAllMoney(cid) doPlayerTransferAllMoneyTo(cid, target) playerExists(name) getTibiaTime() doWriteLogFile(file, text) isInArea(pos, fromPos, toPos) getExperienceForLevel(lv) doMutePlayer(cid, time) getPlayerVocationName(cid) getPromotedVocation(vid) doPlayerRemovePremiumDays(cid, days) getPlayerMasterPos(cid) getItemNameById(itemid) getItemPluralNameById(itemid) getItemArticleById(itemid) getItemName(uid) getItemPluralName(uid) getItemArticle(uid) getItemText(uid) getItemWriter(uid) getItemDate(uid) getTilePzInfo(pos) getTileZoneInfo(pos) debugPrint(text) doShutdown() doSummonCreature(name, pos) getOnlinePlayers() getPlayerByName(name) isPlayerGhost(cid) getPlayerFrags(cid) getPartyLeader(cid) isInParty(cid) isPrivateChannel(channelId) doConvertIntegerToIp(int, mask) doConvertIpToInteger(int, mask) getBooleanFromString(str) doCopyItem(item, attributes) exhaustion.check(cid, storage) exhaustion.get(cid, storage) exhaustion.set(cid, storage, time) exhaustion.make(cid, storage, time) table.find(table, value) table.isStrIn(txt, str) table.countElements(table, item) table.getCombinations(table, num) string.split(str) string.trim(str) string.explode(str, sep)


    OBS: 90% Créditos ao Sukx e 10% a mim por trazer ao TibiaKing e formatar o texto.
  9. Curtir
    allanzinh recebeu reputação de Hollsters em (Resolvido)Ajuda, Como aumentar velocidade dos poke?   
    Va em data/lib/configuration e procura uma tag parecida com esa 
     
     ["Bulbasaur"] = {offense = 0.7, defense = 6, specialattack = 5, vitality = 3.5, agility = 190, exp = 90, level = 20, wildLvl = 30, type = "grass", type2 = "poison"},
      Aonde está Agility é a velocidade do pokemon no caso do pokemon Bulbasaur está 190 .   Se ajudei Rep ++
  10. Gostei
    allanzinh deu reputação a Danihcv em (Resolvido)Tile que remove storage do player   
    Vá no seu editor de mapa e coloque o action id 256900 no tile que vc qr que remova a storage.
    Agora adicione essa tag ao arquivo movements.xml (data\movements):
    <movevent type="StepIn" actionid="256900" event="script" value="rStorage.lua"/> Agora crie um arquivo chamado rStorage.lua dentro da pasta data\movements\scripts e coloque isso dentro:
    function onStepIn(cid) if isPlayer(cid) then setPlayerStorageValue(cid, 6598799, 0) end return true end
  11. Gostei
    allanzinh deu reputação a zipter98 em (Resolvido)Adicionar mais horarios nesse evento   
    Ops, falta de atenção minha, hehe. Já editei meu comentário anterior com a correção. Só trocar sua lib pela nova.
  12. Gostei
    allanzinh deu reputação a zipter98 em (Resolvido)Adicionar mais horarios nesse evento   
    Muda a lib do sistema pra essa:
    torneio = {     awardTournament = 2160,---- Premio     awardAmount = 10,---- quantia do Premio     playerTemple = {x = 1096, y = 1009, z = 7}, ---- posiçao do Templo     tournamentFight = {x = 909, y = 978, z = 7}, ----- Area (Mapa) do torneio     area = {fromx = 899, fromy = 968, fromz = 7, tox = 919, toy = 989, toz= 7},---- fromx = 899, fromy = 968, fromz = 7 : posiçao superior a esquerda do Mapa do torneio /// tox = 919, toy = 989, toz= 7 : Posiçao inferior direito do Mapa do Torneio     waitPlace = {x = 992, y = 998, z = 7}, ---- Sala de Espera (Coloque No-logout na area)     waitArea = {fromx = 987, fromy = 993, fromz = 7, tox = 997, toy = 1003, toz= 7}, ---- fromx = 899, fromy = 968, fromz = 7 : posiçao superior a esquerda do Mapa Sala de espera /// tox = 919, toy = 989, toz= 7 : Posiçao inferior direito do Mapa sala de espera     horarios = {{"11:30:00", "11:35:00"}, {"horario_que_começa_inscrições", "horário_que_começa_batalha"}, {"horario_que_começa_inscrições", "horário_que_começa_batalha"}},     price = 10000, ------ Custo para se inscrever no torneio }   function getPlayersInArea(area)     local players = {}     for x = area.fromx,area.tox do         for y = area.fromy,area.toy do             for z = area.fromz,area.toz do                 local m = getTopCreature({x=x, y=y, z=z}).uid                 if m ~= 0 and isPlayer(m) then                     table.insert(players, m)                 end             end         end     end     return players end Muda a tag do globalevent pra essa: <globalevent name="TournamentStart" time="11:35" event="script" value="Torneio.lua"/> <globalevent name="TournamentStart2" time="horário_que_começa_batalha" event="script" value="Torneio.lua"/> <globalevent name="TournamentStart3" time="horário_que_começa_batalha" event="script" value="Torneio.lua"/> E assim vai.
    Muda o script do NPC pra esse: 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     if msgcontains(msg, 'torneio') or msgcontains(msg, 'enter') then         selfSay('Você quer participar do torneio por ['..torneio.price..'] dollars? [Sim/Yes]', cid)         talkState[talkUser] = 2     elseif talkState[talkUser] == 2 then         if msgcontains(msg, 'yes') or msgcontains(msg, 'sim') then             for i = 1, #torneio.horarios do                     if os.date("%X") > torneio.horarios[i][1] and os.date("%X") < torneio.horarios[i][2] then                         if doPlayerRemoveMoney(cid, torneio.price) then                         doTeleportThing(cid, torneio.waitPlace)                         setPlayerStorageValue(cid,130130,1)                         doPlayerSendTextMessage(cid, 21, "Bem-vindo, esta é a sala de espera, você espera aqui enquanto o torneio não começa. hora de início: {"..torneio.horarios[i][2].."}.")                         talkState[talkUser] = 0                         return true                     else                         selfSay('Voce nao Tem Dinheiro ('..torneio.price..').', cid)                         talkState[talkUser] = 0                         return true                     end                 end             end             selfSay('As inscrições para o torneio terminaram. Espere até o próximo.', cid)             talkState[talkUser] = 0             return true         else             selfSay('Voce nao quer participar do Torneio? OK, quando quiser, venha até mim!', cid)             talkState[talkUser] = 0             return true         end     end     return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Se não tiver entendido como adiciona novos horários, só avisar que eu te explico.
  13. Gostei
    allanzinh deu reputação a Nextbr em [Pokemon] Torneio System   
    Boa Tarde Turma, Hoje vou Postar um sistema De Torneio Para Poketibia!
     
    Para que possa funcionar o sistema de Torneio verifique se na (area pvp-zone ) funciona o pvp, caso nao funciona tentem procurar um tutorial de como liberar o pvp-zone e talves tente mudar isso aki no config.lua de voces:
    worldType = "pvp-enforced"
    protectionLevel = 1   Bom Chega de Mimimi e vamos La:   data/lib/Torneio.lua e add isso:

      Depois vai em Globaleevents/Torneio.lua

      <globalevent name="TournamentStart" time="11:35" event="script" value="Torneio.lua"/>   Depois vai em Actions/Torneio.lua: Atençao: Voce faz uma area do Torneio no Map editor e Coloca PVP-Zone no Mapa editor  e coloca uma Alavanca com a uid "18279"

      XML: <action uniqueid="18279" event="script" value="Torneio.lua"/>   Agora o NPC TORNEIO NPCS/NPCS.XML:

     
    NPC/SCRIPTS/Torneio.lua:



     
     
    [*] Bom é so Isso Flw bj ;*
     
       
  14. Gostei
    allanzinh deu reputação a Valakinhas em Pokemon Dash v6 Reupload by Valakinhas   
    • Menu:
    ├ Informações; ├ Lista dos sistemas; ├ Erros; ├ Erros Solved; ├ Prints; ├ Download; └ Creditos.   • Informações; Sem level system Base Dash v6  Source      • Lista dos sistemas    
     
     
    • Erros
     
     
     
     
    • Erros Fixed
     
     
      • Prints  
     
     
     
    Detalhes adicionais
     
     
     
     
     
    Conta do GOD
     
     
     
     
    Download e Scanner
     
     
     
     
     
    Creditos
     
    Bruno123
    aberos
    snix 
  15. Gostei
    allanzinh deu reputação a Rodrigo Augusto em Battlefield em Poketibia   
    é so voce trocar as storages vai na sua lib aonde esta instalado o sistema do battledield e troca as storages dos times por esse aki:
     
    TeamOne: 6598754
    TeamTwo: 6598755
     
    - Oque vai acontecer?
    essas storages é a mesma storage daqueles 2 teleportes de Team que tem no Trade Center praticamente vai funcionar !
     
    [*] OBS: Todo sistema (evento que tenha Times) que voce adicionar ao Servidor , é so  Trocar as Storages e por Essas 2 ae =)
  16. Gostei
    allanzinh recebeu reputação de Demon123 em Catch   
    Kara segue ese video axo que vai te ajudar bastante
     

     
    Ajudei ? não eskece do REPP
  17. Gostei
    [CreatureScript] Level Speed ao Atingir Determinado Level
    Basicamente, esse script se resume a aplicar determinada velocidade ao player quando ele atingir determinado level.

    Vamos dar início a instalação do script em seu servidor.
    Primeiramente, vá até a pasta data/creaturescripts/scripts, crie um arquivo nomeado como levelspeed.lua e adicione o seguinte script a ele:
    local info = { [10] = {speed = 238}, [50] = {speed = 318}, [100] = {speed = 418}, [150] = {speed = 518}, [200] = {speed = 618}, [250] = {speed = 718}, [300] = {speed = 818}, [350] = {speed = 918}, [400] = {speed = 1018}, [450] = {speed = 1118}, [500] = {speed = 1218}, [550] = {speed = 1318}, [600] = {speed = 1418}, [650] = {speed = 1518}, [700] = {speed = 1618}, [750] = {speed = 1718}, [800] = {speed = 1818}, [999] = {speed = 2218} } function onAdvance(cid, skill, oldLevel, newLevel)     for level, x in pairs(info) do         if skill == 8 and newLevel >= level then             doChangeSpeed(cid, -getCreatureSpeed(cid))             doChangeSpeed(cid, info.speed)         end     end return 1 end Na mesma pasta (data/creaturescripts/scripts) abra o arquivo login.lua e adicione a seguinte linha ao script:

    registerCreatureEvent(cid, "LevelSpeed")
    local info = { [10] = {speed = 238}, [50] = {speed = 318}, [100] = {speed = 418}, [150] = {speed = 518}, [200] = {speed = 618}, [250] = {speed = 718}, [300] = {speed = 818}, [350] = {speed = 918}, [400] = {speed = 1018}, [450] = {speed = 1118}, [500] = {speed = 1218}, [550] = {speed = 1318}, [600] = {speed = 1418}, [650] = {speed = 1518}, [700] = {speed = 1618}, [750] = {speed = 1718}, [800] = {speed = 1818}, [999] = {speed = 2218} } Acima, onde está, por exemplo: [150] = {speed = 518}, quando o player atingir o level 150, sua velocidade será 518 (velocidade de um level 150 no Tibia Global, sem itens ou spell ativada).

    Agora, na mesma pasta (data/creaturescripts), abra o arquivo creaturescripts.xml como bloco de notas e adicione a seguinte tag: <event type="advance" name="LevelSpeed" event="script" value="levelspeed.lua"/>

    Mudei a função do script quando reformulei o tópico.
    Acesse essa página para fazer diversos cálculos (como o de Experiência, de Skill, de Velocidade, de Informações do Level e/ou Level mínimo para Exp Party) com mais facilidade, clicando aqui (não tiver nenhuma intenção em divulgar o site onde essa calculadora está hospeada, apenas informar aos membros que há um recurso neste link).
    Se for postar em outro lugar, ao menos coloque os créditos (meus).
    Façam bom proveito.
  18. Gostei
    allanzinh deu reputação a ViitinG em (Resolvido)Edit Tile teleport Premion account   
    local pos = {x=1354, y=898, z=8} -- posição do lugar function onStepIn(cid, item, pos) if isPremium(cid) == true and getPlayerLevel(cid) >= 150 then doTeleportThing(cid, pos) doCreatureSay(cid, ""..getCreatureName(cid).." Bem Vindo A Outland !.", TALKTYPE_ORANGE_1) else doCreatureSay(cid, "Muito perigoso esse lugar só players lv 150 + pode passar por aki .", TALKTYPE_ORANGE_1) end end
  19. Gostei
    allanzinh recebeu reputação de dono red em (Resolvido)[PEDIDO] Catch system facil .   
    Facio Apenas Altere ali no 15  . Ali É o rate do cagth da ball quantos mais vc almentar mais facio vai ser o cagth .[2392] = {cr = 15, on = 200, off = 199, ball = {11829, 11746}, send = 49, typeee = "ultra"},
     
    para ficar balanceado vc pode mexer no seo serv tbm o rate de cagth de cada um dos seus pokemons em data/lib/confgu la vc axa a rate de todos os seus pokemons
     
     
    Se ajudei Rep +
  20. Gostei
    allanzinh recebeu reputação de AlcidesFeitosa em (Resolvido)[PEDIDO] Catch system facil .   
    Facio Apenas Altere ali no 15  . Ali É o rate do cagth da ball quantos mais vc almentar mais facio vai ser o cagth .[2392] = {cr = 15, on = 200, off = 199, ball = {11829, 11746}, send = 49, typeee = "ultra"},
     
    para ficar balanceado vc pode mexer no seo serv tbm o rate de cagth de cada um dos seus pokemons em data/lib/confgu la vc axa a rate de todos os seus pokemons
     
     
    Se ajudei Rep +
  21. Gostei
    allanzinh deu reputação a Wend em (Resolvido)account manager   
    ou Delete o account Manager da Database
  22. Gostei
    allanzinh deu reputação a kranzix em PokexMostyer (New WebSite)   
    Fala Tibia King's
     
    Montei Esse WebSite Para o PokexMostyer e Queria Saber Oque Você Acham!
     
    - Menu -
     
    Shop System
    Animações GIF Pelo WebSite  (Pokemons Voando e Tals!)
    Doação System
    Etc.. .
     
    - Prints -
     



     
    É Isso Ae Pessoal Avaliem Ae!!
     
    Se Gostaram Do Meu Trabalho Vocês Podem Ajudar Dando REP+ Ae!
     
    Em Breve Online: pokexmostyer.tk
     
    Attr: Kranzix
  23. Gostei
    allanzinh recebeu reputação de rafanh em (Resolvido)ERROR NO DISTRO SPAWN MONSTER   
    Bom . Vc deve ter adicinado o mostro que tava no seo RME só que no seo servidor Não . Retire o mostro que vc adiciono e ve se para com o erro
  24. Gostei
    allanzinh deu reputação a dovezica em (Resolvido)online para outros Player   
    assista ... se eu ajudei da rep +
     
    https://www.youtube.com/watch?v=Q0d-A4QKRIs
  25. Gostei
    allanzinh recebeu reputação de gabriel luccera zika em (Resolvido)Ajuda, Como aumentar velocidade dos poke?   
    Va em data/lib/configuration e procura uma tag parecida com esa 
     
     ["Bulbasaur"] = {offense = 0.7, defense = 6, specialattack = 5, vitality = 3.5, agility = 190, exp = 90, level = 20, wildLvl = 30, type = "grass", type2 = "poison"},
      Aonde está Agility é a velocidade do pokemon no caso do pokemon Bulbasaur está 190 .   Se ajudei Rep ++

Informação Importante

Confirmação de Termo