• 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!

Spell Ninja Vocation Spells

That's kinda true (at least right now), you shouldn't react like that... Since he is right, the post is missing a lot of info even if some people can easily tell if the scripts are for 1.0 branch or not.

You are right, and he is right. This is why I admitted to it...


I'm the asshole

But it is also true he is a leach, and he knows that this script is not meant for 0.3.6 whether or not printer posted that information, he knows it, he has many posts asking for help on both types of servers. He comes on here just to point that out, leaches do this to try to get a person to make a script they want.

Yes @topic technically this thread should be labeled better, it is also true that anyone who knows at least a little bit about their own server, should be able to read some of the code right of the bat and be able to tell if it has a chance at being compatible with their server.
 
I changed and now:
Code:
[20/02/2015 23:28:38] [Error - Spell Interface]
[20/02/2015 23:28:38] data/spells/scripts/ninja.lua:onCastSpell
[20/02/2015 23:28:38] Description:
[20/02/2015 23:28:38] data/spells/scripts/ninja.lua:78: attempt to call global 'Creature' (a nil value)
[20/02/2015 23:28:38] stack traceback:
[20/02/2015 23:28:38]     data/spells/scripts/ninja.lua:78: in function <data/spells/scripts/ninja.lua:77>

But thanks for trying to help me, I appreciate it :)
same problem
 
FIXED MY ISSUE~
1.1 - 1.x users.
i had the Error
Code:
createcombatarea - Line 29
I changed this
Code:
createCombatArea(AREA1)
to this
Code:
createCombatArea


Code:
AREA1 = {
{0, 0, 0},
{0, 3, 0},
{0, 0, 0}
}

local function sendHealingEffect(cid, position, loopCount)
local player = Player(cid)
if not player then
return
end

position:sendDistanceEffect(player:getPosition(), CONST_ANI_SMALLHOLY)
player:addHealth(math.max(100, 150))
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE)
if loopCount == 0 then
player:getPosition():sendMagicEffect(CONST_ME_HOLYAREA)
end
end

function onCastSpell(creature, var)
local playerPos = creature:getPosition()
local loopCount = 12

creature:say('Heal me my brothers!', TALKTYPE_MONSTER_SAY)

for i = 1, loopCount do
local position = Position(playerPos.x + math.random(-4, 3), playerPos.y + math.random(-3, 2), playerPos.z)
addEvent(doAreaCombatHealth, i * 75, creature:getId(), COMBAT_PHYSICALDAMAGE, position, createCombatArea, 0, 0, CONST_ME_ASSASSIN)
addEvent(sendHealingEffect, i * 75, creature:getId(), position, loopCount - i)
end
return false
end
 
Last edited:
TFS 1.2
Spell heal don`t work

all player use spell no cooldown no mana no use soul and server don`t show errors... where is problem ?

<instant group="healing" spellid="141" name="Intense heal Assassin" words="exura mas assassin" lvl="150" mana="400" aggressive="0" selftarget="1" exhaustion="30000" groupcooldown="2000" needlearn="0" script="healing/Intense Healing Brothers.lua">
<vocation name="Assassin" />
</instant>
 
Im having this issue with tfs 1.4.2 any ideas?

Lua:
local function sendDistanceEffectDelay(cid, fromPos, toPos, effect)
    local player = Player(cid)
    if not player then
        return
    end
 
    fromPos:sendDistanceEffect(toPos, effect)
end
 
local function ninjaJumpDash(cid, target, oldPos, lastJump, back)
    local player = Player(cid)
    if not player then
        return
    end
 
    local target = Creature(target)
    if not target then
        player:setGhostMode(false)
        return
    end
  
    if lastJump then
        player:setGhostMode(false)
    end
 
    if back then
        player:teleportTo(oldPos)
    else
        player:teleportTo(target:getPosition())
    end
    doTargetCombatHealth(cid, target, COMBAT_PHYSICALDAMAGE, -450, -550, CONST_ME_THUNDER)
end
 
function onCastSpell(creature, var)
    local cid = creature:getId()
    local playerPos = creature:getPosition()
 
    creature:setGhostMode(true)
    addEvent(ninjaJumpDash, 0, cid, target:getId(), playerPos, false, false)
    addEvent(sendDistanceEffectDelay, 100, cid, playerPos, target:getPosition(), CONST_ANI_ENERGY)
    addEvent(sendDistanceEffectDelay, 300, cid, target:getPosition(), playerPos, CONST_ANI_ENERGY)
    addEvent(ninjaJumpDash, 400, cid, target:getId(), playerPos, false, true)
 
    addEvent(ninjaJumpDash, 600, cid, target:getId(), playerPos, false, false)
    addEvent(sendDistanceEffectDelay, 700, cid, playerPos, target:getPosition(), CONST_ANI_ENERGY)
    addEvent(sendDistanceEffectDelay, 1000, cid, target:getPosition(), playerPos, CONST_ANI_ENERGY)
    addEvent(ninjaJumpDash, 1100, cid, target:getId(), playerPos, false, true)
 
    addEvent(ninjaJumpDash, 1300, cid, target:getId(), playerPos, false, false)
    addEvent(sendDistanceEffectDelay, 1400, cid, playerPos, target:getPosition(), CONST_ANI_ENERGY)
    addEvent(sendDistanceEffectDelay, 1700, cid, target:getPosition(), playerPos, CONST_ANI_ENERGY)
    addEvent(ninjaJumpDash, 1800, cid, target:getId(), playerPos, true, true)
    return false
end

1668298041979.png
 
Back
Top