• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Problems|Online limit, spell mana

moshon

New Member
Joined
Dec 23, 2008
Messages
17
Reaction score
1
I worked very hard on my server and i have few problems
Server 7.6 XML

1-
When my friend online and i try login It says i need wait becouse ther is online limit... and only 1 online and set on Config.lua 100 Maximum players!..

2-
I have new spell Of light his name Aura
<spell name="aura" words="aura" lv="0" kilv="1" ki="100" enabled="1"><vocation id="1" /><vocation id="2" /><vocation id="3" /><vocation id="4" /><vocation id="5" /><vocation id="6" /><vocation id="7" /><vocation id="8" /></spell>


And Script
area = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}

attackType = ATTACK_NONE
needDirection = false
areaEffect = NM_ME_MAGIC_ENERGIE
animationEffect = NM_ANI_NONE

hitEffect = NM_ME_NONE
damageEffect = NM_ME_NONE
animationColor = GREEN
offensive = false
drawblood = false

GreatHasteObject = 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}

if(area) then
setPlayerLightLevel(cid,7)

changeSpeed(cid, addspeed, time)
end

return doAreaMagic(cid, centerpos, needDirection, area, GreatHasteObject:eek:rdered())
end



And when i cast the Spell the mana stay full... it doesnt take any mana

Btw Ki = magic level,mana
 
Back
Top