Jump to content
  • 0
Sign in to follow this  
heroji

Add skill by using OnPCStatCalcEvent dosn't work..

Question

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;
	}

Untitled.png

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.