Ir para conteúdo

Vodkart

Herói
  • Total de itens

    3406
  • Registro em

  • Última visita

  • Dias Ganhos

    113

Tudo que Vodkart postou

  1. Ele disse que é mulher?
  2. movements/script nome do script.lua function onStepIn(cid, item, position, fromPosition) local items,helmet,pos = {2335,2336,2337,2338,2339,2340,2341},2342,{x = 165, y = 54, z = 7} for i = 1, table.maxn(items) do if getPlayerItemCount(cid, items[i]) <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "você precisa ter as 7 pieces do ancient helmet.") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end end for i = 1, table.maxn(items) do doPlayerRemoveItem(cid,items[i], 1) end doPlayerAddItem(cid,helmet,1) doTeleportThing(cid, pos) return TRUE end movements.xml <movevent type="StepIn" uniqueid="13900" event="script" value="nome do script.lua"/> explicação: Você vai no Tile e coloca UniqueID = 13900 É um tile que teleporta,então você vai fazer o seguinte,você vai colocar um TP em cima desse tile porém não coloca as coordenada de posição na propriedade desse TP porque o próprio tile vai teleportar. ai você vai no script do tile que eu fiz e edita a pos para onde ele vai,no caso está configurado para: {x = 165, y = 54, z = 7}
  3. passa o id dos 7 items e o id do helmet
  4. sim é possível fazer com que remova os 7 items =]
  5. huiHUSiushiushuiHUIShsUsui mto boba (: Vish, foi quotado, será torpe para toda a eternidade... Sinto muito, meu caro. pow velho...faça-me o favor né? me quotar para ficar falando essas besteira
  6. beleza no caso é melhor testar com players,as vezes com os chars GOD pode dar algum bug
  7. você executa isso na sua database no Sqlite: ALTER TABLE `guilds` ADD `points` INT(11) NOT NULL DEFAULT '0'; em lib/050-function adiciona: function getGuildPoints(cid) local check = db.getResult("SELECT `points` FROM `guilds` WHERE `id` = " .. getPlayerGuildId(cid) .. ";") return check:getDataInt("points") <= 0 and 0 or check:getDataInt("points") end function addGuildPoints(cid,amount) db.executeQuery("UPDATE `guilds` SET `points` = "..getGuildPoints(cid).."+"..amount.." WHERE `guilds`.`id` = "..getPlayerGuildId(cid)) end function removeGuildPoints(cid,amount) db.executeQuery("UPDATE `guilds` SET `points` = "..getGuildPoints(cid).."-"..amount.." WHERE `guilds`.`id` = "..getPlayerGuildId(cid)) end function setGuildPoints(cid,value) db.executeQuery("UPDATE `guilds` SET `points` = "..value.." WHERE `guilds`.`id` = "..getPlayerGuildId(cid))end agr a talkaction: points_guild.lua function onSay(cid, words, param) local t = { [0] = {150,10}, [1] = {200,20}, [2] = {250,25} } if getPlayerGuildId(cid) and getPlayerGuildLevel(cid) == GUILDLEVEL_LEADER then local count = 0 for k, v in pairs(t) do if getGuildPoints(cid) == k then local lista = db.getResult("SELECT `name`, `rank_id` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = " .. getGuildId(getPlayerGuildName(cid)) .. ");") if(lista:getID() ~= -1) then repeat if getPlayerLevel(getPlayerByName(lista:getDataString("name"))) >= v[1] then count = count + 1 end until not lista:next() if count >= v[2] then addGuildPoints(cid,1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabens,sua guild ganhou um ponto por possuir "..count.." Players level "..v[1].." ou mais.") doBroadcastMessage("a Guild ".. getPlayerGuildName(cid) .." acabou de receber um ponto por possuir "..count.." Players level "..v[1].." ou mais") return true else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua guild precisa de "..v[2].." players level "..v[1].." ou mais") return true end lista:free() end end end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "você precisa ser lider de uma guild") end return true end explicação: local t = { [0] = {150,10}, [1] = {200,20}, [2] = {250,25} } [0] no caso é a quantidade de pontos que a guild tem {level,quantidade de player} está configurado assim: se a guild possuir 0 pontos ela tem que conseguir 10 player level 150+ para ganhar 1 ponto se a guild possuir 1 ponto ela tem que conseguir 20 player level 200+ para ganhar 1 ponto se a guild possuir 2 ponto ela tem que conseguir 25 player level 250+ para ganhar 1 ponto ai vc edita e adiciona + ok
  8. assim eu também acho melhor
  9. até dá para fazer,só que não tem nexo. por exemplo tem 10 jogadores level 150+ na guild Dream ai o guild executa o comando e ganha 1 ponto e depois? ele vai poder usar o comando até quando? ou o comando só vai ser dado 1x por dia?...
  10. http://www.xtibia.com/forum/topic/141633-actioncs-item-ou-potion-de-double-exp/
  11. hoho dokmos procurei esse script hoje (:
  12. http://www.lua.org/manual/5.1/pt/manual.html#5.4.1 http://www.xtibia.com/forum/topic/153909-material-de-apoio-vii/ http://www.xtibia.com/forum/topic/150521-material-de-apoio-vi/ http://www.xtibia.com/forum/topic/148779-material-de-apoio-v/ http://www.xtibia.com/forum/topic/147315-material-de-apoio-iv/ http://www.xtibia.com/forum/topic/146683-material-de-apoio-iii/ http://www.xtibia.com/forum/topic/146434-material-de-apoio-i/ http://www.xtibia.com/forum/topic/146589-material-de-apoio-ii/ http://www.xtibia.com/forum/topic/133857-tabelas/ http://www.xtibia.com/forum/topic/152045-usando-tabelas-basico/ http://www.xtibia.com/forum/topic/156960-lua-demo/
  13. huiHUSiushiushuiHUIShsUsui mto boba (:
  14. Humilha não poxa HAUHUAHUAUHA nada pessoal...ihsiuHIUSHSiuhsiusHIUSHUSIS
  15. para que usar o for ali? se só tem um efeito...
  16. http://www.xtibia.co...ip-por-lavanca/ @UP alguém não foi para aula hoje né malandrinha acordo tarde pelo jeito
  17. Vodkart

    Ontalk

    acho que teria que editar as source para fazer essa função
  18. ah isso mesmo iahiuhaiua eu inverti tudo vlw ai cara abraços
  19. é que eu esqueci... false é para não se mover né? true é para mover normalmente acho kk
  20. acho que não existe essa função no serve 8.0 testei em 8.54 +
  21. tenta usar addEvent local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 43) function getCombatFormulas(cid, lv, maglv) local formula_min = -((lv*2 + maglv*6) * 0.5) local formula_max = -((lv*2 + maglv*6) * 1.5) if(formula_max < formula_min) then local tmp = formula_max formula_max = formula_min formula_min = tmp end return formula_min, formula_max end setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas") 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, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 3, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) setCombatArea(combat1, area1) local function onCastSpell1(parameters) doCombat(parameters.cid, combat1, parameters.var) end function onCastSpell(cid, var) if exhaustion.check(cid, 23069) == FALSE then local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 2000, parameters) doCreatureSetNoMove(cid, false) addEvent(doCreatureSetNoMove,2000,cid, true) exhaustion.set(cid, 23069, 7) else doPlayerSendCancel(cid, "Cooldown[" ..exhaustion.get(cid, 23069).."]") end return true end
  22. é mas não tem como eu acho,talvez dê para usar aquela função onOutfit(cid, old, current) mas desconheço
  23. usou aquele meu lá embaixo? só editar o script function onSay(cid, words, param) local amount = 1 -- qnto de skill vai ser dado local skill = { ["first"] = {id = 0,limit = 200,price = 2000,vocations = {1,2,3,4,5,6,7,8}} ["club"] = {id = 1,limit = 200,price = 2000,vocations = {1,2,3,4,5,6,7,8}} ["sword"] = {id = 2,limit = 160,price = 7000,vocations = {4,8}} ["axe"] = {id = 3,limit = 160,price = 7000,vocations = {4,8}} ["distance"] = {id = 4,limit = 170,price = 8000,vocations = {3,7}} ["shield"] = {id = 5,limit = 180,price = 10000,vocations = {1,2,3,4,5,6,7,8}} } local magic = {limit = 200,price = 8000,vocations = {1,2,5,6}} if (param == "magic") then if getTilePzInfo(getCreaturePosition(cid)) == FALSE then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"você precisa estar em protection zone.") elseif getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler.") elseif not isInArray(magic.vocations, getPlayerVocation(cid)) then return doPlayerSendCancel(cid, "Você não pode comprar essa skill.") elseif getPlayerMagLevel(cid) >= magic.limit then return doPlayerSendCancel(cid, "Você já atingiu o número máxido de magic !.") elseif doPlayerRemoveMoney(cid, magic.price) == FALSE then return doPlayerSendCancel(cid, "Você precisa de "..magic.price.." gps para comprar essa skill!.") end return doPlayerSetMagic(cid, getPlayerMagLevel(cid)+amount) end if not skill[param] then return doPlayerSendCancel(cid,"Você precisa digitar ex: !comando Nome_da_skill.") elseif getTilePzInfo(getCreaturePosition(cid)) == FALSE then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"você precisa estar em protection zone.") elseif getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler.") elseif not isInArray(skill[param].vocations, getPlayerVocation(cid)) then return doPlayerSendCancel(cid, "Você não pode comprar essa skill.") elseif getPlayerSkillLevel(cid,skill[param]) >= skill[param].limit then return doPlayerSendCancel(cid, "Você já atingiu o número máxido de skills!.") elseif doPlayerRemoveMoney(cid, skill[param].price) == FALSE then return doPlayerSendCancel(cid, "Você precisa de "..skill[param].price.." gps para comprar essa skill!.") end return doPlayerSetSkill(cid, skill[param].id, getPlayerSkillLevel(cid, skill[param].id)+amount) end n esquece de adicionar na lib aquelas funções function doPlayerSetSkill(cid, skill, amount) local pid = getPlayerGUID(cid) doRemoveCreature(cid,true) db.executeQuery("UPDATE `player_skills` SET `value` = ".. amount .." WHERE `player_id` = ".. pid .. " and `skillid` = ".. skill ..";") return TRUE end function doPlayerSetMagic(cid, amount) local pid = getPlayerGUID(cid) doRemoveCreature(cid,true) db.executeQuery("UPDATE `players` SET `maglevel` = " .. amount .. " WHERE `id` = "..pid) return TRUE end
  24. @UP só adicionar as storages em outfits.xml
  25. nem lembrava desse script uahuhauaua mas eu fiz um topico pra vocations outfit tbm .-. http://www.xtibia.com/forum/topic/152827-vocation-oufit/
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...