Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''script''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. esses erros começarao a parecer depois que eu criei o sit para meu otserver 1º bom e o seguinte quando eu attacko um player e mato fica dando -Rep e da uns erros no PAINEL DO MEU SERVER. e o life do player que eu attackei fica com 0 (zero) de Life (sangue) e ele nao morrer, e o player ainda pode anda com ZERO de life. Ss: ai olhei onde estava os erros fui em data\creaturescripts\scripts\rep\repkill e apaguei o arquivo e tambem fui em data\creaturescripts\scripts e apaguei um outro nomeado de repkill igual ao do caminho data\creaturescripts\scripts\rep\repkill tambem apaguei a tag de creaturescripts.xml. ai desliguei o ot, e liguei dnv deu outro erro. Ss: ai ja nao sei o que fazer 2º quando do look em min ou em outro player nao aparece nem a vocaçao, nem o level. Ss: aki meus arquivos: data\creaturescripts\scripts\Rep => repKill function onKill(cid, target, lastHit) local SKULL = {[sKULL_WHITE] = 15, [sKULL_RED] = 30, [sKULL_BLACK] = 45, [sKULL_NONE] = -30} if (isPlayer(cid)) and (isPlayer(target)) and isInArray({0,3,4,5}, getCreatureSkullType(target)) then if getPlayerLevel(target) > 30 then doSendAnimatedText(getPlayerPosition(cid), "-REP", TEXTCOLOR_RED) setPlayerRep(cid, getRepPoints(cid)+SKULL[getPlayerSkullType(target)]) end end if (isPlayer(cid)) and (isPlayer(target)) then if getRepPoints(target) == 0 then return true elseif getRepPoints(target) > 0 then removePlayerRep(target, 5, TEXTCOLOR_RED) else addPlayerRep(target, 5, TEXTCOLOR_RED) end end return true end data\creaturescripts\scripts\repKill --Cyber's REPutation System Rev5.0 local t = { [sKULL_WHITE] = 15, [sKULL_RED] = 30, [sKULL_BLACK] = 45, [sKULL_NONE] = -30, } function onKill(cid, target, lastHit) if isPlayer(cid) and isPlayer(target) then --THE KILLER if isInArray({0,3,4,5}, getCreatureSkullType(target)) then if getPlayerLevel(target) >= rep.pvpLevel and not isInArray(rep.skull, getCreatureSkullType(cid)) then doSendAnimatedText(getCreaturePosition(cid), getCreatureSkullType(target) == 0 and '-REP' or '+REP', math.random(1,255)) rep.set(cid, rep.getPoints(cid)+t[getCreatureSkullType(target)]) doPlayerSendTextMessage(cid, 20, 'You '.. (getCreatureSkullType(target) == 0 and 'lose' or 'gain') ..' reputation because you killed a player.') end end --THE VICTIM if rep.getPoints(target) == 0 then return true elseif rep.getPoints(target) > 0 then rep.remove(target, 5, TEXTCOLOR_RED) doPlayerSendTextMessage(target, 20, 'You lose reputation because you were killed by a player.') else rep.add(target, 5, TEXTCOLOR_LIGHTBLUE) doPlayerSendTextMessage(target, 20, 'You lose reputation because you were killed by a player.') end end return true end data\creaturescripts\creaturescripts.xml <event type="kill" name="repKill" event="script" value="rep/repKill.lua"/> agora do look data\creaturescripts\scripts\Rep\ =>repLook -- >>> THE Players'REP++System CryingDamson Edition by Cybermaster <<< -- -- >>> Credits to darkhaos in this script<<< -- -- >>> Scripted IN and ONLY for TFS 0.3<<< -- function onLook(cid, thing, position, lookDistance) if(isPlayer(thing.uid) == true) then if(thing.uid == cid) then doPlayerSendTextMessage(cid, 20, "You are "..getRepRank(getRepPoints(cid)).."") else doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." is "..getRepRank(getRepPoints(thing.uid)).."") end return true end return true end data\creaturescripts\scripts\ => RepLook --Cyber's REPutation System Rev5.0 function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid,'.\n' .. (thing.uid == cid and 'You are' or rep.getArticle(thing.uid, true) .. ' is') .. ' ' .. rep.getRank(rep.getPoints(thing.uid))) end return true end data\creaturescripts\creaturescripts.xml <event type="look" name="repLook" event="script" value="rep/repLook.lua"/> Ver se esse voçes min responde!!!
  2. Carlinhow789

    Ajuda Area Vip

    Alguem POde Me fase 1 Script Pra Eu Bota no Chao Da entrada Da area Vip Do Meu Ot? Do Rep +
  3. Eu gostaria de pedir um escript, queria ele da seguinte maneira: o player fala com o npc e paga 500gps em troca disso ele e recompensado com um 30 diamantes de id: 2146 ao ser pago os 500gps e ele ganha as 30 diamonds ele e teleportado para uma determinada area. gostaria de que alguem me ajudasse com esse script, sei que e facil para quem ja intende do assunto. vlw a todos rep+ pra quem ajuda!!
  4. molizok

    Sistema Anti Ks

    Tipo do script: Não constado Protocolo (versão do Tibia): 8.57 Servidor utilizado: Flash Nível de experiência: Itermediaria/Expert Adicionais/Informações: Assim,olá denovo. sei que to enxendo o tédio,queria saber se tem como alguem fazer um Script anti-ks Tipo o player mata tal pokémon só ele tem direito a dar cath e pegar loot. tem como me ajudar? já revirei esse forum todo atrás dessa informação! Deis de já agradecido.
  5. Tipo do script: Nova Vocação Protocolo : 8.6 Servidor utilizado: Styller Yourots Assim galera, eu tentei cria uma vocação mas toda vez que eu crio ela buga meu serv ( não so muito bom com scripts ). Então, tô aqui pedindo se alguém faz o favor de fazer a vocação pra mim e me mandar ?? Caso alguém queira me ajudar vou deixar as informações aqui pra vocação: Nome da Vocação: Archangel gainhp: 10 gainmana: 10 gainhpticks: 5 gainhpamount: 40 attackspeed: 300 Vlw, qm me ajuda leva REP+
  6. gorz

    Experience Door 8.7

    Ei gente,eu queria que quando as pessoas tentacem entrar na exeprience door,mais nao tivesem lvl o suficiente aparece um aviso falando o level nessesario pra entrar.Alguem ajuda ae,o script ta assim: elseif isInArray(levelDoors, item.itemid) == TRUE then if item.actionid > 0 and getPlayerLevel(cid) >= item.actionid - 1000 then doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, toPosition, TRUE) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.") end return TRUE elseif isInArray(keys, item.itemid) == TRUE then if itemEx.actionid > 0 then if item.actionid == itemEx.actionid then if doors[itemEx.itemid] ~= nil then doTransformItem(itemEx.uid, doors[itemEx.itemid]) return TRUE end end doPlayerSendCancel(cid, "The key does not match.")
  7. Olá, xTibianos, eu tive uma idéia para formar mtos novos scripters, em nosso forum. Como todos já sabem aprender a programar Lua ( linguagem dos scripts ) sozinho é uma coisa mais dificil, e mta gente desiste por que não tem nimguem para ajudar. Então eu resolvi criar um CHAT , de ajuda para quem está começando a programar agora, como eudisse é um CHAT de AJUDA, não vai pensando ki é de PEDIDOS, e querer adicionar para ficar pedindo scripts, é para ajudar para que surja mtos novos scripters, em nosso forum. O Chat é : group188203@groupsim.com. Espero muitos pessoas com vontade de aprender lá, Obrigado a todos.
  8. molizok

    Quest (Baú)

    Tipo do script:Quest Protocolo (versão do Tibia):8.54 Servidor utilizado: Nenhum Nível de experiência: Baixa. Adicionais/Informações: Olá caros amigos do xtibia,preciso do seguinte. Um Baú que de 20 hd e 20 ub e um abra,para colocar no templo. Numero dos Itens 2150 2160
  9. Boa tarde! Hoje quero pedir um script para ter level para evoluir e usar os pokemons. Infelizmente no ot que eu baixei nao tem esse sistema de level. OT 8.54. obrigado
  10. Eu um dia subi no topo do templo do meu ot e vi que tinha um npc que eu achava inutil,porque eu falava hi,bye e tudo quanto é tipo de mensagem e ele nao fazia nada até que eu decidi ir na pasta de npcs e ver oque ele faz e descobri que ele manda uma mensagem como se fosse um /bc white para todos os jogadores do server falando sobre informações sobre o OT. Esta ai: Vá na pasta data/npcs e crie um arquivo chamado Berethor.xml e cole isso Depois abra a pasta script e crie um arquivo merchandsing.lua e cole: onde esta escrito /bc white ...,mude o que esta escrito para o que você quiser! Espero ter ajudado! OBS: NAO FUI EU QUEM FIZ ESSE NPC!CREDITOS NAO SAO MEUS! Abrassos
  11. Vamos LA Bota a mão na Massa, Ops Que Dizer A Mão No Teclado e No Mouse 2 Spells Muito Boas Druid E Pally Pally Data/Spells/Scripts~~> Copie Uma Arquivo lua Qualquer E Renomeie Para <>Exevo Gran Mas San<> Depois Abra Ela E Apague Tudo E Cole Isto local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC , -3.0, -1, -2.5, -10) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC , -2.7, -2, -2.3, -10) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC , -2.4, -3, -2.1, -10) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat4, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC , -2.1, -4, -1.9, -10) local combat5 = createCombatObject() setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat5, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC , -1.6, -5, -1.7, -10) local combat6 = createCombatObject() setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat6, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC , -1.6, -6, -1.5, -10) local combat7 = createCombatObject() setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat7, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC , -1.6, -7, -1.3, -10) local combat8 = createCombatObject() setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat8, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC , -1.6, -8, -1.3, -10) local combat9 = createCombatObject() setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat9, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat10 = createCombatObject() setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat10, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat11 = createCombatObject() setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat11, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat12 = createCombatObject() setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat12, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat12, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat13 = createCombatObject() setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat13, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat13, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat14 = createCombatObject() setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat14, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat14, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat15 = createCombatObject() setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat15, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat15, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat16 = createCombatObject() setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat16, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat16, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat17 = createCombatObject() setCombatParam(combat17, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat17, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat17, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat18 = createCombatObject() setCombatParam(combat18, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat18, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat18, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat19 = createCombatObject() setCombatParam(combat19, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat19, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat19, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) local combat20 = createCombatObject() setCombatParam(combat20, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat20, COMBAT_PARAM_EFFECT, 28) setCombatFormula(combat20, COMBAT_FORMULA_LEVELMAGIC , -1.6, -9, -1.3, -10) arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0,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 1, 1, 1, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) local area4 = createCombatArea(arr4) local area5 = createCombatArea(arr5) local area6 = createCombatArea(arr6) local area7 = createCombatArea(arr7) local area8 = createCombatArea(arr8) local area9 = createCombatArea(arr9) local area10 = createCombatArea(arr10) local area11 = createCombatArea(arr11) local area12 = createCombatArea(arr12) local area13 = createCombatArea(arr13) local area14 = createCombatArea(arr14) local area15 = createCombatArea(arr15) local area16 = createCombatArea(arr16) local area17 = createCombatArea(arr17) local area18 = createCombatArea(arr18) local area19 = createCombatArea(arr19) local area20 = createCombatArea(arr20) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) setCombatArea(combat4, area4) setCombatArea(combat5, area5) setCombatArea(combat6, area6) setCombatArea(combat7, area7) setCombatArea(combat8, area8) setCombatArea(combat9, area9) setCombatArea(combat10, area10) setCombatArea(combat11, area11) setCombatArea(combat12, area12) setCombatArea(combat13, area13) setCombatArea(combat14, area14) setCombatArea(combat15, area15) setCombatArea(combat16, area16) setCombatArea(combat17, area17) setCombatArea(combat18, area18) setCombatArea(combat19, area19) setCombatArea(combat20, area20) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, parameters.combat3, parameters.var) end local function onCastSpell4(parameters) doCombat(parameters.cid, parameters.combat4, parameters.var) end local function onCastSpell5(parameters) doCombat(parameters.cid, parameters.combat5, parameters.var) end local function onCastSpell6(parameters) doCombat(parameters.cid, parameters.combat6, parameters.var) end local function onCastSpell7(parameters) doCombat(parameters.cid, parameters.combat7, parameters.var) end local function onCastSpell8(parameters) doCombat(parameters.cid, parameters.combat8, parameters.var) end local function onCastSpell9(parameters) doCombat(parameters.cid, parameters.combat9, parameters.var) end local function onCastSpell10(parameters) doCombat(parameters.cid, parameters.combat10, parameters.var) end local function onCastSpell11(parameters) doCombat(parameters.cid, parameters.combat11, parameters.var) end local function onCastSpell12(parameters) doCombat(parameters.cid, parameters.combat12, parameters.var) end local function onCastSpell13(parameters) doCombat(parameters.cid, parameters.combat13, parameters.var) end local function onCastSpell14(parameters) doCombat(parameters.cid, parameters.combat14, parameters.var) end local function onCastSpell15(parameters) doCombat(parameters.cid, parameters.combat15, parameters.var) end local function onCastSpell16(parameters) doCombat(parameters.cid, parameters.combat16, parameters.var) end local function onCastSpell17(parameters) doCombat(parameters.cid, parameters.combat17, parameters.var) end local function onCastSpell18(parameters) doCombat(parameters.cid, parameters.combat18, parameters.var) end local function onCastSpell19(parameters) doCombat(parameters.cid, parameters.combat19, parameters.var) end local function onCastSpell20(parameters) doCombat(parameters.cid, parameters.combat20, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10, combat11 = combat11, combat12 = combat12, combat13 = combat13, combat14 = combat14, combat15 = combat15, combat16 = combat16, combat17 = combat17, combat18 = combat18, combat19 = combat19, combat20 = combat20 } addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 300, parameters) addEvent(onCastSpell3, 500, parameters) addEvent(onCastSpell4, 700, parameters) addEvent(onCastSpell5, 900, parameters) addEvent(onCastSpell6, 1100, parameters) addEvent(onCastSpell7, 1300, parameters) addEvent(onCastSpell8, 1500, parameters) addEvent(onCastSpell9, 1700, parameters) addEvent(onCastSpell10, 1900, parameters) addEvent(onCastSpell11, 2100, parameters) addEvent(onCastSpell12, 2300, parameters) addEvent(onCastSpell13, 2500, parameters) addEvent(onCastSpell14, 2700, parameters) addEvent(onCastSpell15, 2900, parameters) addEvent(onCastSpell16, 3100, parameters) addEvent(onCastSpell17, 3300, parameters) addEvent(onCastSpell18, 3500, parameters) addEvent(onCastSpell19, 3700, parameters) addEvent(onCastSpell20, 3900, parameters) end Depois Va Em Data/Spells/Spells.xml E Cole Isto <instant name="Exevo Gran Mas San" words="Exevo Gran Mas San" lvl="100" maglv="90" mana="2000" soul="0" exhaustion="0" prem="1" enabled="1" script="Exevo Gran Mas San.lua"> <vocation name="Paladin"/> <vocation name="Royal Paladin"/> </instant> Agora Vamos Para Spell Para Druid Data/Spells/Scripts Copie um Arquivo Lua Depois Cole Depois Abra E Apague Tudo Que Tem Dentro E Cole Isto local acombat = createCombatObject() local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 36) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.0, -20, -2.0, 20) local arr = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 1, 1, 1, 3, 1, 1, 1, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area = createCombatArea(arr) setCombatArea(acombat, area) function onTargetTile(cid, pos) doCombat(cid,combat,positionToVariant(pos)) end setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") function onCastSpell(cid, var) return doCombat(cid, acombat, var) end Pronto Agora Va Em Data/Spells/Spells.xml E Cole Isto <instant name="Exevo Frigo Mas" words="Exevo Frigo Mas" lvl="120" maglv="40" mana="1500" soul="0" exhaustion="1" prem="0" enabled="1" script="Exevo Frigo Mas.lua"> <vocation name="Druid"/> <vocation name="Elder Druid"/> </instant> Pronto espero Que Gostem ;D Comentem Pls
  12. diegolocoo

    Characters

    Eai Galera blz ? toh com um problema assim : quando alguem clica pra ver um char no meu site , aparece os skills dele , quanto de mana ele tem , life eos equipes dele... queria tira isso , soh pra mostra os addons , morte o normal rs.. alguem ae poderia me ajudar ? meu character.php eh esse : <?PHP $name = stripslashes(ucwords(strtolower(trim($_REQUEST['name'])))); if(empty($name)) { $main_content .= 'Here you can get detailed information about a certain player on '.$config['server']['serverName'].'.<BR> <FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Search Character</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>'; } else { if(check_name($name)) { $player = $ots->createObject('Player'); $player->find($name); if($player->isLoaded()) { $account = $player->getAccount(); $main_content .= '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR><TD><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Character Information</B></TD></TR>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=20%>Name:</TD><TD><font color="'; $main_content .= ($player->isOnline()) ? 'green' : 'red'; $main_content .= '"><b>'.$player->getName().'</b></font>'; if($player->isDeleted()) $main_content .= '<font color="red"> [DELETED]</font>'; if($player->isNameLocked()) $main_content .= '<font color="red"> [NAMELOCK]</font>'; $main_content .= '</TD></TR>'; if($player->getOldName()) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; if($player->isNameLocked()) $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Proposition:</TD><TD>'.$player->getOldName().'</TD></TR>'; else $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Old name:</TD><TD>'.$player->getOldName().'</TD></TR>'; } // BEGIN Position Showing *** Fixed by jerryb1988 from otfans.net $group = $player->getGroup(); if ($group == 2){$group_name = 'Tutor';} if ($group == 3){$group_name = 'Senior Tutor';} if ($group == 4){$group_name = 'Gamemaster';} if ($group == 5){$group_name = 'Community Manager';} if ($group == 6){$group_name = 'GOD';} if($group != 1) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Position:</TD><TD>'.$group_name.'</TD></TR>'; } // END Position Showing if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Sex:</TD><TD>'; $main_content .= ($player->getSex() == 0) ? 'female' : 'male'; $main_content .= '</TD></TR>'; if($config['site']['show_marriage_info']) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Marital status:</TD><TD>'; $marriage = new OTS_Player(); $marriage->load($player->getMarriage()); if($marriage->isLoaded()) $main_content .= 'married to <a href="?subtopic=characters&name='.urlencode($marriage->getName()).'"><b>'.$marriage->getName().'</b></a></TD></TR>'; else $main_content .= 'single</TD></TR>'; } if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Profession:</TD><TD>'.$vocation_name[$player->getWorld()][$player->getPromotion()][$player->getVocation()].'</TD></TR>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Level:</TD><TD>'.$player->getLevel().'</TD></TR>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>World:</TD><TD>'.$config['site']['worlds'][$player->getWorld()].'</TD></TR>'; if(!empty($towns_list[$player->getWorld()][$player->getTownId()])) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Residence:</TD><TD>'.$towns_list[$player->getWorld()][$player->getTownId()].'</TD></TR>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Balance:</TD><TD>'.$player->getBalance(50505).' Gold Coins.</TD></TR>'; } $rank_of_player = $player->getRank(); if(!empty($rank_of_player)) { { $guild_id = $rank_of_player->getGuild()->getId(); $guild_name = $rank_of_player->getGuild()->getName(); if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Guild Membership:</TD><TD>'.$rank_of_player->getName().' of the <a href="?subtopic=guilds&action=show&guild='.$guild_id.'">'.$guild_name.'</a></TD></TR>'; } } if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $lastlogin = $player->getLastLogin(); if(empty($lastlogin)) $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Last login:</TD><TD>Never logged in.</TD></TR>'; else $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Last login:</TD><TD>'.date("j F Y, g:i a", $lastlogin).'</TD></TR>'; if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; if($config['site']['show_creationdate'] && $player->getCreated()) { $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Created:</TD><TD>'.date("j F Y, g:i a", $player->getCreated()).'</TD></TR>'; } if($config['site']['show_vip_status']) { $id = $player->getCustomField("id"); if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=10%>Vip Status:</TD>'; $vip = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$config['site']['show_vip_storage'].';')->fetch(); if($vip == false) { $main_content .= '<TD><span class="red"><B>NOT VIP</B></TD></TR>'; } else { $main_content .= '<TD><span class="green"><B>VIP</B></TD></TR>'; } $comment = $player->getComment(); $newlines = array("\r\n", "\n", "\r"); $comment_with_lines = str_replace($newlines, '<br />', $comment, $count); if($count < 50) $comment = $comment_with_lines; if(!empty($comment)) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD VALIGN=top>Comment:</TD><TD>'.$comment.'</TD></TR>'; } } //Outfit shower by Pening edited by loleslav if($config['site']['show_outfit']) { $id = $player->getCustomField("id"); $main_content .= '<TD BGCOLOR="'.$config['site']['darkborder'].'">Outfit:'; $listaddon = array('128','129','130','131','132','133','134','135','136','137','138','139','140','141','142','143','144','145','146','147','148','149','150','151','152','153','154','155','158','159','251','252','268','269','270','273','278','279','288','289','302','324','325'); $lookadd = array('0','1','2','3'); foreach ($listaddon as $pid => $name) foreach ($lookadd as $addo => $name) { $addon1 = $SQL->query('SELECT * FROM players WHERE id = '.$id.' AND looktype = '.$listaddon[$pid].' AND lookaddons = '.$lookadd[$addo].';')->fetch(); if($addon1[looktype] == true ) { $finaddon = $addon1[looktype] + $addon1[lookaddons] * 300; $main_content .= '<TD with=50% style="background-color: '.$config['site']['darkborder'].'"><center><img src="images/addons/'.$finaddon.'.gif"/></center></TD></TD>'; } } } $main_content .= '</td>'; //end Outfit shower by Pening edited by loleslav if($config['site']['show_signature']) { // Signature by makr0mango. function randomSignature( $folder ) { $files = scandir ( "./$folder/" ); $signature = array(); foreach ( $files as $file ): if ( substr ( strtolower ( $file ) , -4 ) == ".png" ) $signature[] = $file; endforeach; return rand(0,count($signature)-1); } // Signature by makr0mango. } //modified status scripts by ballack13 $main_content .= '<table width=100%><tr>'; //equipment shower by ballack13 $id = $player->getCustomField("id"); $number_of_items = 1; $main_content .= '<td align=center><table with=100% style="border: solid 1px #888888;" CELLSPACING="1"><TR>'; $list = array('2','1','3','6','4','5','9','7','10','8'); foreach ($list as $pid => $name) { $top = $SQL->query('SELECT * FROM player_items WHERE player_id = '.$id.' AND pid = '.$list[$pid].';')->fetch(); if($top[itemtype] == false) { if($list[$pid] == '8') { $main_content .= '<td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Soul:<br/>'.$player->getSoul().'</td>'; } if(is_int($number_of_items / 3)){ $main_content .= '<TD style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/'.$list[$pid].'.gif"/></TD></tr><tr>'; } else { $main_content .= '<TD style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/'.$list[$pid].'.gif"/></TD>'; } $number_of_items++; } else { if($list[$pid] == '8') { $main_content .= '<td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Soul:<br/>'.$player->getSoul().'</td>'; } if(is_int($number_of_items / 3)) $main_content .= '<TD style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/'.$top[itemtype].'.gif" width="45"/></TD></tr><tr>'; else $main_content .= '<TD style="background-color: '.$config['site']['darkborder'].'; text-align: center;"><img src="images/items/'.$top[itemtype].'.gif" width="45"/></TD>'; $number_of_items++; } if($list[$pid] == '8') { $main_content .= '<td style="background-color: '.$config['site']['darkborder'].'; text-align: center;">Cap:<br/>'.$player->getCap().'</td>'; } } $main_content .= '</tr></TABLE></td>'; //Hp/Mana/Exp Status by ballack13 $hp = ($player->getHealth() / $player->getHealthMax() * 100); $main_content .= '<td align=center ><table width=100%><tr><td align=center><table CELLSPACING="1" CELLPADDING="4"><tr><td BGCOLOR="#D4C0A1" align="left" width="20%"><b>Player Health:</b></td> <td BGCOLOR="#D4C0A1" align="left">'.$player->getHealth().'/'.$player->getHealthMax().'<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: red; width: '.$hp.'%; height: 3px;"></td></tr>'; if ($player->getManaMax() > 0) { $mana = ($player->getMana() / $player->getManaMax() * 100); $main_content .= '<tr><td BGCOLOR="#F1E0C6" align="left"><b>Player Mana:</b></td><td BGCOLOR="#F1E0C6" align="left">'.$player->getMana().'/'.$player->getManaMax().'<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: blue; width: '.$mana.'%; height: 3px;"></td>'; } else { $main_content .= '<tr><td BGCOLOR="#F1E0C6" align="left"><b>Player Mana:</b></td><td BGCOLOR="#F1E0C6" align="left">0/0<div style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: blue; width: 100%; height: 3px;"></td>'; } $main_content .= '</tr></table><tr>'; $next = ($player->getLevel() + 1); $exp = ((50 / 3) * ($player->getLevel() * $player->getLevel() * $player->getLevel()) - (100 * ($player->getLevel() * $player->getLevel())) + ((850/3) * $player->getLevel()) - 200); $expnext = ((50 / 3) * ($next * $next * $next) - (100 * ($next * $next)) + ((850/3) * $next) - 200 - $player->getExperience()); $expresult = ($expnext / (($expnext + $player->getExperience()) - $exp) * 100); $main_content .= '<tr><table CELLSPACING="1" CELLPADDING="4"><tr><td BGCOLOR="'.$config['site']['lightborder'].'" align="left" width="20%"><b>Player Level:</b></td><td BGCOLOR="'.$config['site']['lightborder'].'" align="left">'.$player->getLevel().'</td></tr> <tr><td BGCOLOR="'.$config['site']['darkborder'].'" align="left"><b>Player Experience:</b></td><td BGCOLOR="'.$config['site']['darkborder'].'" align="left">'.$player->getExperience().' EXP.</td></tr> <tr><td BGCOLOR="'.$config['site']['lightborder'].'" align="left"><b>To Next Level:</b></td><td BGCOLOR="'.$config['site']['lightborder'].'" align="left">You need <b>'.$exp.' EXP</b> to Level <b>'.$next.'</b>.<div title="99.320604545 %" style="width: 100%; height: 3px; border: 1px solid #000;"><div style="background: red; width: '.$expresult.'%; height: 3px;"></td></tr></table></td></tr></table></tr></TABLE></td>'; if($config['site']['show_skills_info']) { //Skills Pics v2. Table borders optimized by Absolute Mango $main_content .= '<br/><table cellspacing="0" cellpadding="0" border="0" width="200" align="center"><caption><strong>Skills</strong></caption><tbody><tr> <td align="center"><a href="?subtopic=highscores&list=experience"><img src="images/skills/level.png" style="border: none;"/></a></td> <td align="center"><a href="?subtopic=highscores&list=magic"><img src="images/skills/ml.png" style="border: none;"/></a></td> <td align="center"><a href="?subtopic=highscores&list=fist"><img src="images/skills/fist.png" style="border: none;"/></a></td> <td align="center"><a href="?subtopic=highscores&list=club"><img src="images/skills/club.png" style="border: none;"/></a></td> <td align="center"><a href="?subtopic=highscores&list=sword"><img src="images/skills/sword.png" style="border: none;"/></a></td> <td align="center"><a href="?subtopic=highscores&list=axe"><img src="images/skills/axe.png" style="border: none;"/></a></td> <td align="center"><a href="?subtopic=highscores&list=distance"><img src="images/skills/dist.png" style="border: none;"/></a></td> <td align="center"><a href="?subtopic=highscores&list=shield"><img src="images/skills/def.png" style="border: none;"/></a></td> <td align="center"><a href="?subtopic=highscores&list=fishing"><img src="images/skills/fish.png" style="border: none;"/></a></td> </tr></tbody></table> <table cellspacing="0" cellpadding="0" border="1" width="360" align="center"><tbody><tr><tr bgcolor="'.$config['site']['darkborder'].'"> <td align="center" width="38"><strong>Level</strong></td> <td align="center" width="38"><strong>ML</strong></td> <td align="center" width="42"><strong>Fist</strong></td> <td align="center" width="40"><strong>Club</strong></td> <td align="center" width="38"><strong>Swrd</strong></td> <td align="center" width="38"><strong>Axe</strong></td> <td align="center" width="38"><strong>Dist</strong></td> <td align="center" width="38"><strong>Shield</strong></td> <td align="center" width="38"><strong>Fish</strong></td></font> </tr> <tr bgcolor="'.$config['site']['lightborder'].'"> <td align="center" width="38">'.$player->getLevel().'</td> <td align="center" width="38">'.$player->getMagLevel().'</td> <td align="center" width="38">'.$player->getSkill(0).'</td> <td align="center" width="38">'.$player->getSkill(1).'</td> <td align="center" width="38">'.$player->getSkill(2).'</td> <td align="center" width="38">'.$player->getSkill(3).'</td> <td align="center" width="38">'.$player->getSkill(4).'</td> <td align="center" width="38">'.$player->getSkill(5).'</td> <td align="center" width="38">'.$player->getSkill(6).'</td> </tr></tbody></table><div table align="center"> <br /> </div>'; //skill script end } //quest status by ballack13 $id = $player->getCustomField("id"); $number_of_quests = 0; $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD align="left" COLSPAN=2 CLASS=white><B>Quests</B></TD></TD align="right"></TD></TR>'; $quests = $config['site']['quests']; foreach ($quests as $storage => $name) { if(is_int($number_of_quests / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_quests++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=95%>'.$storage.'</TD>'; $quest = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$quests[$storage].';')->fetch(); if($quest == false) { $main_content .= '<TD><img src="images/false.png"/></TD></TR>'; } else { $main_content .= '<TD><img src="images/true.png"/></TD></TR>'; } } $main_content .= '</TABLE></td></tr></table><br />'; $deads = 0; //deaths list $player_deaths = $SQL->query('SELECT `id`, `date`, `level` FROM `player_deaths` WHERE `player_id` = '.$player->getId().' ORDER BY `date` DESC LIMIT 0,10;'); foreach($player_deaths as $death) { if(is_int($number_of_rows / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_rows++; $deads++; $dead_add_content .= "<tr bgcolor=\"".$bgcolor."\"> <td width=\"20%\" align=\"center\">".date("j M Y, H:i", $death['date'])."</td> <td>"; $killers = $SQL->query("SELECT environment_killers.name AS monster_name, players.name AS player_name, players.deleted AS player_exists FROM killers LEFT JOIN environment_killers ON killers.id = environment_killers.kill_id LEFT JOIN player_killers ON killers.id = player_killers.kill_id LEFT JOIN players ON players.id = player_killers.player_id WHERE killers.death_id = ".$SQL->quote($death['id'])." ORDER BY killers.final_hit DESC, killers.id ASC")->fetchAll(); $i = 0; $count = count($killers); foreach($killers as $killer) { $i++; if(in_array($i, array(1, $count))) $killer['monster_name'] = str_replace(array("an ", "a "), array("", ""), $killer['monster_name']); if($killer['player_name'] != "") { if($i == 1) $dead_add_content .= "Killed at level <b>".$death['level']."</b> by "; else if($i == $count) $dead_add_content .= " and by "; else $dead_add_content .= ", "; if($killer['monster_name'] != "") $dead_add_content .= $killer['monster_name']." summoned by "; if($killer['player_exists'] == 0) $dead_add_content .= "<a href=\"index.php?subtopic=characters&name=".urlencode($killer['player_name'])."\">"; $dead_add_content .= $killer['player_name']; if($killer['player_exists'] == 0) $dead_add_content .= "</a>"; } else { if($i == 1) $dead_add_content .= "Died at level <b>".$death['level']."</b> by "; else if($i == $count) $dead_add_content .= " and by "; else $dead_add_content .= ", "; $dead_add_content .= $killer['monster_name']; } if($i == $count) $dead_add_content .= "."; } $dead_add_content .= ".</td></tr>"; } if($deads > 0) $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Deaths</B></TD></TR>' . $dead_add_content . '</TABLE><br />'; //end if(!$player->getHideChar()) { $main_content .= '<TABLE BORDER=0><TR><TD></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Account Information</B></TD></TR>'; if($account->getRLName()) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR='.$config['site']['lightborder'].'><TD WIDTH=20%>Real name:</TD><TD>'.$account->getRLName().'</TD></TR>'; } if($account->getLocation()) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR='.$config['site']['darkborder'].'><TD WIDTH=20%>Location:</TD><TD>'.$account->getLocation().'</TD></TR>'; } if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; if($account->getLastLogin()) $main_content .= '<TR BGCOLOR='.$config['site']['lightborder'].'><TD WIDTH=20%>Last login:</TD><TD>'.date("j F Y, g:i a", $account->getLastLogin()).'</TD></TR>'; else $main_content .= '<TR BGCOLOR='.$config['site']['lightborder'].'><TD WIDTH=20%>Last login:</TD><TD>Never logged in.</TD></TR>'; if($account->getCreated()) { if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR='.$config['site']['lightborder'].'><TD WIDTH=20%>Created:</TD><TD>'.date("j F Y, g:i a", $account->getCreated()).'</TD></TR>'; } if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Account Status:</TD><TD>'; $main_content .= ($account->isPremium()) ? '<b><font color="green">Premium Account</font></b>' : '<b><font color="red">Free Account</font></b>'; if($account->isBanned()) if($account->getBanTime() > 0) $main_content .= '<font color="red"> [banished until '.date("j F Y, G:i", $account->getBanTime()).']</font>'; else $main_content .= '<font color="red"> [banished FOREVER]</font>'; $main_content .= '</TD></TR></TABLE>'; $main_content .= '<br><TABLE BORDER=0><TR><TD></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=5 CLASS=white><B>Characters</B></TD></TR> <TR BGCOLOR='.$config['site']['darkborder'].'><TD><B>Name</B></TD><TD><B>World</B></TD><TD><B>Level</B></TD><TD><b>Status</b></TD><TD><B> </B></TD></TR>'; $account_players = $account->getPlayersList(); $account_players->orderBy('name'); $player_number = 0; foreach($account_players as $player_list) { if(!$player_list->getHideChar()) { $player_number++; if(is_int($player_number / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; if(!$player_list->isOnline()) $player_list_status = '<font color="red">Offline</font>'; else $player_list_status = '<font color="green">Online</font>'; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=52%><NOBR>'.$player_number.'. '.$player_list->getName(); $main_content .= ($player_list->isDeleted()) ? '<font color="red"> [DELETED]</font>' : ''; $main_content .= '</NOBR></TD><TD WIDTH=15%>'.$config['site']['worlds'][$player_list->getWorld()].'</TD><TD WIDTH=25%>'.$player_list->getLevel().' '.$vocation_name[$player_list->getWorld()][$player_list->getPromotion()][$player_list->getVocation()].'</TD><TD WIDTH="8%"><b>'.$player_list_status.'</b></TD><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><FORM ACTION="?subtopic=characters" METHOD=post><TR><TD><INPUT TYPE=hidden NAME=name VALUE="'.$player_list->getName().'"><INPUT TYPE=image NAME="View '.$player_list->getName().'" ALT="View '.$player_list->getName().'" SRC="'.$layout_name.'/images/buttons/sbutton_view.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></FORM></TABLE></TD></TR>'; } } $main_content .= '</TABLE></TD><TD><IMG SRC="'.$layout_name.'/images/general/blank.gif" WIDTH=10 HEIGHT=1 BORDER=0></TD></TR></TABLE>'; } $main_content .= '<BR><BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Search Character</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>'; $main_content .= '</TABLE>'; } else $search_errors[] = 'Character <b>'.$name.'</b> does not exist.'; } else $search_errors[] = 'This name contains invalid letters. Please use only A-Z, a-z and space.'; if(!empty($search_errors)) { $main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>'; foreach($search_errors as $search_error) $main_content .= '<li>'.$search_error; $main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>'; $main_content .= '<BR><FORM ACTION="?subtopic=characters" METHOD=post><TABLE WIDTH=100% BORDER=0 CELLSPACING=1 CELLPADDING=4><TR><TD BGCOLOR="'.$config['site']['vdarkborder'].'" CLASS=white><B>Search Character</B></TD></TR><TR><TD BGCOLOR="'.$config['site']['darkborder'].'"><TABLE BORDER=0 CELLPADDING=1><TR><TD>Name:</TD><TD><INPUT NAME="name" VALUE=""SIZE=29 MAXLENGTH=29></TD><TD><INPUT TYPE=image NAME="Submit" SRC="'.$layout_name.'/images/buttons/sbutton_submit.gif" BORDER=0 WIDTH=120 HEIGHT=18></TD></TR></TABLE></TD></TR></TABLE></FORM>'; } } ?> por favor , me ajudem .. vlws , abraços!
  13. Venho aki pedir um script deathlist.lua que esteja funcionando perfeitamente, eu uso o realserver 3.6 ot8.60 e o !death list ta derrubando meu ot.
  14. gorz

    Pedido De Script (8.7)

    Eu queria uma magia para refletir os danos que o player toma mas que nao pare de tomar dano,por um certo periodo de tempo.
  15. Gente,to com um problema pequeno,quando alguem usa a talkaction era pra a pessoa ser mutada e transformada,mais ela nao esta sendo mutada,e aparece o seguinte erro. [17/02/2011 13:23:27] Lua Script Error: [TalkAction Interface] [17/02/2011 13:23:27] data/talkactions/scripts/viado.lua:onSay [17/02/2011 13:23:27] data/talkactions/scripts/viado.lua:8: attempt to call global 'doMutePlayer' (a nil value) [17/02/2011 13:23:27] stack traceback: [17/02/2011 13:23:27] [C]: in function 'doMutePlayer' [17/02/2011 13:23:27] data/talkactions/scripts/viado.lua:8: in function <data/talkactions/scripts/viado.lua:1> Alguem Ajuda ae,o script e esse: function onSay(cid, words, param) local time = 300 -- Tempo que ele ficará com outra outfit e muted! (em segundos) local life = 10 -- Quantidade de vida que o player perderá! doSendAnimatedText(getPlayerPosition(cid), "Viado!", 19) doPlayerSendTextMessage(cid, 23, "Now you are muted and other outfit for "..time.." seconds!") doCreatureAddHealth(cid, -life) doSetMonsterOutfit(cid, "Deer", time*1000) doMutePlayer(cid, time*1000) return TRUE end
  16. Tipo do script: Actions e outros Protocolo (versão do Tibia): 8.7 Servidor utilizado:TFS 0.2.10 Nível de experiência: 1 Adicionais/Informações: Preciso de alguns scripts 1ºComo arrumar o npc chat. 2º Preciso de um script para CTF (Capture The Flag) 3º Npc que venda a 2ª promote, e um vip system para site e para o ot! Por favor Alguem ajuda ai! Agradeço!
  17. E aewww galera do :XTibia_smile: ,meu primeiro post,desculpem qualquer erro . Tipo do script:Anti Multiclienting XP Protocolo (versão do Tibia): 8.60 Servidor utilizado: Alissow Server 0.4.1 (Retirei isto do Otservlist,afinal de contas,sou tutor do OT :smile_positivo:) Nível de experiência: Nem baixa nem intermediária. Adicionais/Informações:Como o servidor é War Enforced,existem players matando o "MC" e pegando xp absurda onde o lvl minimo do servidor é 160,quando o player morre,ele perde toda xp que ele conseguiu,e o top está lvl 350!! seguidos de outros 20~ characters lvl 340,330,320,até 230. A idéia do script é PERMITIR QUE OS PLAYERS LOGUEM 2 MCS,então scripts anti-mc não me são uteis,ao invés disso,eu preciso de um script que quando o player mate alguém com o mesmo IP ele leve uma punição e volte para o lvl 160,ou então que ele perca BASTANTE XP (Mesmo que o character fique LVL 1:lol²: ,assim ele aprende a não usar mais mc.(Se possível me digam oque editar,por exemplo se eu optar por deixar o player lvl 160,ou que ele perca muita xp,voltando assim mais lvls que o lvl minimo,ou até mesmo pouca XP.) P.S: Eu já revirei o Xtibia (Busca) e o :google_lt: E não consegui O Script por favor,me ajudem :confused: , eu já vi esta função em um enforced que eu joguei,eu matei um amigo que estava em lan e perdi um pouco de XP. Obrigado
  18. Salve Galera! Quer que seu tópico favorito apareça aqui? Use o botão "Eu Recomendo"! Clique aqui e saiba como. Hoje é dia de XTibia Recomenda e de votação para o próximo finalista do Projeto do Mês! Como vocês já devem ter visto na enquete da semana anterior, o primeiro finalista será o Damarium Alternative Server, parabéns a eles, que receberam um total de 27 votos. Vale lembrar que os projetos que não foram re-Recomendados esta semana não aparecerão na enquete. Além do projeto do mês tivemos uma participação muito boa na área de scripting, e selecionei belos tópicos para aparecerem aqui. Let's Go! XTibia Recomenda Os melhores tópicos recomendados por vocês! Projetos: (Dpo) Recruta ! (Concorrente à Projeto do Mês) World Of Digimon Online. (Wodo) - Are You A Digi-Chosen? (Concorrente à Projeto do Mês) (Recrutamento) Arghor Alternative Tibia Server (Concorrente à Projeto do Mês) Damarium Alternative Server (1º Finalista do Projeto do Mês) Forsaken - Ots (Concorrente à Projeto do Mês) Cstibia (Concorrente à Projeto do Mês) Concursos: Mapa Da Semana #2 - NÃO DEIXEM DE PARTICIPAR! Scripting: Scripts Para Pokemon Online (Spell) Circle Of Fire (Talkaction) System Moves (15/151) Scripts Para Pokemon Online Matar Player E Tirar Coração Domanasecond(Cid, Quanty, Delay) / Dohealthsecond(Cid, Quanty, Delay) Npc Pokemoncollector Funcionando Reset System - Full Dicas: (Downloads) Não Caia Na Fraude Do Falso Scan Mapping: (Aula#5) Rpg Damarium Show-Off Websites: (Apostila) Html É isso galera, não deixem de votar!
  19. Título auto-explicativo. Postem aqui todos os bugs que vocês encontrarem no Real Server, desenvolvido pelo Doindin. Bugs de mapa: Localização (X;Y;Z): Fale o que precisar sobre o bug: Bugs de scripts (Creaturescripts, Talkaction, Glovalevents, e etc). Se o bug é nas pastas Creaturescripts, Talkaction, Glovalevents: Arquivos que se encontra o bug: qual a codificação dentro do arquivo que está fazendo o bug acontecer: e poste o que precisar sobre o bug: Outros tipos de bugs, podem postar aqui mesmo, vlw.
  20. é uma backpack que irá possuir o nome do player, onde o só quem pode abrir/mover a backpack é ele. •Crie um arquivo lua com o nome de owner, na pasta data/actions function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.actionid ~= 3070 then if isInArray({1988, 2365}, itemEx.itemid) then doItemSetAttribute(itemEx.uid, "aid", 3070) doItemSetAttribute(itemEx.uid, "uid", getPlayerGUID(cid) + 1000) doItemSetAttribute(itemEx.uid, "name", getItemInfo(itemEx.itemid).name .. " that belongs to ".. getCreatureName(cid) .. ".") doRemoveItem(item.uid) else doPlayerSendCancel(cid, "Sorry, not possible.") end else doPlayerSendCancel(cid, "Sorry, not possible.") end return true end •Em action.xml adicione: <action itemid="4851" event="script" value="owner.lua"/> •Em action.xml novamente, adicione: <action actionid="3070" event="script" value="backpack.lua"/> •Na pasta data/actions crie um arquivo com o nome backpack.lua function onUse(cid, item, fromPosition, itemEx, toPosition) if item.actionid == 3070 then if item.uid ~= getPlayerGUID(cid) + 1000 then doPlayerSendCancel(cid, "Sorry, this backpack doesn't belong to you.") return true end end end •Editando o script Escolha qual backpack, que irá usar o script: if isInArray({1988, 2365}, itemEx.itemid) then Use o item id 4851 em sua backpack #Creditos >JDB| |OtLand
  21. cariocaenois

    Site

    Boa tarde. Estou eu aqui de novo, mas dessa vez para pedir um script de site para um ot 8.54. Como eu prefiro que os players criem pelo account manager mesmo, não precisa ser um site com account maker. Agradeço desde já.
  22. Eu preciso do action de quando vc aperta em 14 alavancas diferentes e depois uma unica ela faz desaparecer 2 pedras por 30 minutos, e depois todas as alavancas mudam para o id 1945 novamente ( sem apertar ) e as pedras parecem IDs: Alavanca sem apertar : 1945 Alavanca apertada : 1946 Stone: 1304 Eu uso esse script: local wall1pos = {x=458, y=1386, z=11, stackpos=1} local wall2pos = {x=459, y=1386, z=11, stackpos=1} local leverpos1 = {x=450, y=1412, z=11, stackpos=1} local leverpos2 = {x=454, y=1385, z=12, stackpos=1} local leverpos3 = {x=493, y=1390, z=12, stackpos=1} local leverpos4 = {x=460, y=1412, z=13, stackpos=1} local leverpos5 = {x=457, y=1419, z=12, stackpos=1} local leverpos6 = {x=481, y=1407, z=13, stackpos=1} local leverpos7 = {x=481, y=1418, z=12, stackpos=1} local leverpos8 = {x=481, y=1387, z=11, stackpos=1} local leverpos9 = {x=498, y=1381, z=13, stackpos=1} local leverpos10 = {x=450, y=1405, z=13, stackpos=1} local leverpos11 = {x=496, y=1402, z=14, stackpos=1} local leverpos12 = {x=494, y=1383, z=11, stackpos=1} local leverpos13 = {x=453, y=1371, z=11, stackpos=1} local leverpos14 = {x=494, y=1408, z=12, stackpos=1} function onUse(cid, item, frompos, item2, topos) local wall1 = getThingfromPos(wall1pos) local wall2 = getThingfromPos(wall2pos) local lever1 = getThingfromPos(leverpos1) local lever2 = getThingfromPos(leverpos2) local lever3 = getThingfromPos(leverpos3) local lever4 = getThingfromPos(leverpos4) local lever5 = getThingfromPos(leverpos5) local lever6 = getThingfromPos(leverpos6) local lever7 = getThingfromPos(leverpos7) local lever8 = getThingfromPos(leverpos8) local lever9 = getThingfromPos(leverpos9) local lever10 = getThingfromPos(leverpos10) local lever11 = getThingfromPos(leverpos11) local lever12 = getThingfromPos(leverpos12) local lever13 = getThingfromPos(leverpos13) local lever14 = getThingfromPos(leverpos14) if (lever1.itemid == 1946 and lever2.itemid == 1946 and lever3.itemid == 1946 and lever4.itemid == 1946 and lever5.itemid == 1946 and lever6.itemid == 1946 and lever7.itemid == 1946 and lever8.itemid == 1946 and lever9.itemid == 1946 and lever10.itemid == 1946 and lever11.itemid == 1946 and lever12.itemid == 1946 and lever13.itemid == 1946 and lever14.itemid == 1946 and wall1.itemid == 0) then doSendMagicEffect(wall1pos, 13) doSendMagicEffect(wall2pos, 13) doCreateItem(1304,1,wall1pos) doCreateItem(1304,1,wall2pos) doTransformItem(item.uid,1945) elseif (lever1.itemid == 1946 and lever2.itemid == 1946 and lever3.itemid == 1946 and lever4.itemid == 1946 and lever5.itemid == 1946 and lever6.itemid == 1946 and lever7.itemid == 1946 and lever8.itemid == 1946 and lever9.itemid == 1946 and lever10.itemid == 1946 and lever11.itemid == 1946 and lever12.itemid == 1946 and lever13.itemid == 1946 and lever14.itemid == 1946 and wall1.itemid == 1304) then doSendMagicEffect(wall1pos, 2) doSendMagicEffect(wall2pos, 2) doRemoveItem(wall1.uid,1) doRemoveItem(wall2.uid,1) doTransformItem(item.uid,1946) else doPlayerSendCancel(cid,"You have not pulled all 15 levers.") end return 1 end Mas esse nao some depois de 30 minutos e quando coloca 1 gp em cima da alavanca ela consta como se nao estivesse puxado.. Se alguem puder me ajudar agradeço muito =D vlw!!
  23. Sobre: Sou um dos programadores da equipe MachineScripts BR. Desenvolvemos softwares de qualidade para jogadores e hosters de MMORPG's. Como vocês devem saber, há uma grande dificuldade por parte de programadores em divulgar seus trabalhos para a grande rede, o que desvaloriza muito os softwares brasileiros, por isso, venho através desse post anunciar o Well Play e pedimos que baixem e comentem. O Well Play foi um grande investimento por parte de nossa equipe, onde ficamos mais de 2 anos o desenvolvendo, para garantir a maior eficiência e qualidade. Um software especializado para otimizar o funcionamento e jogabilidade de MMORPG's em seu computador, permitindo ao usuário escolher desde o game ao nível de precisão e configurações da otimização. Um amplo campo de configuração e diversidade de códigos abertos que permitem uma extrema compatibilidade. Software 100% gratuito (versão grátis) e nacional, sem qualquer limitação. Funcionamento do programa: O Well Play foi criado com uma ampla diversidade de códigos abertos, funções automatizadas e actions de ligação entre o servidor do game e os clientes (seu computador), mas somente estabilizando a conexão e buscando manter a conectividade ao máximo, assim a chance de LAG's e Freeze's, tornam-se mínimas. Deixamos bem claro que o programa não possui nenhuma ação de captura, nem de IP ou nenhum outro tipo de informação, até porque ele não tem ligação nenhuma com os servidores oficiais ou com os executáveis dos jogos, e nem mesmo têm qualquer campo para digitação ou gravação de dados. Well Play apenas age na conexão Cliente -> Servidor. Games compatíveis com Well Play 1.0: Tibia Global e OTServer's, Ragnarok e Private Server's, MU Global e Private Server's, WOW Blizzard e Private Server's, Perfect World e Private Server's, Priston Tale e Private Server's, Lineage e Private Server's. Download: http://baixarprogramasbrasil.com.br/downloadcenter/download-wellplay.html (Link cedido por BaixarProgramasBrasil.com.br) Imagem: http://clube.baixarprogramasbrasil.com.br/hostimg/images/wellplay.png Scan: http://www.virscan.org/report/3f10c9039f86c9f19f96b42d733b86ed.html A credibilidade e confiança dos usuários, vamos conquistar aos poucos... Mas podemos garantir, que somos uma equipe séria e criamos o programa com o único intuito de ajudar aos jogadores e tentar buscar uma maior valorização do software nacional. Pedimos apenas um voto de confiança. Podem confiar! Garantimos! Baixem e comentem!
  24. Ae gente , queria um script que quando você diz Auto Destructiono player solta uma explosão,com o efeito do Exevo gran mas flam,que bato dano de fisico,e nisso ele tome dano também. Agradeço desde já.
  25. Tipo do script:spell ou talkaction Protocolo (versão do Tibia): 8.50 Servidor utilizado: themere v1.0 Nível de experiência: na versao 8.50 mediano Adicionais/Informações: Bom queria uma spell que se transformarce em uma certa outfite e aumentase hp e mana durante a transformação por exemplo tenho 500 de hp e 1000 de mana quando transformar tenho 600 de hp e 1100 de mana até o fim dela, queria tambem que adicionase skill, ml e speed, em talk action se for possivel gostaria sem tempo de transformação e que tivesse um comando pra reverter que nem dbz, Obrigado : zaton Obs : http://www.xtibia.com/forum/topic/130269-spell-transformar/ esse é perfeito so que é 8.54 e a fuction addOutfitCondition(sys, outfit) nao funfa na minha versao
×
×
  • Criar Novo...