wafuboe
Active Member
- Joined
- Dec 24, 2010
- Messages
- 884
- Solutions
- 2
- Reaction score
- 26
i got this errors in console.
any help ill post the scripts

block summon
arrow rain
also if cooldown can be removed would be great
arena dorr
any help ill post the scripts

block summon
LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
function onCastSpell(cid, var)
local player = Player(cid)
local player_summon = Player(cid):getSummons()
if not next(player_summon) then
player:getPosition():sendMagicEffect(CONST_ME_POFF)
player:sendCancelMessage("You don't have any summons.")
return false
end
for i = 1, #player_summon, + 1
do
doChallengeCreature(player_summon[i], player:getTarget())
player_summon[i]:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
player:getTarget():getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
return true
end
return doCombat(cid, combat, var)
end
arrow rain
also if cooldown can be removed would be great
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)
local area = createCombatArea(
{
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
})
setCombatArea(combat, area)
function onCastSpell(cid, var)
pos = getPlayerPosition(cid)
for i = 0, 7 do
for j = 0, 7 do
for s = 0, 255 do
local player1 = getThingfromPos({x = pos.x+i, y = pos.y+j, z = pos.z, stackpos = s})
if isCreature(player1.uid) == TRUE then
local pos2 = getCreaturePosition(player1.uid)
doSendDistanceShoot(pos, pos2, config.effect1)
end
end
end
end
for i = 0, 7 do
for j = 0, 7 do
for s = 0, 255 do
local player1 = getThingfromPos({x = pos.x-i, y = pos.y-j, z = pos.z, stackpos = s})
if isCreature(player1.uid) == TRUE then
local pos2 = getCreaturePosition(player1.uid)
doSendDistanceShoot(pos, pos2, config.effect1)
end
end
end
end
for i = 0, 7 do
for j = 0, 7 do
for s = 0, 255 do
local player1 = getThingfromPos({x = pos.x-i, y = pos.y+j, z = pos.z, stackpos = s})
if isCreature(player1.uid) == TRUE then
local pos2 = getCreaturePosition(player1.uid)
doSendDistanceShoot(pos, pos2, config.effect1)
end
end
end
end
for i = 0, 7 do
for j = 0, 7 do
for s = 0, 255 do
local player1 = getThingfromPos({x = pos.x+i, y = pos.y-j, z = pos.z, stackpos = s})
if isCreature(player1.uid) == TRUE then
local pos2 = getCreaturePosition(player1.uid)
doSendDistanceShoot(pos, pos2, config.effect1)
end
end
end
end
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "Cooldown for Chuva de Flechas is " ..exhaustion.get(cid, config.storage).." seconds")
return false
end
end
arena dorr
LUA:
local storages = {
[26100] = Storage.SvargrondArena.Greenhorn,
[27100] = Storage.SvargrondArena.Scrapper,
[28100] = Storage.SvargrondArena.Warlord
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
-- Cannot use opened door
if item.itemid == 5133 then
return false
end
if player:getStorageValue(Storage.SvargrondArena.Arena) < 1 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'This door seems to be sealed against unwanted intruders.')
return true
end
-- Doors to rewards
local cStorage = storages[item.actionid]
if cStorage then
if player:getStorageValue(cStorage) ~= 1 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'It\'s locked.')
return true
end
item:transform(item.itemid + 1)
player:teleportTo(toPosition, true)
-- Arena entrance doors
else
if player:getStorageValue(Storage.SvargrondArena.Pit) ~= 1 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'This door seems to be sealed against unwanted intruders.')
return true
end
item:transform(item.itemid + 1)
player:teleportTo(toPosition, true)
end
return true
end
Last edited by a moderator:
