Назад

И снова о линках

Автор: dimjke: Дата: 04.23.2010

На форуме на нашёл ни одного рабочего скрипта для получения линка,
может быть кто знает или подскажет как вообще реализовать такое?:mellow:

Автор: dimjke: Дата: 04.25.2010

Да, пробывал он не рабочий и накладывает только эффект.
Вообщем сначала в db/skill_db.txt строки

445,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_ALCHEMIST,Spirit of the Alchemist
447,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_MONK,Spirit of the Monk
448,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_STAR,Spirit of the Star Gladiator
449,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_SAGE,Spirit of the Sage
450,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_CRUSADER,Spirit of the Crusader
451,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_SUPERNOVICE,Spirit of the Supernovice
452,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_KNIGHT,Spirit of the Knight
453,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_WIZARD,Spirit of the Wizard
454,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_PRIEST,Spirit of the Priest
455,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_BARDDANCER,Spirit of the Artist
456,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_ROGUE,Spirit of the Rogue
457,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_ASSASIN,Spirit of the Assasin
458,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_BLACKSMITH,Spirit of the Blacksmith
460,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_HUNTER,Spirit of the Hunter
461,9,6,16,0,0x1,0,5,1,yes,0,0x200,0,magic,0, SL_SOULLINKER,Spirit of the Soul Linker

заменяем их на
445,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_ALCHEMIST,Spirit of the Alchemist
447,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_MONK,Spirit of the Monk
448,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_STAR,Spirit of the Star Gladiator
449,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_SAGE,Spirit of the Sage
450,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_CRUSADER,Spirit of the Crusader
451,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_SUPERNOVICE,Spirit of the Supernovice
452,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_KNIGHT,Spirit of the Knight
453,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_WIZARD,Spirit of the Wizard
454,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_PRIEST,Spirit of the Priest
455,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_BARDDANCER,Spirit of the Artist
456,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_ROGUE,Spirit of the Rogue
457,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_ASSASIN,Spirit of the Assasin
458,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_BLACKSMITH,Spirit of the Blacksmith
460,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_HUNTER,Spirit of the Hunter
461,9,6,16,0,0x1,0,5,1,yes,0,0,0,magic,0, SL_SOULLINKER,Spirit of the Soul Linker


далее создаем любой файл и пишем в него следующее

prontera,156,176,5 script ashdakhsd 100,{
callfunc "healer_soullink";
close;
}

function script healer_soullink {
if ( ( class >= 0 && class <= 6 ) || // novice and 1st job
( class >= 4023 && class <= 4029 ) || // baby novice and baby 1st job
( class == 4046 || class == 24 || class == 25 ) || // Taekwon / ninja / star gladiator
( class == 22 || class == 26 ) ) { // wedding & xmas
mes "[Healer]";
mes "You are not in the jobs to receive soul link...";
mes " >_< ";
emotion 25; // sob
return;
} else {
mes "[Healer]";
mes "Soul Link ~ !!";
emotion 2; // ho
if ( class == 7 || class == 4008 || class == 4030 || // knight
class == 13 || class == 4014 || class == 4036 ) // knight with peco
unitskilluseid getcharid(3),452,5;
else if ( class == 14 || class == 4015 || class == 4037 || // crusader
class == 21 || class == 4022 || class == 4044 ) // crusader with peco
unitskilluseid getcharid(3),450,5;
else if ( class == 12 || class == 4013 || class == 4035 ) // assassin
unitskilluseid getcharid(3),457,5;
else if ( class == 17 || class == 4018 || class == 4040 ) // rogue
unitskilluseid getcharid(3),456,5;
else if ( class == 10 || class == 4011 || class == 4033 ) // blacksmith
unitskilluseid getcharid(3),458,5;
else if ( class == 18 || class == 4019 || class == 4041 ) // alchemist
unitskilluseid getcharid(3),445,5;
else if ( class == 11 || class == 4012 || class == 4034 ) // hunter
unitskilluseid getcharid(3),460,5;
else if ( class == 19 || class == 4020 || class == 4042 || // bard
class == 20 || class == 4021 || class == 4043 ) // dancer
unitskilluseid getcharid(3),455,5;
else if ( class == 8 || class == 4009 || class == 4031 ) // priest
unitskilluseid getcharid(3),454,5;
else if ( class == 15 || class == 4016 || class == 4038 ) // monk
unitskilluseid getcharid(3),447,5;
else if ( class == 9 || class == 4010 || class == 4032 ) //wizard
unitskilluseid getcharid(3),453,5;
else if ( class == 16 || class == 4017 || class == 4039 ) // sage
unitskilluseid getcharid(3),449,5;
else if ( class == 4049 ) // soul linker
unitskilluseid getcharid(3),461,5;
else if ( class == 4047 || class == 4048 ) // star gladiator
unitskilluseid getcharid(3),448,5;
else if ( class == 23 || class == 4045 ) // super novice
unitskilluseid getcharid(3),448,5;
else if ( upper == 1 ) // upper class - non 3rd job
unitskilluseid getcharid(3),494,5;
return;
}
}


(c) eathena.ws