Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doMoveInAreaMulti(cid, effDis, effMagic, areaEff, areaDano, element, min, max, ret) --alterado v1.7
- if not isCreature(cid) then return true end
- local pos = getPosfromArea(cid, areaEff)
- local pos2 = getPosfromArea(cid, areaDano)
- local n = 0
- while n < #pos2 do
- if not isCreature(cid) then return true end
- if isSleeping(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
- if isWithFear(cid) and getPlayerStorageValue(cid, 3644587) >= 1 then return true end
- n = n+1
- thing = {x=pos2[n].x,y=pos2[n].y,z=pos2[n].z,stackpos=253}
- if n < #pos then
- addEvent(sendDistanceShootWithProtect, 50, cid, getThingPos(cid), pos[n], effDis) --39
- addEvent(sendEffWithProtect, 100, cid, pos[n], effMagic) -- 112
- --- --alterado v1.6.1
- if math.random(1, 2) == 2 then
- addEvent(sendDistanceShootWithProtect, 450, cid, getThingPos(cid), pos[n], effDis) --550
- addEvent(sendEffWithProtect, 550, cid, pos[n], effMagic) -- 650
- end
- end
- local pid = getThingFromPosWithProtect(thing)
- if isCreature(pid) then
- if ret and ret.id == 0 then --alterado v1.8
- ret.id = pid
- ret.check = getPlayerStorageValue(pid, conds[ret.cond])
- end
- if not ret then ret = {} end --alterado v1.7
- doMoveDano2(cid, pid, element, min, max, ret, getPlayerStorageValue(cid, 21102))
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement