não dá pra te ajudar sem saber oque é uma dropstone.. ela tem algum script? que efeito e quais são todas as dropstones? Se vc não dá detalhes e não explicar direito ngm vai poder te ajudar.
info
Group: Herói
Joined: 14/02/14
Posts: 341
Reputation: +285
Gender: Masculino
Tibia Character: Night Wolf

info
Group: Barão
Joined: 31/07/09
Posts: 205
Reputation: +24
Gender: Masculino

ele quer o efeito parecido com o da pxg, exemplo:
tu mata um cahrizard e ele dropa fire stone.. ai sai um efeito x do corpo do charizard q dropou
info
Group: Artesão
Joined: 30/12/10
Posts: 106
Reputation: +7
Gender: Masculino
Tibia Character: Rolinha Da Amazonia

ele quer o efeito parecido com o da pxg, exemplo:
tu mata um cahrizard e ele dropa fire stone.. ai sai um efeito x do corpo do charizard q dropou
Isso Ai ;D
Edited Janeiro 27 by Boos
Isso Ai ;D
Quando você não posta o script que quer alterar, está limitando as pessoas que podem te ajudar.
Do jeito que você pediu só quem conhece/tem o sistema sabe do que você está falando.
Pensa um pouco.
local stone_effects = {
--[itemid] = effect,
--Ex.:
[3924] = 5,
[4090] = 37,
}
local function sendEffStone(cid, pos, stones)
if not isCreature(cid) then return true end
for i = 1, 255 do
pos.stackpos = i
local item = getTileThingByPos(pos)
if item.uid ~= 0 then
if isContainer(item.uid) then
if isContainer(item.uid) and getContainerSize(item.uid) > 0 then
for slot=0, (getContainerSize(item.uid)-1) do
local stone = getContainerItem(item.uid, slot)
if isInArray(stones, stone.itemid) and stone_effects[stone.itemid] then
doSendMagicEffect(getThingPos(cid), stone_effects[stone.itemid])
end
end
end
end
end
end
end
function onKill(cid, target)
local stones = {11453, 11441, 11442, 11443, 11444, 11445, 11446, 11447, 11448, 11449, 11450, 11451, 11452, 11454, 12244, 12232, 12242, 12417, 12419, 12245, 12401, 12402, 12403, 12404, 12405, 12406, 12407, 12408, 12409, 12410, 12411, 12412, 12413, 12414} --id de todas as stones
if ehMonstro(target) and isPlayer(cid) then
local pos = getThingPos(target)
local pid = getCreatureSummons(cid)[1]
addEvent(sendEffStone, 150, pid, pos, stones)
end
return true
end
Edited Janeiro 27 by zipter98
info
Group: Artesão
Joined: 30/12/10
Posts: 106
Reputation: +7
Gender: Masculino
Tibia Character: Rolinha Da Amazonia

Vlw Zipter Te Amo <3
info
Group: Conde
Joined: 07/04/15
Posts: 926
Reputation: +335
Gender: Masculino

Tópico movido para dúvidas / pedidos resolvidos.
info
Group: Cavaleiro
Joined: 28/08/16
Posts: 172
Reputation: +3
Gender: Masculino
Tibia Character: Raskgames

Em 27/01/2016 at 16:54, zipter98 disse:local stone_effects = { --[itemid] = effect, --Ex.: [3924] = 5, [4090] = 37,}local function sendEffStone(cid, pos, stones) if not isCreature(cid) then return true end for i = 1, 255 do pos.stackpos = i local item = getTileThingByPos(pos) if item.uid ~= 0 then if isContainer(item.uid) then if isContainer(item.uid) and getContainerSize(item.uid) > 0 then for slot=0, (getContainerSize(item.uid)-1) do local stone = getContainerItem(item.uid, slot) if isInArray(stones, stone.itemid) and stone_effects[stone.itemid] then doSendMagicEffect(getThingPos(cid), stone_effects[stone.itemid]) end end end end end endendfunction onKill(cid, target) local stones = {11453, 11441, 11442, 11443, 11444, 11445, 11446, 11447, 11448, 11449, 11450, 11451, 11452, 11454, 12244, 12232, 12242, 12417, 12419, 12245, 12401, 12402, 12403, 12404, 12405, 12406, 12407, 12408, 12409, 12410, 12411, 12412, 12413, 12414} --id de todas as stones if ehMonstro(target) and isPlayer(cid) then local pos = getThingPos(target) local pid = getCreatureSummons(cid)[1] addEvent(sendEffStone, 150, pid, pos, stones) end return trueend
tem items vc adicionar pq???







info
Group: Artesão
Joined: 30/12/10
Posts: 106
Reputation: +7
Gender: Masculino
Tibia Character: Rolinha Da Amazonia
Gente Queria Um Script Para Dropstone.
So que inves de dar UM Efeito em todas as stones, Queria que desse um efeito em cada stone sé possivel
Obrigado Huehue
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Script Original
Edited Janeiro 27 by Boos