Hello, I'm having some trouble adding an XP/Hour, Tickets Gained, Time Running, and games played feature.
I ripped this just to give me an idea of how it will work, but I keep getting errors with it.
This is for a range guild script, so there is no set XP.
It's telling me SMART_DrawText and SMART_ClearCanvas are undefined strings. I just want it to display in the client, above the chat box.
Errors:Code:procedure Progress; var i:Integer; begin ClearDebug; Line[0] := '|| XP/Hour: ' + inttostr(((3600*TotalXpGain) / (1+(GetTimeRunning/1000)))); Line[1] := '|| Total Xp: ' + inttostr(TotalXpGain); Line[2] := '|| Time Running: ' + MsToTime(GetTimeRunning,3); for i:=0 to High(Line) do begin writeln(Line[i]); end; SMART_ClearCanvas; SMART_DrawText(10,270-50,StatChars,Line[0] ,clWhite); SMART_DrawText(10,290-50,StatChars,Line[1] ,clWhite); SMART_DrawText(10,310-50,StatChars,Line[2] ,clWhite); end; begin SetupSRL; P07_DeclarePlayer; SetupP07Include; ActivateClient; ClearDebug; TotalXpGain := 0; ClearDebug; Wait(1000); If (Not P07_LoggedIn) then begin P07_LogInPlayer; end; DTM; repeat Progress; AntiBan; Open_Inv_Tab; Start_Comp; Click_to_Continue; Wield_Arrow; AntiBan; Fire_Target; until(competitionsplayedcount = PlayCompetitions); begin writeln('Number of Competitions completed!'); writeln('Logging out...'); MMouse(644,483,5,5); ClickMouse2(mouse_left); wait(randomrange(500,1500)); MMouse(633,378,5,5) ClickMouse2(mouse_left); end; AddOnTerminate('FreeDTMz'); TerminateScript; end.[Error] C:\Users\Cameron\Downloads\AutoRangeGuilder_11[1.55] (1).simba(317:3): Unknown identifier 'SMART_ClearCanvas' at line 316
Compiling failed.This is at the very bottom of the script.[Error] C:\Users\Cameron\Downloads\AutoRangeGuilder_11[1.55] (1).simba(318:3): Unknown identifier 'SMART_DrawText' at line 317
Compiling failed.


Reply With Quote












