Yoga Posted December 23, 2012 Posted December 23, 2012 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.. Quote
llchrisll Posted December 23, 2012 Posted December 23, 2012 (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 . Regards, Chris Edited December 23, 2012 by llchrisll Quote
Yoga Posted December 24, 2012 Author Posted December 24, 2012 i want all jobs get it skill back sliding if players warp map pvp_y_2-2 Quote
llchrisll Posted December 24, 2012 Posted December 24, 2012 Hmm it is giving all jobs? Except Thief Job Row which already have. Quote
AnnieRuru Posted December 25, 2012 Posted December 25, 2012 (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 December 26, 2012 by AnnieRuru Quote
Question
Yoga
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..
4 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.