Jump to content
  • 0

Skill in map


Yoga

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   1
  • Joined:  06/06/12
  • Last Seen:  

Hello there,..my question is how to make script get

skill in map?

map: pvp_y_2-2

if player warp pvp_y_2-2 can use skill back sliding..

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  66
  • Reputation:   1
  • Joined:  06/06/12
  • Last Seen:  

i want all jobs get it skill back sliding if players warp map pvp_y_2-2

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Hmm it is giving all jobs? Except Thief Job Row which already have. :o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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
Link to comment
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.   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.

×
×
  • Create New...