minx123 2 Posted July 11, 2015 (edited) here the script.. i want use for certain map only.. - script mypvppoints -1,{OnInit: bindatcmd "pvppoints",strnpcinfo(3)+"::OnAtcommand"; end;OnAtcommand:dispbottom "[ PvP Points ] : Your PvP Points: "+PvPPoints;end;}- script check player -1,{OnPCLoginEvent: if(!PvPPoints) { PvPPoints = 0; PvPWarning = 0; } end;}- script PvPPointTimer -1,{OnTimerStart: sleep2 90000; PvPFlag = 0; end;}- script PvP Points -1,{OnPCKillEvent:for (set @i,0; @i < getarraysize(.Open_Maps$); set @i,@i+1)if( strcharinfo(3) == .Open_Maps$[@i] ) { if(PvPFlag && (killedrid == PrevKilled)) { PvPWarning += 1; if(PvPWarning >= .cons_kill_count) { PvPPoints -= .deducted_points; callsub L_PointCheck,PvPPoints; dispbottom "You've lost "+.deducted_points+" PvP Points."; dispbottom "You now have "+PvPPoints+" Points."; PvPWarning = 0; callsub Timer; } PvPPoints += .added_points; dispbottom "You've been awarded "+.added_points+" PvP Point."; dispbottom "You now have "+PvPPoints+" Points."; Timer: awake "PvPPointTimer"; PvPFlag = 1; doevent "PvPPointTimer::OnTimerStart"; end; } if ( killedrid == getcharid(3) ) { PvPPoints -= .deducted_points; callsub L_PointCheck,PvPPoints; dispbottom "You've lost "+.deducted_points+" PvP Point."; dispbottom "You now have "+PvPPoints+" Points."; end; } callsub AddPoint; attachrid(killedrid); PvPPoints -= .deducted_points; callsub L_PointCheck,PvPPoints; dispbottom "You've lost "+.deducted_points+" PvP Point."; dispbottom "You now have "+PvPPoints+" Points."; detachrid; AddPoint: PvPPoints += .added_points; dispbottom "You've been awarded "+.added_points+" PvP Point."; dispbottom "You now have "+PvPPoints+" Points."; PrevKilled = killedrid; PvPFlag = 1; doevent "PvPPointTimer::OnTimerStart"; end;L_PointCheck: if(getarg(0) < 0) PvPPoints = 0; return; end;} Edited July 11, 2015 by minx123 Quote Share this post Link to post Share on other sites
0 Winterfox 83 Posted July 11, 2015 (edited) Replace: setarray .Open_Maps$[0],"guild_vs3","guild_vs1","payg_cas01","gefg_cas01","prtg_cas01"; with: setarray .Open_Maps$[0], "guild_vs3","payg_cast01","gefg_Cast01","prtg_cas01","guild_vs1","guild_v5"; Edited July 11, 2015 by Winterfox Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted July 12, 2015 @@minx123 here check it in my pastebin http://pastebin.com/VGyrkNq8 1 minx123 reacted to this Quote Share this post Link to post Share on other sites
0 minx123 2 Posted July 12, 2015 @@minx123 here check it in my pastebin http://pastebin.com/VGyrkNq8 thx.. its work.. Quote Share this post Link to post Share on other sites
here the script..
i want use for certain map only..
Share this post
Link to post
Share on other sites