How setRandom() can be used to make more human like scripts

View previous topic View next topic Go down

How setRandom() can be used to make more human like scripts

Post by xbumis49 on Wed Oct 03, 2012 5:42 pm

Here is how setRandom() works

Random Waits
Code:

setRandom($var8,25)
ifVarEqual(1,$var8) print("Waiting 1000-7000")
ifVarEqual(1,$var8) wait(1000,7000)

or goto random procedure
Code:
:start:
setRandom($var1,5)
ifVarEqual(0,$var1) goto(:test1:)
wait(500)
ifVarEqual(1,$var1) goto(:test2:)
wait(500)
ifVarEqual(3,$var1) goto(:test3:)
wait(500)
goto(:start:)

:test1:
draw("@gre@test 0", 80, 200, 5)
wait(1000)
goto(:start:)

:test2:
draw("@gre@test 2", 80, 200, 5)
wait(1000)
goto(:start:)

:test3:
draw("@gre@test 3", 80, 200, 5)
wait(1000)
goto(:start:)



now everytime :start: runs it does this

Code:
setRandom($var1,5)
ifVarEqual(0,$var1) goto(:test1:)
wait(500)
ifVarEqual(1,$var1) goto(:test2:)
wait(500)
ifVarEqual(3,$var1) goto(:test3:)
wait(500)


every time :start: runs it randomly generates a number and sets it as a variable

on this line
setRandom($var1,5) it sets variable 1 as random 0-5

you could make it setRandom($var1,25) so every approximate 25 times :start: is ran it goes to a certain procedure

ifVarEqual(20,$var1) goto(:certainprocedure:)
wait(500)

therefore you could take a basic powerfisher, or autofighter and every 25 times the fight procedure or fish procedure runs through you could make it do something else, like attack a seperate monster, or walk somewhere else, take random breaks, or even change fishing spots....

Check out my gnome village power fly fisher right here I wrote quickly to change between two different fishing holes and take random waits...


Code:
;Gnome Village PowerFlyFisher
;---
;--
;-
;
;-
toggle("autosleep on")
toggle("autologin off")
toggle("modwarning on")
toggle("show combatmenu on")
:start:
goto(:startfish:)

:startfish:
setRandom($var1,3)
ifVarEqual(0,$var1) goto(:fish:)
wait(500)
ifVarEqual(1,$var1) goto(:fish2:)
wait(500)
ifVarEqual(2,$var1) goto(:fish3:)
wait(500)
goto(:startfish:)

:fish:
draw("@whi@fish", 80, 200, 5)
useObject(192)
wait(1000,1500)
sleep(79,87)
goto(:startfish:)

:fish2:
draw("@whi@fish2", 80, 200, 5)
useObject(192)
wait(2000,5500)
sleep(79,87)
setRandom($var4,7)
ifVarEqual(0,$var4) goto(:wait:)
wait(500)
ifVarEqual(1,$var4) goto(:wait2:)
wait(500)
ifVarEqual(2,$var4) goto(:wait3:)
wait(500)
goto(:startfish:)

:fish3:
useObject(192)
wait(2000,5500)
sleep(79,87)
setRandom($var2,16)
ifVarEqual(0,$var2) goto(:walk1:)
wait(500)
ifVarEqual(1,$var2) goto(:walk2:)
wait(500)
ifVarEqual(2,$var2) goto(:startfish:)
wait(500)
goto(:startfish:)

:walk1:
draw("@whi@walk1", 80, 200, 5)
walkTo(740,505)..
wait(1000,2000)
sleep(79,87)
goto(:startfish:)

:walk2:
draw("@whi@walk2", 80, 200, 5)
walkTo(736,512)..
wait(1000,2000)
sleep(79,87)
goto(:startfish:)

:walk3:
draw("@whi@walk3", 80, 200, 5)
walkTo(740,505)..
wait(1000,2000)
sleep(79,87)
goto(:startfish:)

:walk4:
draw("@whi@walk4", 80, 200, 5)
walkTo(736,512)..
wait(1000,2000)
sleep(79,87)
goto(:startfish:)

:wait2:
draw("@whi@wait", 80, 200, 5)
wait(1000,2000)
sleep(79,87)
goto(:startfish:)

:wait3:
draw("@whi@wait", 80, 200, 5)
wait(1000,2000)
sleep(79,87)
goto(:startfish:)


Last edited by xbumis49 on Fri Oct 05, 2012 11:37 pm; edited 3 times in total

xbumis49
New user

Posts : 165
Join date : 2012-08-02
Location : Bumis Land

Back to top Go down

Re: How setRandom() can be used to make more human like scripts

Post by deadHeadedZed on Wed Oct 03, 2012 7:56 pm

Just because I've been waiting to post a link to this somewhere:
link >>>RAH Scripting Resource! <<<link

deadHeadedZed
New user

Posts : 288
Join date : 2011-06-12

Back to top Go down

Re: How setRandom() can be used to make more human like scripts

Post by rahbotter22 on Thu Feb 14, 2013 7:44 pm

now i think your genuiess botting skills has payed off. lol that is smartest shit iv ever seen

rahbotter22
New user

Posts : 54
Join date : 2013-01-18

Back to top Go down

Re: How setRandom() can be used to make more human like scripts

Post by Sponsored content Today at 3:42 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum