SRL Archive - Discussions and Debates

Need help.


Laimonas171

2012-10-11 13:38:32

I trying to remember how to script (scar) now simba, I wasn't very good at scar, but want to learn simba (I know it's quite the same) just a lot of updates was done, and It's hard to start, anybody can suggest new tutorials, because one i found do not work properly.
right now I trying to check functions. (http://www.youtube.com/watch?v=qfumZWrm_DE&feature=youtu.be&hd=1)

I have something like:
I have disabled smart, for testing it's easier.
and Stats.simba is not found i double checked folder.
//{$DEFINE SMART}
{$i SRL/SRL.simba}
//{$i SRL/SRL/Misc/Stats.simba}


Function SkillAction:Boolean;
var
x, y: Integer;
Begin
//FindObjCustom(x, y, ['att', 'ack'], [3176305, 2650497, 4089641], 10);
If FindObjCustom(x, y, ['own', 'hop'], [794135], 30) Then
WriteLn('I found a tree!');

End;

This function should find, and hover tree i think, but instead of that, mouse just moving arround, with some stops. And i getting alot of lines at debug box;

New window: 984534
Compiled successfully in 453 ms.
SRL Compiled in 0 msec
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Successfully executed.
Successfully saved: C:\Simba\Scripts\test.simba

any ideas? :)

masterBB

2012-10-11 15:12:34

This causes the error:

[YOUTUBE]Z8I5Fk8hXA8[/YOUTUBE]