
SkyThez
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
SkyThez recebeu reputação de ZORAN em Juntar Items ScriptAcho que esse system é pago,chama auto stacking,é uma modificação nas sources
-
ta então tenta essa modificada:
local remove_time = 7 -- tempo em segundos para remover as magic wall local item_id = 2719 -- id da magic wall local efeito = 197 --efeito q vai sair nas posiçoes da trap local function isWalkable(pos, creature, pz, proj) if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end local creature = getTopCreature(pos) if creature.type > 0 then return false end if getTilePzInfo(pos) and not pz then return false 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 local function removeAll(pos, item_id) for i = 0, 7 do local posi = getPosByDir(pos, i) local item = getTileItemById(posi, item_id) if item and item.uid > 1 then doRemoveItem(item.uid, 1) end end end function onCastSpell(cid, var) local target = getCreatureTarget(cid) if not isCreature(target) then return not doPlayerSendCancel(cid, "You need a target!") end for i = 0, 7 do local pos = getPosByDir(getThingPos(target), i) if isWalkable(pos, true, true, false) then doCreateItem(item_id, 1, pos) doSendMagicEffect(pos, efeito) end end addEvent(removeAll, remove_time*1000, getThingPos(target), item_id) return true end -
créditos brun123
usa essa:
function onCastSpell(cid) local item = 1497 local tempo = 5 * 1000 local efeito_ao_criar = CONST_ME_MAGIC_GREEN local efeito_ao_remover = CONST_ME_POFF for direction = 0, 7 do local position = getPosByDir(getThingPos(cid), direction) doCreateItem(item, position) doSendMagicEffect(position, efeito_ao_criar) end addEvent(function (center, id) for direction = 0, 7 do local position = getPosByDir({x = center.x, y = center.y, z = center.z}, direction) local item = getTileItemById(position, id).uid if item > 1 then doSendMagicEffect(position, efeito_ao_remover) doRemoveItem(item) end end end, tempo, getThingPos(cid), item) return true end -
SkyThez recebeu reputação de Alienbear em Ajuda aqui fiquei confusofunction onUse(cid, item, fromition, itemEx, toPosition) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nMana atual: " .. getCreatureHealth(cid) .. "\nMana máxima: " .. getCreatureMaxHealth(cid) .. "") return true end if getPlayerSex(cid) == 51 or getPlayerSex(cid) == 52 then local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O ninja com o nome " .. param .. " não esta online ou não existe.") return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nmana de [ " .. getCreatureName(pid) .. " ] atual: " .. getCreatureHealth(pid) .. "\nmana de [ " .. getCreatureName(pid) .. " ] máxima: " .. getCreatureMaxHealth(pid) .. "") return true else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Apenas ninjas dos clans 51 e 52 podem utilizar este comando para visualizar informações de outros jogadores.") return true end end
-
SkyThez deu reputação a Cat em Nolis Show Offalgumas que eu fiz pra treinar ;p
-
SkyThez deu reputação a Cat em Nolis Show Offhehehe é so treinar, eu ainda pretendo ser um mapper bom, até lá, treinar muito
-
SkyThez deu reputação a Cat em Nolis Show Off
-
SkyThez deu reputação a Avuenja em Set MadaraDesculpe qualquer coisa, não sou designer.. mas está ai... Bom também acabei perdendo muitos recursos ao atualizar meu computador para o novo sistema operacional...