Ir para conteúdo

SkyLigh

Lorde
  • Total de itens

    2183
  • Registro em

  • Última visita

  • Dias Ganhos

    23

Tudo que SkyLigh postou

  1. usa akele script que fica localizado em data / actions / scripts / liquids / potions.lua assim que e como eu uso . local config = { removeOnUse = "no", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {1300, 1301}, level = 50, vocations = {3, 4, 7, 8,12,11}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {1300, 1500}, level = 80, vocations = {4, 8,12}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {1000, 1500}, level = 130, vocations = {4, 8,12}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {200, 300}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {150, 200}, level = 50, vocations = {1, 2, 3, 5, 6, 7,11,9,10}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {1500, 1750}, level = 80, vocations = {1, 2, 5, 6,9,10}, vocStr = "sorcerers and druids"}, -- great mana potion [7439] = {empty = 7439, splash = 7, mana = {8000, 10500}, level = 80, vocations = {1, 2, 5, 6,9,10}, vocStr = "sorcerers and druids"}, -- super mana potion [8472] = {empty = 7635, splash = 3, health = {400, 600}, mana = {230, 380}, level = 80, vocations = {3, 7,11}, vocStr = "paladins"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) doTransformItem(item.uid, potion.empty) return TRUE end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return TRUE end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) return TRUE end doRemoveItem(item.uid, 0) doPlayerAddItem(cid, potion.empty, 0) doPlayerRemoveItem(cid, potion.empty, getPlayerItemCount(cid, potion.empty)) doPlayerAddItem(cid, potion.empty, getPlayerItemCount(cid, potion.empty)) return TRUE end
  2. o fast attack vai em data / xml / vocations.xml e procure por attackspeed quando menos o numero for mais rápido vai ser e o exausted n entendi
  3. va em data / actions / scripts / liquids / potions.lua e edite la
  4. duvida sanada reportado Para um superior
  5. duvida sanada reportado Para um superior
  6. tente assim n testei em data / movements / scripts / function onStepIn(cid, item, pos) local club = 20 -- quanto vai checkar if getPlayerSkill(cid,club) then doPlayerSendCancel(cid,"So player ou mais com 20 de skill em club pode usar") end return true end
  7. Havia 3 end's sendo que so havia um if e um function o certo e assim . n sei se vai so arrumei o erro .
  8. Poderia falar sobre a sua duvida ?
  9. SkyLigh

    Script De Quest

    testei aki e funciono . ele abre a caixa e recebe a msg . va em data / actions / scripts / e renome algum arquivo para chest.lua e adicione function onUse(cid, item, frompos, item2, topos) doPlayerPopupFYI(cid, "Obrigado por abrir a chest") end e dps em actions.xml <action actionid="7201" script="chest.lua"/>
  10. não entendi se você quer por area que va em todos os lugares ou so em 1 então fiz os 2 editei um aki rapidinho para você se for so em um lugar use assim va em data / weapons / scripts / e renome algum arquivo para star.lua e add w = { [1] = {ef = 36, sh = 3, dmg = COMBAT_FIREDAMAGE}, [2] = {ef = 42, sh = 28, dmg = COMBAT_ICEDAMAGE}, [3] = {ef = 45, sh = 38, dmg = COMBAT_POISONDAMAGE}, [4] = {ef = 17, sh = 31, dmg = COMBAT_DEATHDAMAGE}, [5] = {ef = 11, sh = 35, dmg = COMBAT_ENERGYDAMAGE}, [6] = {ef = 31, sh = 35, dmg = COMBAT_PHYSICALDAMAGE}, [7] = {ef = 49, sh = 37, dmg = COMBAT_HOLYDAMAGE} } function onUseWeapon(cid, var) min, max = 1500, 1500 -- dano minimo e maximo target = getCreatureTarget(cid) if target ~= 0 then wx = w[math.random(1, #w)] doSendDistanceShoot(getThingPos(cid), getThingPos(target), wx.sh) addEvent(doAreaCombatHealth, 100, cid, wx.dmg, getThingPos(target), 0, -min, -max, wx.ef) end return true end ele vai sempre para o player . em weapons.xml <wand id="2436" level="200" mana="13" min="1500" max="1500" type="earth" event="script" value="star.lua"> <vocation id="3"/> <vocation id="6"/> agora se for em area em mais de um lugar w = { [1] = {ef = 36, sh = 3, dmg = COMBAT_FIREDAMAGE}, [2] = {ef = 42, sh = 28, dmg = COMBAT_ICEDAMAGE}, [3] = {ef = 45, sh = 38, dmg = COMBAT_POISONDAMAGE}, [4] = {ef = 17, sh = 31, dmg = COMBAT_DEATHDAMAGE}, [5] = {ef = 11, sh = 35, dmg = COMBAT_ENERGYDAMAGE}, [6] = {ef = 31, sh = 35, dmg = COMBAT_PHYSICALDAMAGE}, [7] = {ef = 49, sh = 37, dmg = COMBAT_HOLYDAMAGE} } function onUseWeapon(cid, var) min, max = 1500, 1500 -- dano minimo e maximo target = getCreatureTarget(cid) if target ~= 0 then wx = w[math.random(1, #w)] doSendDistanceShoot(getThingPos(cid), getThingPos(target), wx.sh) addEvent(doAreaCombatHealth, 100, cid, wx.dmg, getThingPos(target), 0, -min, -max, wx.ef) return true end setCombatArea(combat1, createCombatArea(area1)) local area1 = { {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, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 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, 0}} --======================================= end ali onde ta 1 e aonde vai sair o atk e o 3 e a pos do player.
  11. va em data / creaturescripts / scripts / firstitems.lua
  12. duvida sanada reportado Para um superior
  13. @guizitog so você usar essa function if getPlayerLevel(cid) == 50 then end
  14. Local incorreto reportado Para um superior
  15. n e necessário esse tipo de post reportado por flood.
  16. Lock continua sem funcionar aki to testando em slayer 8.60 sera q e problema no sv?
  17. Luck em qual pasta coloca ele que tentei na mod e n consegui .
  18. Vá em>Pastadoot>Data>npc>Scripts crie um novo arquivo lua com o nome de Paint.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler)[/color][/b] [b][color="orange"]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[/color][/b] [b][color="orange"]function pintar(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local pokeball = {2222, 2651, 2653, 2220, 2655,11627,11618,11621,11624} for i = 1, #pokeball do if isInArray(pokeball, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) then if(doPlayerRemoveMoney(cid, parameters.price)) then local feet = getPlayerSlotItem(cid, CONST_SLOT_FEET) local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]")) doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/"))) doTransformItem(feet.uid, parameters.bola) selfSay('Bola Pintada!') else selfSay('Você não tem dinheiro suficiente!') end else selfSay('Coloque a pokebola correta no slot!') end return TRUE end npcHandler:resetNpc() return true end local frase = 'Deseja pintar sua pokebola para' local node1 = keywordHandler:addKeyword({'pintar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu faço as sequintes pinturas:\n-> pokeball: 50$\n->great ball: 80$\n->super ball: 120$\n->ultra ball: 150$\n->saffari ball: 150$\n->frozen ball: 175$\n->dark ball: 175$\n->love ball: 175$\n->golden ball: 175$'}) local node11 = node1:addChildKeyword({'pokeball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' pokeball?'}) node11:addChildKeyword({'yes'}, pintar, {price = 5000,bola = 2222}) node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node12 = node1:addChildKeyword({'great ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' great ball?'}) node12:addChildKeyword({'yes'}, pintar, {price = 8000,bola = 2651}) node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node13 = node1:addChildKeyword({'super ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' super ball?'}) node13:addChildKeyword({'yes'}, pintar, {price = 12000,bola = 2653}) node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node14 = node1:addChildKeyword({'ultra ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' ultra ball?'}) node14:addChildKeyword({'yes'}, pintar, {price = 15000,bola = 2220}) node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node15 = node1:addChildKeyword({'saffari ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' saffari ball?'}) node15:addChildKeyword({'yes'}, pintar, {price = 15000,bola = 2655}) node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node16 = node1:addChildKeyword({'frozen ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' frozen ball?'}) node16:addChildKeyword({'yes'}, pintar, {price = 17500,bola = 11627}) node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node17 = node1:addChildKeyword({'dark ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' dark ball?'}) node17:addChildKeyword({'yes'}, pintar, {price = 17500,bola = 11618}) node17:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node18 = node1:addChildKeyword({'love ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' love ball?'}) node18:addChildKeyword({'yes'}, pintar, {price = 17500,bola = 11621}) node18:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true}) local node19 = node1:addChildKeyword({'golden ball'},StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = frase..' golden ball?'}) node19:addChildKeyword({'yes'}, pintar, {price = 17500,bola = 11624}) node19:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})[/color][/b] [b][color="orange"]npcHandler:addModule(FocusModule:new()) Agora fazendo o xml . <?xml version="1.0" encoding="UTF-8"?> <npc name="Jack" walkinterval="35000000" script="paint.lua" floorchange="0" speed="0"> <health now="150" max="150"/> <look type="158" head="91" body="102" legs="83" feet="0"/> <parameters> <parameter key="message_greet" value="Ola, eu posso {pintar} bolas."/> <parameter key="message_farewell" value="Tchau! Volte sempre."/> <parameter key="message_idletimeout" value="Proximo ..."/> <parameter key="message_walkaway" value="Volte sempre que quiser!"/> </parameters> </npc>
  19. SkyLigh

    Alguem Pode

    Barzinho e pedido "NEWFAG"
  20. SkyLigh

    Script Ban

    @guhpk n e double ele so fez mais uma duvida la e tbm falo pra se puderem olhar aki . tome cuidado antes de reporta alguem .
  21. SkyLigh

    Chave Não Funciona

    como e de 2006 n sei se vai funcionar mais tente Link 1 : http://www.xtibia.com/forum/topic/16311-fazendo-1-porta-q-precise-de-key-para-abrila/ Link 2 : http://www.xtibia.com/forum/topic/16519-pedidocomo-abrir-portas-com-chave/
  22. SkyLigh

    2 Dúvidaaaass

    vai em data/xml abra o channels.xml e coloke <channel id="3" name="Rule Violations" logged="yes"/> tente assim talvez possa funcionar
  23. SkyLigh

    Script Ban

    Nao sei eu achei na net ele .
  24. SkyLigh

    Script Ban

    tente com esse. local default_comment = "" local default_lenght = 1 -- ban time in hours function onSay(cid, words, param) local parametres = string.explode(param, ",") if(parametres[1] ~= nil) then local accId = getAccountIdByName(parametres[1]) if(accId > 0) then local lenght = default_lenght local comment = default_comment if(parametres[2] ~= nil and tonumber(parametres[2]) > 0) then lenght = tonumber(parametres[2]) end if(parametres[3] ~= nil) then comment = parametres[3] end doAddBanishment(accId, lenght * 3600, 23, ACTION_BANISHMENT, comment, getPlayerGUID(cid), comment) local player = getPlayerByNameWildcard(parametres[1]) if(isPlayer(player) == TRUE) then doRemoveCreature(player) end else doPlayerSendCancel(cid, "Player with name " .. parametres[1] .. " doesn't exist.") end else doPlayerSendCancel(cid, "You must enter name.") end return true end /ban Nick - Banir O jogador de tempo predefinido /ban Nick,12 - Banir O jogador por 12 horas /ban Nick,35,AFK BOT - Banir jogador de 35 horas com o comentário "AFK BOT"
  • Quem Está Navegando   0 membros estão online

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