Hi ! can anyone edit my this script .. I made a share exp for event MOTD . but I need to check if the member is on the same map with the mob killer because every time I kill a monster an exp applies on members wherever they are. Thanks a lot guys
OnNPCKillEvent:
query_sql ("SELECT `exp` FROM `party` WHERE `party_id` = "+ getcharid(1), .@exp);
if(killedrid!=$MobTypeLow && killedrid!=$MobTypeMid && killedrid!=$MobTypeHard ) { end; }
.@map$ = strcharinfo(3);
.mobid = killedrid;
if (.@exp) {addrid(2,0,getcharid(1));}
dispbottom "[Monster of the Day]: Experience Gained Base:"+strmobinfo(6,.mobid)+" Job:"+strmobinfo(7,.mobid)+"";
set BaseExp,(BaseExp+strmobinfo(6,.mobid));
set JobExp,(JobExp+strmobinfo(7,.mobid));
end;
Question
Eross
Hi ! can anyone edit my this script .. I made a share exp for event MOTD . but I need to check if the member is on the same map with the mob killer because every time I kill a monster an exp applies on members wherever they are. Thanks a lot guys
OnNPCKillEvent: query_sql ("SELECT `exp` FROM `party` WHERE `party_id` = "+ getcharid(1), .@exp); if(killedrid!=$MobTypeLow && killedrid!=$MobTypeMid && killedrid!=$MobTypeHard ) { end; } .@map$ = strcharinfo(3); .mobid = killedrid; if (.@exp) {addrid(2,0,getcharid(1));} dispbottom "[Monster of the Day]: Experience Gained Base:"+strmobinfo(6,.mobid)+" Job:"+strmobinfo(7,.mobid)+""; set BaseExp,(BaseExp+strmobinfo(6,.mobid)); set JobExp,(JobExp+strmobinfo(7,.mobid)); end;
Link to comment
Share on other sites
5 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.