Ir para conteúdo

Snowsz

Héroi
  • Registro em

  • Última visita

Tudo que Snowsz postou

  1. Snowsz postou uma resposta no tópico em Suporte Tibia OTServer
    Queria saber se tem como usar um Npc de summon e como monstro também, pois estou pensando em uma coisa...
  2. Lol, ficou sem formatação, como... Desculpe, acho que foi o spoiler junto ao code que bugou... Sem spoiler: local conf = {} -- // config // --- conf.outfitSpeed = 250 -- outfit changer speed conf.outfitMale = {128, 129, 130, 131, 132, 133, 134, 143, 144, 145, 146, 151, 152, 153, 154, 251, 268, 273, 278, 289, 325} -- all male outfits conf.outfitFemale = {136, 137, 138, 139, 140, 141, 142, 147, 148, 149, 150, 155, 156, 157, 158, 252, 269, 270, 279, 288, 324} -- all female outfits -- // end // -- local condition_infight = createConditionObject(CONDITION_INFIGHT) setConditionParam(condition_infight, CONDITION_PARAM_TICKS, -1) function outfitChanger(tab) if isPlayer(tab[1]) then if getPlayerSex(tab[1]) == PLAYERSEX_FEMALE then outs = conf.outfitFemale else outs = conf.outfitMale end local outfit = { lookType = outs[math.random(1, #outs)], lookHead = math.random(1,133), lookBody = math.random(1,133), lookLegs = math.random(1,133), lookFeet = math.random(1,133), lookTypeEx = math.random(1,133), lookAddons = math.random(0,3)} doCreatureChangeOutfit(tab[1], outfit) tab[2].outfitChanger = addEvent(outfitChanger,conf.outfitSpeed, tab) end end backOutfit = {} local backOutfit = {} local storage = 38417 function onSay(cid, words, param, channel) if isCreature(cid) then local pidCheck = getPlayerStorageValue(cid, storage) if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return TRUE end local pid = getPlayerGUID(cid) if type(events[pid]) ~= "table" then events[pid] = {} end if (param == "start") then if (pidCheck == -1) then if (isPlayer(cid)) then end outBack = getCreatureOutfit(cid) backOutfit[pid] = outBack backOutfit[pid].lookType = outBack.lookType backOutfit[pid].lookAddons = outBack.lookAddons doPlayerSendCancel(cid, "Ai Que Loucuuura ") outfitChanger({cid, events[pid]}) doAddCondition(cid, condition_infight) doCreatureSetNoMove(cid, true) setPlayerStorageValue(cid, storage, 1) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você está com o DANCE ligado, digite !dance stop.") end elseif (param == "stop") then stopEvent(events[pid].outfitChanger) stopEvent(events[pid].messager) events[pid] = {} doCreatureChangeOutfit(cid, backOutfit[pid]) doRemoveCondition(cid, CONDITION_INFIGHT) doCreatureSetNoMove(cid, false) setPlayerStorageValue(cid, storage, -1) doPlayerSendCancel(cid, "Ai Que Loucuuura ") end else return true end return TRUE end
  3. O mais certo a se fazer é patentear suas sprites próprias, e pronto, se rippar, você decide o que fazer. PS: Este tópico não está na área correta, senhor moderador, pode move-lo? Não sei por que ainda não o moveu.
  4. Snowsz postou uma resposta no tópico em Suporte Tibia OTServer
    Fortrek do jeito que você falou o segundo script, pode fazer o server meio que bugado, o cara vai caçar oddish, encontra magmortar por exemplo...
  5. Larafaz, isso você modifica no vocations.xml Em cada vocação, só modificar isso: gainhpamount="1" Por isso: gainhpamount="0" Acho que isso pode ajudar.
  6. Bem, cara, modifiquei seu script, só que continua em talkaction, mas, não dará mais este erro(creio eu). Testa ai.
  7. Snowsz postou uma resposta no tópico em Suporte Tibia OTServer
    Então tente: {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, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 2, 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, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } Cara, é só você alterar os números, da uma olhada de tutoriais de scripting e você deve aprender facinho.

Informação Importante

Confirmação de Termo