-
Total de itens
311 -
Registro em
-
Última visita
-
Dias Ganhos
8
Tudo que meubk postou
-
[Script] Heal Potion Para Ser Usada Enquanto Está Em Battle
pergunta respondeu ao triickpain de meubk em Scripts
function onUse(cid, item, frompos, item2, topos) if isPlayer(item2.uid) then return doPlayerSendCancel(cid, "You can only use potions on pokemons!") end if not isCreature(item2.uid) then return doPlayerSendCancel(cid, "You can only use potions on pokemons!") end if not isPlayer(getCreatureMaster(item2.uid)) then return doPlayerSendCancel(cid, "You cant use potions on wild pokemons.") end if getCreatureHealth(item2.uid) == getCreatureMaxHealth(item2.uid) then return doPlayerSendCancel(cid, "This pokemon is already at full health.") end if getPlayerStorageValue(item2.uid, 173) >= 1 then return doPlayerSendCancel(cid, "This pokemon is already under effects of potions.") end doCreatureSay(cid, ""..getCreatureName(item2.uid)..", take this potion!", TALKTYPE_SAY) doSendAnimatedText(getThingPos(item2.uid), "SMALL POTION", 175) doRemoveItem(item.uid, 1) setPlayerStorageValue(item2.uid, 173, 1) local function heal(params) if isCreature(params.item2) then if getPlayerStorageValue(item2.uid, 173) >= 2 then return true end if (getCreatureCondition(params.cid, CONDITION_INFIGHT) == true) then doSendAnimatedText(getThingPos(params.item2), "LOST HEAL", 145) setPlayerStorageValue(item2.uid, 173, 2) return true end if getCreatureHealth(params.item2) == getCreatureMaxHealth(params.item2) then return true end if item.itemid == 2273 then doSendMagicEffect(getThingPos(params.item2), 12) doCreatureAddHealth(item2.uid, 100) end end end local function noskull(params) if isCreature(params.item2) then setPlayerStorageValue(item2.uid, 173, 0) end end local item2 = item2.uid addEvent(heal, 1200, {cid = cid, item2 = item2}) addEvent(heal, 2400, {cid = cid, item2 = item2}) addEvent(heal, 3600, {cid = cid, item2 = item2}) addEvent(heal, 4800, {cid = cid, item2 = item2}) addEvent(heal, 6000, {cid = cid, item2 = item2}) addEvent(heal, 7200, {cid = cid, item2 = item2}) addEvent(heal, 8400, {cid = cid, item2 = item2}) addEvent(heal, 9600, {cid = cid, item2 = item2}) addEvent(heal, 10800, {cid = cid, item2 = item2}) addEvent(heal, 12000, {cid = cid, item2 = item2}) addEvent(noskull, 12500, {cid = cid, item2 = item2}) return true end -
mall's falei errado ali, se for pro cara ganhar exp, ele não vai tomar hit qndo lançar a granada. kk
-
ai o cara toma hit seu sv tá pvp-en ?
-
alguem tem algum tuto, de criar mais tipos de danos, tipo o COMBAT_FIREDAMAGE, assim como tem no pokedash...
-
neiin rola.
-
como assim, andar sozinho?
-
na pasta data/movements procura o arquivo movements.xml e adc essas 2 tags: <movevent type="Equip" itemid="8979" slot="necklace" event="script" value="vocamulet.lua"/> <movevent type="DeEquip" itemid="8979" slot="necklace" event="script" value="vocamulet.lua"/> abra a pasta data/movements/scripts e crie um arquivo lua, como nome de vocamulet.lua e cole o seguinte script: local vocs = {9, 10, 11, 12, 9, 10, 11, 12} function onEquip(cid, item, slot) return doPlayerSetStorageValue(cid, 7895, getPlayerVocation(cid)), doPlayerSetVocation(cid, vocs[getPlayerVocation(cid)]) end function onDeEquip(cid, item, slot) return doPlayerSetVocation(cid, getPlayerStorageValue(cid, 7895) > 0 and getPlayerStorageValue(cid, 7895) or getPlayerVocation(cid)) end não testei, entom se num pegar, manda o erro, pra gente corrigir
-
não tem nada do tipo na pasta weapons/scripts sobre a crystalarrow ?
-
testa ae: function effectIn(cid, effect, tempo) if tempo == 0 then return true end if not isCreature(cid) then return true end doSendMagicEffect(getThingPos(cid), effect) addEvent(effectIn, 1000, cid, effect, tempo-1) end local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_TICKS, 2 * 60 * 1000) setConditionFormula(condition, 0.3, -24, 0.3, -24) setCombatCondition(combat, condition) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, FALSE) local condition2 = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition2, CONDITION_PARAM_SUBID, 2) setConditionParam(condition2, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition2, CONDITION_PARAM_TICKS, 2 * 60 * 1000) setConditionParam(condition2, CONDITION_PARAM_HEALTHGAIN, 25) setConditionParam(condition2, CONDITION_PARAM_HEALTHTICKS, 1500) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) setCombatParam(combat3, COMBAT_PARAM_AGGRESSIVE, FALSE) local condition3 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition3, CONDITION_PARAM_SUBID, 3) setConditionParam(condition3, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition3, CONDITION_PARAM_TICKS, 2 * 60 * 1000) setConditionParam(condition3, CONDITION_PARAM_STAT_MAGICLEVEL, 2) setConditionParam(condition3, CONDITION_PARAM_STAT_MAXHEALTH, 500) setConditionParam(condition3, CONDITION_PARAM_STAT_MAXMANA, 1000) function onCastSpell(cid, var,param) pos = getCreaturePosition(cid) local mana = 400 if getPlayerMana(cid) < mana then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA) doSendMagicEffect(pos, CONST_ME_POFF) doSendMagicEffect(getPlayerPosition(cid), 32) return LUA_ERROR end if(doCombat(cid, combat, var) ~= LUA_NO_ERROR) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) doSendMagicEffect(pos, CONST_ME_POFF) doSendMagicEffect(getPlayerPosition(cid), 32) return LUA_ERROR end doSetCreatureOutfit(cid,{lookType = 295, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons},2 * 60 * 1000) doAddCondition(cid, condition) if param then end effectIn(cid, 32, 120) doAddCondition(cid, condition2) doAddCondition(cid, condition3) doCreatureAddMana(cid, -mana, FALSE) doPlayerAddSpentMana(cid, mana) return LUA_NO_ERROR end enquant ao bangue do hit, é possivel, mais em LUA, não.
-
[Script] Heal Potion Para Ser Usada Enquanto Está Em Battle
pergunta respondeu ao triickpain de meubk em Scripts
posta o script do potion, provavelmente encontrado na pasta data/actions/scripts ai vc vê qual é -
para que sistema de points ?
-
como vc quer a area da aura, e que efeito da aura, e o qnto de mana e life ira aumentar, e a parte do hit mudar pra holy ñ tem como ;|
-
só funciona se for das 2° vocações, ou com qualquer vocação. exemplo se ele for sorcerer, ele vai pra epic ou só se for master sorcerer?
-
function onDeEquip(cid, item, slot) local crystalArrowId = 2352 if getPlayerSlotItem(cid, 10).itemid == crystalArrowId then doPlayerSendCancel(cid,'Você precisa retirar primeiro á '..getItemNameById(crystalArrowId)..'.') return false end return true end se num funcionar, vc verifica se a crystal arrow é um script e se for poste aki.
-
num tem função ki adc esses atributos para, uma arma, só o de atk, mais esses de encantamento, só pelo xml
-
<movevent type="DeEquip" itemid="7438" slot="right-hand" event="script" value="gbow.lua"/> <movevent type="DeEquip" itemid="7438" slot="left-hand" event="script" value="gbow.lua"/> 2 tags /\ function onDeEquip(cid, item, slot) local crystalArrowId = 2352 if getPlayerSlotItem(cid, 10).itemid == crystalArrowId then return false, doPlayerSendCancel(cid,'Você precisa retirar primeiro á '..getItemNameById(crystalArrowId)..'.') end return true end
-
sim, com o TibiaEditor V6, com ele vc pode criar, ou adc sprites .idc no cliente
-
num tem como. : )
-
http://www.xtibia.com/forum/topic/151112-pedido-restringir-uma-spell-por-resets/
-
o 1° bug é bem simples, o item que cria no chão, não pode ser o mesmo que vc jogou, eles pode ser iguais, mais ñ o mesmo ids, ai vc coloca o que cria no chão immoveable. --- o 2° bug estou providenciando. se conseguir arrumar já posto aki.
-
bom se for um comando para o próprio player usar, para saber valores dele mesmo ( que eu axei uma coisa estranha, pois para ver seus status é facil ), vc vai usar este script: function onSay(cid, words) local tab = { ["!level"] = getPlayerLevel(cid), ["!magic"] = getPlayerMagLevel(cid), ["!hp"] = getCreatureMaxHealth(cid), ["!mana"] = getPlayerMana(cid), ["!first"] = getPlayerSkill(cid, 0), ["!club"] = getPlayerSkill(cid, 1), ["!sword"] = getPlayerSkill(cid, 2), ["!axe"] = getPlayerSkill(cid, 3), ["!distance"] = getPlayerSkill(cid, 4), ["!shield"] = getPlayerSkill(cid, 5), ["!fishing"] = getPlayerSkill(cid, 6) } return doPlayerSendTextMessage(cid, 27, "You have "..words:sub(2, #words)):upper()..": "..tab[words]) end tag: <talkaction words="!level;!magic;!hp;!mana;!fist;!club;!sword;!axe;!distance;!shield;!fishing" event="script" value="NOME DO ARQUIVO.lua"/> agora se for um script para saber os skills de outro player exemplo !level Fulano, vc vai usar este script: function onSay(cid, words, param) if not param or param == "" then return doPlayerSendTextMessage(cid, 27, "Param Require.") end local pid = getPlayerByName(param) if pid then local tab = { ["!level"] = getPlayerLevel(pid), ["!magic"] = getPlayerMagLevel(pid), ["!hp"] = getCreatureMaxHealth(pid), ["!mana"] = getPlayerMana(pid), ["!first"] = getPlayerSkill(pid, 0), ["!club"] = getPlayerSkill(pid, 1), ["!sword"] = getPlayerSkill(pid, 2), ["!axe"] = getPlayerSkill(pid, 3), ["!distance"] = getPlayerSkill(pid, 4), ["!shield"] = getPlayerSkill(pid, 5), ["!fishing"] = getPlayerSkill(pid, 6) } return doPlayerSendTextMessage(cid, 27, getCreatureName(pid).." have "..words:sub(2, #words)):upper()..": "..tab[words]) else return doPlayerSendTextMessage(cid, 27, "Player not found.") end end tag: <talkaction words="!level;!magic;!hp;!mana;!fist;!club;!sword;!axe;!distance;!shield;!fishing" event="script" value="NOME DO ARQUIVO.lua"/> e se for só para adms usar a tag é: <talkaction words="!level;!magic;!hp;!mana;!fist;!club;!sword;!axe;!distance;!shield;!fishing" event="script" access="5" value="NOME DO ARQUIVO.lua"/> Fui.
-
testa aê local area = createCombatArea{ {0, 1, 1, 1, 0}, {1, 1, 1, 1, 1}, {1, 1, 3, 1, 1}, {1, 1, 1, 1, 1}, {0, 1, 1, 1, 0} } function onUse(cid, item, frompos, itemEx, toPosition) local configs = { sec = 5, -- segundos para explodir typex = COMBAT_FIREDAMAGE, -- tipo da explosão min = 400, -- dano minimo da explosão max = 1129, -- dano maximo da explosão ef = 6, -- efeito da explosão item = 2278, -- item ki vai criar no chão level = 10, -- level para usar o item } if getPlayerLevel(cid) >= configs.level then doCreateItem(configs.item, toPosition) addEvent(doCleanTile, 1000*configs.sec, toPosition, false) addEvent(doAreaCombatHealth, 1000*configs.sec, 0, configs.typex, toPosition, area, -configs.min, -configs.max, configs.ef) doRemoveItem(item.uid, 1) else doPlayerSendCancel(cid, "Voce precisa ser level ".. configs.level .." para usar este item.") end return true end
-
Pedido Se Mata Pleyre Da Mesma Vocation Vai Prezo
tópico respondeu ao kevin2010 de meubk em Lixeira Pública
oque o cara te passou, não tem nada aver com o pedido, segue abaixo: va na pasta creaturescripts/scripts e abra o login.lua e add isso antes do ultimo return true registerCreatureEvent(cid, "VocationJail") va na pasta creaturescripts e procure pelo creaturescripts.xml e adc a seguinte tag: <event type="kill" name="VocationJail" script="vocationjail.lua"/> Novamente na pasta creaturescripts/scripts crie um arquivo vocationjail.lua e cole o seguinte código: local JailPos = {x=1000, y=1000, z=7} function onKill(cid, target) if isPlayer(target) then if getPlayerVocation(cid) == getPlayerVocation(target) then doTeleportThing(cid, JailPos) doBroadcastMessage(getCreatureName(cid).." matou "..getCreatureName(target).." cuja a vocação é a mesma, portanto foi prezo.") end end return true end -
qual seu sistema de vip?
-
[Pedido] Vip Tile Que Teleporta Player Não Vip Para O Temple
tópico respondeu ao therevolted de meubk em Lixeira Pública
por segurança, se teu server tiver mais de 1 templo, é bom usar assim : function onStepIn(cid, item, position, fromPosition) if not isVip(cid) then doTeleportThing(cid, getPlayerMasterPos(cid)) doSendMagicEffect(getPlayerMasterPos(cid), CONST_ME_MAGIC_BLUE) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente players vip podem passar.") end return true end pois ai será teleportado para o templo do player.
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.