Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Lua by Roxxaz ( 5 years ago )
function onCastSpell(cid, var)
local dmg = 100

local function fall(params)
	local pos = getThingPos(cid)
	pos.x = pos.x + math.random(-3,3)
	pos.y = pos.y + math.random(-3,3)
	local frompos = getThingPos(cid)
	frompos.x = pos.x - 7
	frompos.y = pos.y - 6
	doSendDistanceShoot(frompos, pos, 44)
	doAreaCombatHealth(cid, COMBAT_DROWNDAMAGE, pos, 0, -(dmg), -(dmg+45), 53)
end
		
for rocks = 1, 20 do
	addEvent(fall, rocks*150, {cid = cid})
end

for rocks = 1, 20 do
	addEvent(fall, rocks*110, {cid = cid})
end
return true
end


-- necesito hacer que esta spell no sea aleatoria, que caiga en esta area: 
-- {0, 1, 1, 1, 0},
-- {1, 1, 1, 1, 1},
-- {1, 1, 3, 1, 1},
-- {1, 1, 1, 1, 1},
-- {0, 1, 1, 1, 0}

 

Revise this Paste

Your Name: Code Language: