Ir para conteúdo

SkyDarkyes

Infante
  • Total de itens

    1685
  • Registro em

  • Última visita

Tudo que SkyDarkyes postou

  1. BOm quando uso o item não some tipo Eu coloco o item na bag e uso ele,ai ele some mas eu coloco o item no chao e uso nao some local invisible = createConditionObject(CONDITION_INVISIBLE) setConditionParam(invisible, CONDITION_PARAM_TICKS, 10 * 1000) function onUse(cid, item, frompos, item2, topos) cid = isCreature(item2.uid) and item2.uid or cid if getCreatureCondition(cid, CONDITION_INVISIBLE) then return not doPlayerSendCancel(cid, "You are already invisible.") end doAddCondition(cid, invisible) doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT) doPlayerRemoveItem(cid, 2153, 1) return true end
  2. Obrigado deu certo,acabou os reps,se não eu dava.
  3. Deu certo,REP+ Dado,obrigado.
  4. SkyDarkyes

    Crystal Onix - ICH1GO

    Acho que está sem detalhes
  5. Tem como alguem colocar para nao ir nas paredes function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = fromPosition local aqui = getPlayerPosition(cid) local vocs = {300, 301, 303, 304, 305, 306, 307, 308, 309} local agua = {4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825} if getDistanceBetween(aqui, toPosition) >= 10 then return doPlayerSendTextMessage(cid, 27, "This is soo far.") elseif(not(isSightClear(aqui, toPosition, 1))) then return doPlayerSendTextMessage(cid, 27, "This is impossible.") elseif(getTilePzInfo(aqui)) then return doPlayerSendCancel(cid, "voce nao pode usar quando estiver em protect zone.") elseif(getTilePzInfo(toPosition)) then return doPlayerSendCancel(cid, "voce nao pode entra em protec zone.") elseif(isInArray(agua, itemEx.itemid)) then return doPlayerSendTextMessage(cid, 27, "voce nao pode usar em agua") elseif((getTileHouseInfo(toPosition))) then return doPlayerSendCancel(cid, "You can't enter in a house.") elseif(not(isInArray(vocs, getPlayerVocation(cid)))) then return doPlayerSendTextMessage(cid, 27, "Sorry, your vocation don't use it.") end if(doTeleportThing(cid, toPosition, false)) then doSendMagicEffect(pos, 134) doSendMagicEffect(toPosition, 131) return doSendDistanceShoot(pos, toPosition, 134) end return doPlayerSendCancel(cid, "Sorry, not possible.") end
  6. Não deu certo.
  7. Teria como colocar um Exasted igual desse SCRIPT: local newPos1 = {x = 0, y = 0, z = 0} --pos pra onde sera levado o caster da spell local newPos2 = {x = 242, y = 1056, z = 4} --pos pra onde sera levado o target local time = 20 --tempo pra teleporta devolta, em segs local function teleport(cid, pid, pos, pos2) if isCreature(pid) then doTeleportThing(pid, getClosestFreeTile(pid, pos2 or pos)) doSendMagicEffect(getPlayerPosition(pid), 75) end end function onCastSpell(cid, var) local target = getCreatureTarget(cid) if not isCreature(target) or not isPlayer(target) then return doPlayerSendTextMessage(cid, 27, "Voce So Pode Usar Essa Spell Em Players e Fora de Exames,Arenas,Quests") end if getPlayerStorageValue(cid, 33333) < os.time () then local target = getCreatureTarget(cid) local posCid = getPlayerPosition(cid) local posTarget = getPlayerPosition(target) setPlayerStorageValue(cid, 33333, os.time () + 200) doSendMagicEffect(posCid, 30) doSendMagicEffect(posTarget, 196) teleport(cid, target, newPos1, newPos2) addEvent(teleport, time*1000, cid, target, posCid, posTarget) else doPlayerSendCancel(cid, " VOCE SÓ PODE USAR DAKI A "..getPlayerStorageValue(cid, 33333) - os.time ().." SEGUNDOS ") end return true end Nesse local DESTINO = {x = 1109, y = 581, z = 7} local TEMPO_PARA_VOLTAR = 20 * 1000 -- em ms local events = {} local dbfunc = db and type(db.executeQuery) == "function" and db.executeQuery or db and type(db.query) == "function" and db.query or error local function teleport_back(guid, position) local cid = getPlayerByGUID(guid) if isCreature(cid) then doTeleportThing(cid, position) doSendMagicEffect(position, CONST_ME_TELEPORT) else dbfunc("UPDATE players SET posx = "..position.x..", posy = "..position.y..", posz = "..position.z.." WHERE id = "..guid) end events[guid] = nil end function onCastSpell(cid) local pos, guid = getThingPos(cid), getPlayerGUID(cid) if events[guid] then return not doPlayerSendCancel(cid, "You can't cast this spell now!") end doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid)) doTeleportThing(cid, DESTINO) doSendMagicEffect(DESTINO, CONST_ME_TELEPORT) events[guid] = addEvent(teleport_back, TEMPO_PARA_VOLTAR, guid, pos) return true end
  8. SkyDarkyes

    Psoul

    Eu vi,mas to querendo saber a versão do servidor. '-'
  9. SkyDarkyes

    Psoul

    Luan,qual versão?
  10. Eu achei no Xtibia,mas não tinha nem metade do script.
  11. SkyDarkyes

    Psoul

    Versão?
  12. Oque é bootstrap?
  13. Isso chama Auto stacking,tem que add a função na source.
  14. Deu certo Rep+ dado Podem fechar.
  15. Bom vamos lá Quando o player clika no item ele ganha premios de acordo com o lvl De 50 em 50 leveis até 600 Porem exemplo se eu pega o premio do lvl 50,nao posso pegar mais do lvl 50,apenas os outros,se eu tiver lvl 100,e nao tiver pegado nenhum premio posso pegar o do 50 e do 100 e os adiante Tende?
  16. Ah man,mas no caso ele só pega o item do lvl dele?
  17. Jaja testo
  18. No caso,ele vai ganhar em 50 em 50 leveis até 600 Mas depois que ele pegou por exemplo o premio do 50 ele nao pode pega o do 50 denovo,
  • Quem Está Navegando   0 membros estão online

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