WorldSeed Posted April 12, 2016 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 56 Reputation: 0 Joined: 02/19/16 Last Seen: February 26, 2020 Share Posted April 12, 2016 - script Sample -1,{ OnPCLoadMapEvent: attachnpctimer strcharinfo(0); initnpctimer; end; OnTimer300000: if( strcharinfo(3) == "prontera" ){ dispbottom "Gained some EXP at prontera."; set BaseExp,BaseExp + 10000; set JobExp,JobExp + 10000; initnpctimer; }else{ stopnpctimer; } end; } just wanted to know how to add just for group id lvl 1 only? thanks Quote Link to comment Share on other sites More sharing options...
0 Secrets Posted April 12, 2016 Group: Developer Topic Count: 36 Topics Per Day: 0.01 Content Count: 588 Reputation: 438 Joined: 01/26/16 Last Seen: April 16 Share Posted April 12, 2016 change if( strcharinfo(3) == "prontera" ) { to if( getgroupid() == 1 && strcharinfo(3) == "prontera" ){ Quote Link to comment Share on other sites More sharing options...
Question
WorldSeed
- script Sample -1,{
OnPCLoadMapEvent:
attachnpctimer strcharinfo(0);
initnpctimer;
end;
OnTimer300000:
if( strcharinfo(3) == "prontera" ){
dispbottom "Gained some EXP at prontera.";
set BaseExp,BaseExp + 10000;
set JobExp,JobExp + 10000;
initnpctimer;
}else{
stopnpctimer;
}
end;
}
just wanted to know how to add just for group id lvl 1 only? thanks
Link to comment
Share on other sites
1 answer 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.