What's new

Przerobienie skryptu

Status
Not open for further replies.

Sokou

Advanced User
Joined
Jun 25, 2010
Messages
379
Reaction score
25
witam, szukam kogo? kto by mi ten skrypt przerobi? w ten spos?b aby leci?o kilka pocisk?w a nie tylko jeden :)

PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 0)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -5.0, -0, -5.1, 0)

local arr = {
	{0, 0, 0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0, 0, 0},
	{0, 0, 0, 3, 0, 0, 0},
	{0, 0, 0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0, 0, 0},
	{0, 0, 0, 0, 0, 0, 0}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

]
 

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: Przerobienie skryptu

PHP:
ilosc = 5
czas = 500
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 0)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -5.0, -0, -5.1, 0)
local arr = {
	{0, 0, 0},
	{0, 3, 0},
	{0, 0, 0}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
for i=1, ilosc do
addEvent(doCombat, czas*i, cid, combat, var)
end
end
Ilosc - ile razy ma byc u?yty atak
Czas - odst?p mi?dzy jednym atakiem a kolejnym (500 p?? sekundy)
 
Status
Not open for further replies.
Top