NPC Code:
if (actionservercheck) {
this.exp = #p(0); //should be this.exp = strtofloat(#p(0))
setstring lastattacker,#p(1); //should be this.lastattacker
with (getplayer(#s(this.lastattacker))) {
setstring client.player_exp,#v(strtofloat(#s(client.player_e xp)) +this.exp);
setplayerprop #c,I now have #s(client.player_exp) EXP!;
}
}
does this work at all? I havn't tested it but It should, unless I missed yet another bug.