Kadia
...::Admin::...
Dołączył: 13 Mar 2007
Posty: 97
Przeczytał: 0 tematów
Pomógł: 2 razy Ostrzeżeń: 0/5
|
Wysłany: Czw 23:27, 15 Mar 2007 Temat postu: 3 Spelle, 2 Potwory By Me. |
|
|
A wiec zacznijmy moze od Spell:
1.Ots/Data/Spells-->atak palladyna.lua
Kod: |
area = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1},
{1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1},
{1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1},
{1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1},
{1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1},
{1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1},
{1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
}
attackType = ATTACK_PHYSICAL
needDirection = false
areaEffect = NM_ME_ENERGY_AREA
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_ENERGY_DAMAGE
damageEffect = NM_ME_DRAW_BLOOD
animationColor = BLUE
offensive = true
drawblood = true
UltimateExplosionObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
n = tonumber(var) -- try to convert it to a number
if n ~= nil then
-- bugged
-- ultimateExplosionObject.minDmg = var+0
-- UltimateExplosionObject.maxDmg = var+0
UltimateExplosionObject.minDmg = 0
UltimateExplosionObject.maxDmg = 0
else
UltimateExplosionObject.minDmg = (level * 2 + maglv * 3) * 2.3 - 30
UltimateExplosionObject.maxDmg = (level * 2 + maglv * 3) * 3.0
end
return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, UltimateExplosionObject:ordered())
end
|
W Ots/Data/Spells/Spells.xml
Kod: |
<spell name="Palladin Strike" words="atak palladyna" maglv="25" mana="700" enabled="1"><vocation id="3" /></spell/>
|
2.Ots/Data/Spells/Instant-->uber exori mas.lua
Kod: |
area = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1},
{1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1},
{1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1},
{1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1},
{1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1},
{1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1},
{1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1},
{1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1},
{1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
}
attackType = ATTACK_PHYSICAL
needDirection = false
areaEffect = NM_ME_MORT_AREA
animationEffect = NM_ANI_SUDDENDEATH
hitEffect = NM_ME_HIT_AREA
damageEffect = NM_ME_HIT_AREA
animationColor = RED
offensive = true
drawblood = true
UltimateExplosionObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
n = tonumber(var) -- try to convert it to a number
if n ~= nil then
-- bugged
-- ultimateExplosionObject.minDmg = var+0
-- UltimateExplosionObject.maxDmg = var+0
UltimateExplosionObject.minDmg = 0
UltimateExplosionObject.maxDmg = 0
else
-- UltimateExplosionObject.minDmg = (level * 2 + maglv * 3) * 2.3 - 30
-- UltimateExplosionObject.maxDmg = (level * 2 + maglv * 3) * 3.0
UltimateExplosionObject.minDmg = (level * 1.5 + maglv * 1.5) * 1.2
UltimateExplosionObject.maxDmg = (level * 1.5 + maglv * 1.5) * 2.3
end
return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, UltimateExplosionObject:ordered())
end
|
W Ots/Data/Spells/Spells.xml
Kod: |
<spell name="Knight Strike" words="uber exori mas" maglv="5" mana="700" enabled="1"><vocation id="4" /></spell/>
|
3.Ots/Data/Spells/Instant--> h5n1.lua
Kod: |
area = {
{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, 0, 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}
}
attackType = ATTACK_POISON
needDirection = false
areaEffect = NM_ME_POISEN_RINGS
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_POISEN
damageEffect = NM_ME_POISEN_RINGS
animationColor = GREEN
offensive = true
needDirection = false
drawblood = false
minDmg = 5000
maxDmg = 10000
PoisonStormObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, minDmg, maxDmg)
SubPoisonStormObject1 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, 15, 15)
SubPoisonStormObject2 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, 10, 10)
SubPoisonStormObject3 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, 5, 5)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
PoisonStormObject.minDmg = (level * 2 + maglv * 3) * 1.5 - 30
PoisonStormObject.maxDmg = (level * 2 + maglv * 3) * 2
return doAreaExMagic(cid, centerpos, needDirection, areaEffect, area, PoisonStormObject:ordered(),
2000, 1, SubPoisonStormObject1:ordered(),
2000, 2, SubPoisonStormObject2:ordered(),
2000, 10, SubPoisonStormObject3:ordered(),
3)
end
|
W Ots/Data/Spells/Spells.xml
Kod: |
<spell name="Ptasia Grypa" words="h5n1" maglv="30" mana="700" enabled="1"><vocation id="2" /></spell/>
|
A wiec potworki:
1.Ots/Data/Monster-->diablo.xml
Kod: |
<?xml version="1.0"?>
<monster name="Diablo" level="400" maglevel="350" experience="200000" pushable="0" armor="400" defense="200" canpushitems="1" staticattack="50" changetarget="100" speed="2000">
<health now="100000" max="100000"/>
<look type="35" head="20" body="30" legs="40" feet="50" corpse="2916"/>
<combat targetdistance="1" runonhealth="0"/>
<blood color="199" effect="0" splash="255"/>
<attacks>
<attack type="melee" mindamage="2000" maxdamage="10000" probability="100"/>
<attack type="instant" name="banshee_sonar" exhaustion="500" cycleticks="5000" probability="700"/>
<attack type="instant" name="exevo gran mas vis" exhaustion="500" cycleticks="5000" probability="700"/>
<attack type="distance" name="power blot" mindamage="2000" maxdamage="15000" probability="500"/>
<attack type="rune" name="p sd" exhaustion="500" cycleticks="5000" probability="700"/>
<attack type="instant" name="invis" exhaustion="500" cycleticks="5000" probability="700"/>
</attacks>
<defenses>
<defense immunity="energy"/>
<defense immunity="poison"/>
<defense immunity="paralyze"/>
<defense immunity="invisible"/>
<defense immunity="drunk"/>
</defenses>
<voices>
<voice sentence="MUAHAUHAUAHUA"/>
<voice sentence="Zginiesz!"/>
</voices>
<loot>
<item id="2152" countmax="7" chance1="50000" chancemax="0"/>
<item id="2393" chance="1000"/>
<item id="2470" chance="2000"/>
<item id="2522" chance="1333"/>
<item id="2158" chance="10000"/>
<item id="2319" chance="9000"/>
<item id="2462" chance="50000"/>
<item id="2153" chance="50000"/>
<item id="2160" countmax="10" chance1="100000" chancemax="0"/>
<item id="1987" chance="100000">
<inside>
<item id="2390" chance="50000"/>
<item id="2472" chance="100000"/>
<item id="2400" chance="20000"/>
<item id="2646" chance="33330"/>
</inside>
</item>
</loot>
<summons maxSummons="2">
<summon name="Orshabaal" chance="1000"/>
<summon name="Demon" chance="1000"/>
</summons>
</monster>
|
W Ots/Data/Monster/Monsters.xml
Kod: |
<monster name="Diablo" file="diablo.xml" />
|
2.Ots/Data/Monster-->glupi elf.xml
Kod: |
<?xml version="1.0"?>
<monster name="Glupi Elf" level="390" maglevel="300" experience="167000" pushable="0" armor="200" defense="150" canpushitems="1" staticattack="50" changetarget="300" speed="1000">
<health now="50000" max="50000"/>
<look type="63" head="20" body="30" legs="40" feet="50" corpse="2979"/>
<combat targetdistance="5" runonhealth="50"/>
<blood color="199" effect="0" splash="255"/>
<attacks>
<attack type="rune" name="admin heavy magic missile" exhaustion="500" cycleticks="5000" probability="70"/>
<attack type="rune" name="admin heavy magic missile" exhaustion="500" cycleticks="2500" probability="40"/>
<attack type="rune" name="admin spiral" exhaustion="500" cycleticks="7000" probability="85"/>
<attack type="rune" name="admin spiral" exhaustion="500" cycleticks="3500" probability="35"/>
<attack type="instant" name="exura gran" cycleticks="1500" probability="50"/>
<attack type="distance" name="burst arrow" mindamage="2000" maxdamage="5000" probability="45"/>
<attack type="distance" name="burst arrow" mindamage="500" maxdamage="3000" probability="90"/>
<attack type="distance" name="burst arrow" mindamage="5000" maxdamage="6000" probability="5"/>
<attack type="instant" name="utani mega hur" exhaustion="500" cycleticks="3500" probability="60"/>
<attack type="rune" name="heavy magic missile" exhaustion="500" cycleticks="10000" probability="40"/>
</attacks>
<defenses>
<defense immunity="energy"/>
<defense immunity="fire"/>
<defense immunity="poison"/>
<defense immunity="paralyze"/>
<defense immunity="invisible"/>
<defense immunity="drunk"/>
</defenses>
<loot>
<item id="2148" countmax="20" chance1="100000" chancemax="0"/>
<item id="1949" chance="10000"/>
<item id="2578" chance="5000"/>
<item id="2260" chance="4000"/>
<item id="2463" chance="3000"/>
<item id="2463" chance="3000"/>
<item id="2463" chance="3000"/>
<item id="2463" chance="3000"/>
<item id="2198" chance="7777"/>
<item id="2642" chance="20000"/>
<item id="2682" chance="6666"/>
<item id="2802" countmax="1" chance1="10000" chancemax="0"/>
<item id="2600" chance="33333"/>
<item id="2177" chance="2857"/>
<item id="2689" countmax="3" chance1="20000" chancemax="0"/>
<item id="2152" countmax="100" chance1="100000" chancemax="0"/>
<item id="2152" countmax="100" chance1="100000" chancemax="0"/>
<item id="1987" chance="100000">
<inside>
<item id="2390" chance="5000"/>
<item id="2392" countmax="10" chance1="20000" chancemax="0"/>
<item id="2400" chance="10000"/>
<item id="2187" chance="100000"/>
<item id="2136" chance="2857"/>
<item id="2471" chance="1818"/>
<item id="2472" chance="1333"/>
<item id="2493" chance="2493"/>
<item id="2492" chance="1000"/>
<item id="2494" chance="2000"/>
<item id="2498" chance="20000"/>
<item id="2494" chance="2542"/>
</inside>
</item>
</loot>
</monster>
|
W Ots/Data/Monster/Monsters.xml
Kod: |
<monster name="Glupi Elf" file="glupi elf.xml" />
|
A wiec to all, mam nadzieje ze GOD Kamilez bedzie zadowolony. Calus 4all :*
Oceniajcie!!
Post został pochwalony 0 razy
|
|