Hey guys, once again I need your godlike scripting skills.
So, I am using this STALKER NPC ( which gives stalker the skill so it saves time having to dual log/ask someone to hit them ). However, whenever I change my equip, the skill disappears. No errors on map server or anything. If I relog, the skill returns. ( This bug is only in case I use the NPC, If I copy it normally via reproduce/plagiarism it stays normally even if I change my equip ).
Here is the script:
Mellina,47,83,4 script Stalker 747,{
if ( StalkerSkill != 0 )goto Remove_Skill;
if ( getskilllv(225) == 0 ) goto End_Talk;
if ( getskilllv(225) > 0 ) goto Start_Talk;
Remove_Skill:
skill StalkerSkill,0,0;
set StalkerSkill,0;
dispbottom "[ Stalker NPC ] : Previous Skills have been removed..";
dispbottom "[ Stalker NPC ] : Skill Icon remained. But without any effect";
end;
End_Talk:
mes "[ ^FF0000Stalker NPC^000000 ]";
mes "Please make sure you have the skills required to copy skills.";
close;
// -- Edit Format : "<Skill Name>", for each case at a new line in order for a Better viewing..
Start_Talk:
mes "[ ^FF0000Stalker NPC^000000 ]";
mes "Choose which skill you want to copy..It costs however 500.000 to give you a skill.";
next;
switch(select("Jupitel Thunder", // Case 1:
"Storm Gust", // Case 2:
"Lord of Vermillion", // Case 3:
"Arrow Repel", // Case 4:
"Acid Demonstration", // Case 5:
"Spear of Ice", // Case 6:
"Wind Blade", // Case 7:
"Sacrifice", // Case 8:
"Bowling Bash", // Case 9:
"Pressure" // Case 10:
)){
// -- Edit Format : callsub S_CopySkill,<Skill ID>,<Skill Level 10>,<Skill Cost>;
// -- Leave the Level as 10 better.because after they relog ..they will auto get level 10 Skills.
// -- I think can add up to 128 Case. Which is 128 Skills choose-able~
// -- If you want it to announce then add "announce" at the back of <skill cost> like Case 10.
case 1: callsub S_CopySkill,84,10,500000; // Jupitel Thunder
case 2: callsub S_CopySkill,89,getskilllv(225),500000; // Storm Gust
case 3: callsub S_CopySkill,85,10,500000; // Lord of Vermillion
case 4: callsub S_CopySkill,148,10,500000; // Arrow Repel
case 5: callsub S_CopySkill,490,10,500000; // Acid Demonstration
case 6: callsub S_CopySkill,537,10,500000; // Spear of Ice
case 7: callsub S_CopySkill,540,10,500000; // Wind Blade
case 8: callsub S_CopySkill,368,5,500000; // Sacrifice
case 9: callsub S_CopySkill,62,10,500000; // Bowling Bash
case 10: callsub S_CopySkill,367,5,500000; // Pressure
}
S_CopySkill:
if ( Zeny < getarg(2)){
mes "[ ^FF0000Stalker NPC^000000 ]";
mes "You must have at least "+getarg(2)+" Zeny to get the Skill.";
close;
}
skill getarg(0),getarg(1),0;
set Zeny,Zeny-getarg(2);
set StalkerSkill,getarg(0);
dispbottom "[ Stalker NPC ] : Check Your Skill Tree Now under ' Misc' for the New Skill.";
dispbottom "[ Stalker NPC ] : You must be 600/250 for the skill to be preserved or else it will disappear after you use it once.";
close;
OnPCLoginEvent:
if ( StalkerSkill != 0 ){
skill StalkerSkill,getskilllv(225),0;
}
end;
}
And here some screens:
Note that: 1: The npc works fine without any errors, it gives me the skill.
2: If I change equips, the skill disappears!
3: If I relog, the skill returns.
This is a problem because during PVP / WOE / ETC it's not possible to change equips ( ANY equip ) and ruins the entire idea of the npc.
I just searched eathena and realized it's @Emistry scripts maybe you can help me ?
Question
Cephaler
Hey guys, once again I need your godlike scripting skills.
So, I am using this STALKER NPC ( which gives stalker the skill so it saves time having to dual log/ask someone to hit them ). However, whenever I change my equip, the skill disappears. No errors on map server or anything. If I relog, the skill returns. ( This bug is only in case I use the NPC, If I copy it normally via reproduce/plagiarism it stays normally even if I change my equip ).
Here is the script:
And here some screens:
Note that: 1: The npc works fine without any errors, it gives me the skill.
2: If I change equips, the skill disappears!
3: If I relog, the skill returns.
This is a problem because during PVP / WOE / ETC it's not possible to change equips ( ANY equip ) and ruins the entire idea of the npc.
I just searched eathena and realized it's @Emistry scripts maybe you can help me
?
Link to comment
Share on other sites
15 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.