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), [email protected]);
if(killedrid!=$MobTypeLow && killedrid!=$MobTypeMid && killedrid!=$MobTypeHard ) { end; }
[email protected]$ = strcharinfo(3);
.mobid = killedrid;
if ([email protected]) {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;
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), [email protected]); if(killedrid!=$MobTypeLow && killedrid!=$MobTypeMid && killedrid!=$MobTypeHard ) { end; } [email protected]$ = strcharinfo(3); .mobid = killedrid; if ([email protected]) {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