Ir para conteúdo

Faisher

Banidos
  • Total de itens

    35
  • Registro em

  • Última visita

Tudo que Faisher postou

  1. @up: KylerXX and Xafterin -> same person. (Faisher). Haha
  2. Sorry to say this but ... XTIBIA is a hive of IDIOTS. @DirTh You are the best idiot on all XTibia, IM NOT MEXICAN, IM SPANISH ..
  3. Gringo is an expression that is used to denominate the mexican people, I am not mexican, I am spanish, then, BE QUIET PLEASE And I think the idea of a mine is pretty clear, you plant the mine and if someone steps on it, BOOM, it explodes. Remember this: Do not judge without knowing. br: Gringo é uma expressão que é usada para denominar o povo mexicano, eu não sou mexicana, eu sou espanhol, então, fique quieto por favor;) E eu acho que a idéia de uma mina é muito claro, que você planta da mina e os passos, se alguém sobre ele, BOOM, ele explode. Lembre-se disto: Não julgue sem saber.
  4. Yes, exactly. More comments PD: I forgot the movement script sorry! Movement: local mina = { [4444] = {delay = 1, -- seconds mindamage = -14434, maxdamage = -304343, damagetype = COMBAT_FIREDAMAGE} } function onStepIn(cid, item, position, fromPosition) local m = mina[item.actionid] local function boom(cid, min, max, damagetype, pos) -- COMBAT FUNCTION -- local area = { {x = pos.x+1, y = pos.y, z = pos.z}, {x = pos.x, y = pos.y+1, z = pos.z}, {x = pos.x-1, y = pos.y, z = pos.z}, {x = pos.x+1, y = pos.y+1, z = pos.z}, {x = pos.x-1, y = pos.y-1, z = pos.z}, {x = pos.x, y = pos.y-1, z = pos.z}, {x = pos.x+1, y = pos.y-1, z = pos.z}, {x = pos.x-1, y = pos.y+1, z = pos.z}, {x = pos.x, y = pos.y, z = pos.z} } for i = 1,#area do doAreaCombatHealth(0, damagetype, area[i], 0, min, max, 0) end return true end if getPlayerName(cid) == getItemAttribute(item.uid, "description") then return doPlayerSendCancel(cid, "This is your bomb.") end addEvent(boom, m.delay * 1000, cid, m.min, m.max, m.damagetype, position) doItemEraseAttribute(item.uid, "aid") return true end movements.xml <movevent type="StepIn" actionid="4444" event="script" value="mina.lua"/>
  5. Primeiro, va para actions / scripts e crie um arquivo chamado mina.lua e adhicionar o seguinte: function isWalkable(pos, creature, proj, pz)-- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function getTime(s) local n = math.floor(s / 60) s = s - (60 * n) return n, s end local items = { [2554] = { storagetime = 6423356224333, time = 13, aid = 4444 } } local bombstorage = 3847757422 function onUse(cid, item, fromPosition, itemEx, toPosition) -- Script by Xafterin local m = items[item.itemid] if m then if not isWalkable(toPosition, false, false, false) then return doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"You cannot throw the ".. getItemNameById(item.itemid) .." here!.") end if getTilePzInfo(getCreaturePosition(cid)) or getTilePzInfo(toPosition) then return doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"You cannot use this weapon in a protection zone!.") end local time = m.time if os.time()-getPlayerStorageValue(cid, m.storagetime)+1 <= time then minutes,seconds = getTime(time-(os.time()-getPlayerStorageValue(cid, m.storagetime))) return doPlayerSendTextMessage(cid, 27, "Wait "..seconds.." seconds.") end doItemSetAttribute(itemEx.uid, "aid", m.aid) doItemSetAttribute(itemEx.uid, "description", getPlayerName(cid)) setPlayerStorageValue(cid, m.storagetime, os.time()) doPlayerAddSkillTry(cid, 5, 1) end return true end Va para actions.xml <action itemid="2554" event="script" value="mina.lua" allowfaruse="1"/> Movement: local mina = { [4444] = {delay = 1, -- seconds mindamage = -14434, maxdamage = -304343, damagetype = COMBAT_FIREDAMAGE} } function onStepIn(cid, item, position, fromPosition) local m = mina[item.actionid] local function boom(cid, min, max, damagetype, pos) -- COMBAT FUNCTION -- local area = { {x = pos.x+1, y = pos.y, z = pos.z}, {x = pos.x, y = pos.y+1, z = pos.z}, {x = pos.x-1, y = pos.y, z = pos.z}, {x = pos.x+1, y = pos.y+1, z = pos.z}, {x = pos.x-1, y = pos.y-1, z = pos.z}, {x = pos.x, y = pos.y-1, z = pos.z}, {x = pos.x+1, y = pos.y-1, z = pos.z}, {x = pos.x-1, y = pos.y+1, z = pos.z}, {x = pos.x, y = pos.y, z = pos.z} } for i = 1,#area do doAreaCombatHealth(0, damagetype, area[i], 0, min, max, 0) end return true end if getPlayerName(cid) == getItemAttribute(item.uid, "description") then return doPlayerSendCancel(cid, "This is your bomb.") end addEvent(boom, m.delay * 1000, cid, m.min, m.max, m.damagetype, position) doItemEraseAttribute(item.uid, "aid") return true end movements.xml <movevent type="StepIn" actionid="4444" event="script" value="mina.lua"/>
  6. Yes, I did. But no is in my mind share it.
  7. function onUse(cid, item, frompos, item2, topos) local pos = getCreaturePosition(cid) doTeleportThing(cid, {x= pos.x, y=pos.y-3, z=pos.z}) end Use this script and test. You cant put uid, uid its the thing, in this case, cid. And you can not make global calls without first add a "local" to the script. If you make globalcalls without adding a local, sometimes can get errors.
  8. Here`s a video about the Pokemon Essence - Nick system. More information in the video. http://www.youtube.com/watch?v=P83co5RT1mk Comments!
  9. You use a "boton" (item use with..) and you do not need stones, because on the normal pokemon all pokemon dont needs stone to evolve, bump
  10. Maybe this is useful, http://www.xtibia.com/forum/topic/148141-pokemon-teleportation-of-summons/
  11. This is my evolve system (Pokemon Essence Evolve system), this system do not use stones, the system checks the pokemon level and if the pokemon can be able to evolve. This system has been configured for all pokemons and the levels and the evolve pokemons are corrects. Here's a video: http://www.youtube.com/watch?v=XxOJAUMbV6o&feature=player_embedded If you buy this script dont forget read the Readme.txt YOU CAN BUY ON VAPUS: http://vapus.net/store.item/160-Pokemon_Evolve_System_not_stones PRICE: 5 euros + my support.
  12. Doggynub is a nice scripter, if he publish anything always the scrips are from him.
  13. This script was made by Doggynub from OTLand. Original thread: http://otland.net/f81/riding-car-one-file-only-113386/
  14. local s = getCreatureSummons(cid) for i = 1,#s do function(s[i]) end
  15. Well, I made this script little time ago and seen that pokemon servers are progressing a lot I decided post it. Script work: When your summon (pokemon) is far from you or fallen down a hole teleports to your position. Go to globalevents/scripts/ create a LUA file called teleport.lua and add this: function onThink(interval, lastExecution, thinkInterval) local tabla = {} local maxDistance = 10 for _, pid in ipairs(getPlayersOnline()) do local summons = getCreatureSummons(pid) if #summons > 0 then table.insert(tabla, pid) end end for _, t in ipairs(tabla) do local summ = getCreatureSummons(t) if getThingPos(t).z ~= getThingPos(summ[1]).z or getDistanceBetween(getThingPos(t), getThingPos(summ[1])) > maxDistance then doTeleportThing(summ[1], getThingPos(t)) doSendMagicEffect(getThingPos(t), 12) end end return true end Now you go to globalevents.xml and add this: <globalevent name="teleport" interval="1" event="script" value="teleport.lua"/> Xafterin.
  16. Is the same, if you loose hp, you will be healed.
  17. When monsters appears then go attack to player but with this system you have no errors. Go to creaturescripts/scripts/ create a lua file called attackpokemon.lua and put this: function onStatsChange(cid, attacker, type, combat, value) local s = getCreatureSummons(cid) if type == STATSCHANGE_HEALTHLOSS then if isMonster(attacker) then if #s == 1 then doMonsterSetTarget(attacker, s[1]) doCreatureAddHealth(cid, value) end end end return true end Creaturescripts.xml <event type="statschange" name="AttackPokemon" event="script" value="name.lua"/> Now go to login.lua and put: registerCreatureEvent(cid, "AttackPokemon") Bye bye
  • Quem Está Navegando   0 membros estão online

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