Page 1 of 1

Shadowknight Spells

Posted: Fri Jul 11, 2014 2:48 am
by Dello0000
List of Shadowknight spells.
(Done with the Shadowknight until scripts and implementation are finished.)

Working

Code: Select all

Malice
Dark Blade
Soulrend
Unholy Hunger I
Painbringer I & II
Insidious Whisper
Blasphemy
Siphon Strike I
Unholy Blessing I
Hateful Slam
Cleave Flesh
Harm Touch
Shadow Coil
Almost Working

Code: Select all

Death Cloud - AoE hits player.
Unending Agony - Aoe....
Not Working

Code: Select all

Unholy Hunger II - Needs % based code.
Painbringer III - Needs % based code.
Siphon Strike II - Needs % based code.
Unholy Blessing II - Needs % based code.
Unholy Strength - Needs % based code.
Devour Vitae - Needs % based code.
Dreadful Wrath - Needs % based code.
Tap Veins - Needs % based code.
Seething Hatred - Too complex for me.
Touch of Death - Too complex for me.
Bloodletter - Too complex for me.
Pestilence - Too complex for me.
Death March - Too complex for me.
Shadowy Elusion - Too complex for me.
Devouring Mist - Too complex for me.
Mana Sieve - Too complex for me.
Lucan's Pact - Unimplemented effects.
Devious Evasion - Unimplemented effects.
Grave Sacrament - Unimplemented effects.
Mortal Embrace - Basically a feign death cant test by myself.
Siphon Strength - Cant get the script to buff player after debuff.
If you can fix any of these scripts ill get all the data put in.

Re: Shadowknight Spells

Posted: Mon Jul 14, 2014 3:54 pm
by Jabantiz
Fixed:
Insidious Whisper - `call_frequency` on the tiers tab was not set up at all
Blasphemy - Variables used did not match the parameters of the cast function

Not Fixed:
Lucan's Pact - what is no implemented? if you mean the armor effectiveness well sadly we have nor armor calculations at the moment.
Unholy Hunger II - Would need to use the name code, I saw elsewhere that you said it wasn't working I will look into that

Re: Shadowknight Spells

Posted: Tue Jul 15, 2014 10:07 am
by Dello0000
Jabantiz wrote:Fixed:
Insidious Whisper - `call_frequency` on the tiers tab was not set up at all
Blasphemy - Variables used did not match the parameters of the cast function

Not Fixed:
Lucan's Pact - what is no implemented? if you mean the armor effectiveness well sadly we have nor armor calculations at the moment.
Unholy Hunger II - Would need to use the name code, I saw elsewhere that you said it wasn't working I will look into that
How did i miss the call data... amateur! lol altho none of them had any by default so... plus i was no doubt thinking it was something epic that goes right the the heart of government pmsl.

Yeah Armor effectiveness and i think armor mitigation. I didn't want to just add the spell's data in until the script actually works.
Yeah the spell your thinking off is the Mend ability for the monk. As i didn't make the code i don't know how to alter it, it looks like it should work tho :\

Thanks for those two, ill give them a go and if they both work ill get the higher level ones in as well :) yay teamwork!

[EDIT] Just realized i was quite lazy there :p here's the % based scripts your looking for. (as of now they don't work)

Mend
Mend II
Mend III
Mend IV
Mend V

[EDIT #2]Blasphemy's still crashing the server, i gave it the once over and still don't know why its acting all retarded. Also, and this also goes for all "group encounter" spells, if it has a knockdown or a (debuff?)(DoT?) it only triggers on the non targeted members of the encounter as appose to all of them (inc primary target) so that will need looked at, i don't think its a script error, more like server code. So to recap blasphemy spells still throwing tantrums.

[EDIT: for the last time] Ok, Well i got pissed off with Blasphemy so i just deleted the code and started again using my notepad of script code. Just a case of splicing them together.

From

Code: Select all

function cast(Caster, Target, HateMin, HateMax, ResistBonus)
    if HateMax ~= nil and HateMin < HateMax then
        AddHate(Caster, Target, math.random(HateMin, HateMax), 1)
    else
        AddHate(Caster, Target, HateMin, 1)
    end

    AddSpellBonus(Target, 202, ResistBonus)

    Interrupt(Target)
end

function remove(Caster, Target)
    RemoveSpellBonus(Target)
end
Too

Code: Select all

function cast(Caster, Target, MinVal, MaxVal, ResistAmt)
    if MaxVal ~= nil and MinVal < MaxVal then
        AddHate(Caster, Target, math.random(MinVal, MaxVal), 1)
    else
        AddHate(Caster, Target, MinVal, 1)
    end

    if target ~= nil then
    Interrupt(Target)
    end

    AddSpellBonus(Target, 202, ResistAmt)
end


function remove(Caster, Target)
    RemoveSpellBonus(Target)
end
Re-ordered the script and apart from that it looks like the interrupt was missing an "if target" The only thing left is the whole group encounter stuff only working on the additional group members and not the main target. But... yay! re-write worked!

Re: Shadowknight Spells

Posted: Tue Jul 15, 2014 5:11 pm
by Dello0000
Last thing before i go to bed, Hate also doesn't show on encounter (apart from main target) I think its all server side, that being said Insidious Whisper doesn't show a hate number (like you would see with a heal or damage) so ill try and get that in the script tomorrow. Its nice to see how much hate your "hitting?" for :)

Re: Shadowknight Spells

Posted: Wed Jul 16, 2014 3:20 am
by Dello0000
Had to rework Hateful Slam because its hate gain was somehow hitting the player as damage :? so i rewrote the hate part so its working and visible like damage. Also added two more in but there higher level variants are seemingly all % based... which is a pain in the ass in terms of scripting.

Unholy Strength is another % based spell but it adds spell damage... No idea what that would be or if it shows up under offense when pressing C? It doesn't seem to work atm, maybe because the script isn't telling it to do a % or maybe its because spell damage isn't implemented.

Mortal Embrace cant be tested because i don't have a group member. Any chance of having a "group member" or friendly npc spawned in the gm zone? Also, "LUA Error: LUA ClearHate command error: spawn is not NPC"??

Shadow Coil Well spent a good wee while trying to get this working, script works, data works but when i test it its doing DoT + DoT instead of DD + Dot Its as if its not doing the DD code. Could you please take a look at that for me? it shouldn't take you long :p

Reworked the Shadow Coil spell, it now does the main damage and 4 ticks of its DoT. Just couldn't get the DD + DoT on the first hit of the spell so DD then the DoT will have to do. (+ if one of them two resisted it would continue with the DoT and be able to cast again even tho the dot hit.

Siphon Strength kind of works, there was no script so i added what i could, but i don't exactly know how to make the self buff work. Should debuff mob and buff player, got it debuffing the target (mob) but not buffing the player.

Re: Shadowknight Spells

Posted: Sat Jul 19, 2014 3:14 am
by Dello0000
So much for thinking the shadowknight would be one of the most complete classes PMSL all those % scripts and just plain hard to code ones....