Add skill by using OnPCStatCalcEvent dosn't work..

heroji

New member
Messages
50
Points
0
Github
heroji562
i have found this topic https://herc.ws/board/topic/11042-add-skills-through-scripts/

I have installed the pluglin OnPCStatCalcEvent and run this script by @AnnieRuru but seems not working when i add skill and changed equip, nothing happen..

prontera,155,185,5 script kjdshfkdjsf 1_F_MARIA,{
addjobskill = 0;
mes "select the type of skills you want to learn";
next;
addjobskill = select( "swordsman", "mage", "acolyte" );
mes "your skills will be added the next time you adjust your equipment !";
close;
OnPCStatCalcEvent:
switch ( addjobskill ) {
case 1:
skill "SM_BASH", 10;
skill "SM_PROVOKE", 10;
skill "SM_MAGNUM", 10;
break;
case 2:
skill "MG_FIREBOLT", 10;
skill "MG_LIGHTNINGBOLT", 10;
skill "MG_COLDBOLT", 10;
break;
case 3:
skill "AL_HEAL", 10;
skill "AL_INCAGI", 10;
skill "AL_BLESSING", 10;
break;
default:
}
end;
}



View attachment 5870

 
prontera,155,185,5 script kjdshfkdjsf 1_F_MARIA,{
// addjobskill = 0;
mes "select the type of skills you want to learn";
next;
addjobskill = select( "swordsman", "mage", "acolyte" );
mes "your skills will be added the next time you adjust your equipment !";
close2;
recalculatestat;
end;
OnPCStatCalcEvent:
switch ( addjobskill ) {
case 1:
skill "SM_BASH", 10;
skill "SM_PROVOKE", 10;
skill "SM_MAGNUM", 10;
break;
case 2:
skill "MG_FIREBOLT", 10;
skill "MG_LIGHTNINGBOLT", 10;
skill "MG_COLDBOLT", 10;
break;
case 3:
skill "AL_HEAL", 10;
skill "AL_INCAGI", 10;
skill "AL_BLESSING", 10;
break;
default:
}
}


please elaborate the term "not working"

I tried make a video about it and it cost 500MB, but my slow internet says need to upload this in 3 hours so I give up the idea uploading this to youtube

if somebody reply this isn't work, then I'll try to squeeze some of my internet quota to upload a video as a proof

 
Back
Top