What's new

Spells exori lex hur

Status
Not open for further replies.

Pk Xd

Advanced User
Joined
Nov 21, 2009
Messages
235
Reaction score
12
Witaj [you]
Prezentuj? tobie czar kt?ry zosta? napisany w ca?o?ci przez zemnie!
Ok to zaczynamy:
SS:

Dalej:
data/spells/spells.xml
I dodajemy tam linijki:
Code:
<instant name="5" words="exori lex hur" lvl="100" mana="700" prem="1" selftarget="1" needlearn="0" blockwalls="1" exhaustion="1600" event="script" value="5.lua">
		<vocation id="3"/>
		<vocation id="7"/>
	</instant>
Dalej:
data/spells/scripts i tworzymy nowy dokument tekstowy i wpisujemy tam nazwe 5.lua
I dodajemy tam to:
Code:
--Pk Xd--
local atk1 = createCombatObject()
local atk2 = createCombatObject()
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 31)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 32)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -7.9, -7, -10.8, -7)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 0)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 37)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -4.5, -5, -9.9, -5)
arr1 = {
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}
}
arr2 = {
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 1, 0, 2, 0, 1, 0, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
setCombatArea(atk1, area1)
setCombatArea(atk2, area2)
function onTargetTile(cid, pos)
    doCombat(cid,combat1,positionToVariant(pos))
end
function onTargetTile2(cid, pos)
    doCombat(cid,combat2,positionToVariant(pos))
end
setCombatCallback(atk1, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
setCombatCallback(atk2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")
local function onCastSpell1(parameters)
    doCombat(parameters.cid, atk1, parameters.var)
end
local function onCastSpell2(parameters)
    doCombat(parameters.cid, atk2, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 200, parameters)
return true
end
Testowany na 8.54!
 

Royall Bloodrain

Active User
Joined
Dec 15, 2010
Messages
71
Reaction score
8
Odp: exori lex hur

Nawet fajnie wygl?da czar :) Ale nic trudnego zrobi? i moim zdaniem troch? za du?o sqm zabiera ten czar =/ 7/10
 

login989

Active User
Joined
Dec 4, 2010
Messages
120
Reaction score
2
Odp: exori lex hur

Ja testowa?em na tibi 8.10 wi?c zgadzam si? z Royyall Bloodrainem, ?e skrypt ?atwy do zrobienia.
Moim zdaniem 8/10
 

Pk Xd

Advanced User
Joined
Nov 21, 2009
Messages
235
Reaction score
12
Odp: exori lex hur

Wiecie napisa? czar to nic trudnego :)
Lecz sami wiecie ?e czasu zabiera du?o.
Dzi?ki za koment, nied?ugo nowe!
 

Marcinoos66

Senior User
Joined
Dec 18, 2008
Messages
1,196
Reaction score
99
Odp: exori lex hur

Czar standardowy, no nic specjalnego.. do tego dziwna nazwa, taka pasuj?ca do knighta, no i nawet nazwy sam nie wymy?li?e? tylko same "lex"
Jak dla mnie s?abizna, 2/10 za ch?ci..
 

Mateorixis

Advanced User
Joined
Oct 30, 2010
Messages
233
Reaction score
12
Odp: exori lex hur

Co do czaru to ma fajny wygl?d ale jak koledzy wy?ej napisali bardzo ?atwo takie co? zrobi? dlatego da?bym ci za czar 5/10 dla zach?ty :)
 
Last edited:

Uzzio

Advanced User
Joined
Oct 6, 2008
Messages
194
Reaction score
12
Odp: exori lex hur

Prosty skrypcik z fajn? animacj?. Mi si? w?a?nie animacja najbardziej podoba. Reszta to taka sobie. Nic w tym takiego nadzwyczajnego. 5/10
 

login989

Active User
Joined
Dec 4, 2010
Messages
120
Reaction score
2
Odp: exori lex hur

Daje reputki ka?demu (za nic lubie dawa? reputki)
 
Status
Not open for further replies.
Top