Jump to content
  • 0

Skill in map


Question

4 answers to this question

Recommended Posts

Posted (edited)

Something like this?

-	script	PvPSkills	-1,{
end;

OnPCLoadMapEvent:
if(strcharinfo(3) != "pvp_y_2-2") end;
if(BaseClass == Job_Thief) end;
attachnpctimer;
initnpctimer;
skill 150,1,1;
end;

OnTimer5000:
if(strcharinfo(3) == "pvp_y_2-2")
if(getskilllv(150) > 0) end;
else
if(getskilllv(150) > 0)
	skill 150,0;
initnpctimer;
end;
}
pvp_y_2-2	mapflag	loadevent

Remember to exchange the spaces in the NPC header with TABS :P.

Regards,

Chris

Edited by llchrisll
Posted (edited)

OnPCStatCalcEvent_17043.patch

-	script	kjdhfkdjfhksh	-1,{
OnPCStatCalcEvent:
if ( strcharinfo(3) == "pvp_y_2-2" ) { // trigger in the map
	if ( @back_sliding_tmp ) // if already save the variable
		skill 150, 1, 0; // gives skills
	else { // or if just warp in the map
		if ( getskilllv(150) ) end; // check is it a thief class already learned the skill ?
		@back_sliding_tmp = 1; // if it is not then save the variables ...
		skill 150, 1, 0; // and gives the skills
	}
}
else if ( @back_sliding_tmp ) { // otherwise if the player warp to other map and the variable is still there
	@back_sliding_tmp = 0; // reset the variable
	skill 150, 0, 0; // and reset back the skill level
}
end;
}

Edited by AnnieRuru

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...