summaryrefslogblamecommitdiff
path: root/npc/magic/level0-wand.txt
blob: 1c3d7b2b6bea8b4135b20939c10bf2fde469fb76 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                 
                         
                                 
                                          


                                            

                      
                                                     




                                                      
// The Mana World script
// Author: Jesusalva <jesusalva@themanaworld.org>
//
// Magic Script: SKILL_CONFRINGO (Level 1)
// School: General 0

function	script	SK_Confringo	{
    // Additional checks
    if (QL_MORGAN == 2)
        set QL_MORGAN, 3;
    // Effective magic code
    .@PW=90+(7*@skillLv);
    .@dmg=AdjustSpellpower(.@PW);
    .@max=(1+getskilllv(SKILL_MAGIC))*100;
    // Noobs adjustment
    if (.@dmg < readparam(bInt))
        .@dmg=rand2(.@dmg, readparam(bInt));
    // Pro adjustment
    if (.@dmg > .@max)
        .@dmg = .@max + ((.@dmg - .@max) * 30 / 100);
    harm(@skillTarget, .@dmg, HARM_MAGI, Ele_Neutral);
    return;
}