check my last post i have another question.
well ive been trying to get my script to use the global stats. i have it do everything but it doesnt send the xp gained for some reason. this is what i have in my script to find the xp gained.
SCAR Code:
Function exp:integer;
Begin
Case LowerCase(Players[CurrentPlayer].String1) Of
'bronze' : xp:=91;
'iron' : xp:=12 * CountItemBmpTol(Bar,10);
'steel' : xp:=157;
'silver' : xp:=387;
'gold' : xp:=630;
'mith' : xp:=150;
'addy' : xp:=280;
'rune' : xp:=255;
End;
Begin
Result := xp;
Players[CurrentPlayer].Integer3:=Players[CurrentPlayer].Integer3 + xp;
begin
ReportVars[3]:= ReportVars[3] + xp;
end;
End;
End;
anyone find anything wrong with this or why it wont send the var to global stats?
also i have like the same thing for bars made and it works.
SCAR Code:
Function totalbars:integer;
begin
Case LowerCase(Players[CurrentPlayer].String1) Of
'bronze' : barsmade:=14;
'iron' : barsmade:=CountItemBmpTol(Bar,10);
'steel' : barsmade:=9;
'silver' : barsmade:=28;
'gold' : barsmade:=28;
'mith' : barsmade:=5;
'addy' : barsmade:=4
'rune' : barsmade:=3;
End;
Begin
Result := barsmade;
end;
begin
ReportVars[1] := ReportVars[1] + CountItemBmpMaskTol(BarMask,20,25);
BarMade:= Players[CurrentPlayer].Integer1 * BarsMade;
end;
end;
im confused...