Author Topic: CBot  (Read 4263 times)

0 Members and 1 Guest are viewing this topic.

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
CBot
« on: August 26, 2009, 06:49:20 AM »
0
Decided to work on something part time...

I really like my GBot project, decided it was time to play around with some ideas I've had.

This is the start of CervBot. Same basic idea, this one will be only a 2 client version. One master and a Bot. When certain conditions are met on the Main char, the Bot char will respond.

The GBot project was to teach me how to interact between clients using Global Variables. Now I want to see how quickly uoXL swap works. I'm pretty sure there will have to be some delays put in when swapping clients.

Code: [Select]
set %gheal 30
set %charID_1 #charID
repeat
  if C in #charstatus && #charGhost = NO
  {
    uoXL swap
    gosub castit 15 24 %charID_1 40
    uoXL swap
  }
  if #hits < ( #maxhits - %gheal ) && #charGhost = NO
  {
    uoXL swap
    gosub castit 15 28 %charID_1 40
    uoXL swap
  }
until #FALSE

;-------------------------------------
; %1 = Event Macro Param 1
; %2 = Event Macro Param 2
; %3 = Target ID or NONE
; %4 = Spell Delay
sub castit
  if %3 = NONE
  {
    event macro %1 %2
    wait %4
    return
  }
  finditem %3 G_8
  if #findkind = -1
    return
  set #ltargetID %3
  set #ltargetKind 1
  event macro %1 %2
  target 5s
  event macro 22 0
  wait %4
return

Simple, yes? I'll include a menu for more controls over the Bot. I want to make this just like the GBot so that user's can just look at the code and configure it to their own needs. Same for the menu buttons, simple enough that someone can add their own (maybe even a button to add a new button to the menu??)

Updated 08/31/09 : added variable %charID_1

This works incredible. Really the better way to run a bot, just use one script. I didn't even have to add in any pauses at all. Next is including EN's slick client swap checker.
« Last Edit: September 10, 2009, 05:02:56 AM by Cerveza »
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: CervBot
« Reply #1 on: August 26, 2009, 07:53:29 AM »
0
This is the simple but effective sub ive always used for Swapping clients.  (This way you can have more than 2 open and it will still find the rigth client.  Its Pretty fun stuff

EDIT Code moved to my Snippets thread.

See here for code -->  http://www.scriptuo.com/index.php?topic=2454.msg18806#msg18806
« Last Edit: September 01, 2009, 06:55:33 AM by Endless Night »
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: CervBot
« Reply #2 on: August 26, 2009, 07:54:16 AM »
0
Thanks EN, that will fit right in.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: CervBot
« Reply #3 on: August 31, 2009, 08:19:39 AM »
0
I had to add in a variable for the main char's ID. The client swap works awesome. Very quick and no pauses required so far.

Next is adding in EN's slick client swapper to make sure your on the right char. I'm writing this for 2 as I only have 2 active accounts, but there's no reason it couldn't be expanded to run more.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Scrripty

  • Guest
Re: CervBot
« Reply #4 on: August 31, 2009, 02:51:58 PM »
0
I had to add in a variable for the main char's ID. The client swap works awesome. Very quick and no pauses required so far.

Next is adding in EN's slick client swapper to make sure your on the right char. I'm writing this for 2 as I only have 2 active accounts, but there's no reason it couldn't be expanded to run more.

I'm going to play around with this some also.  I've seen uoXLswap used in a couple scripts, but I didn't use it enough.  I'm posting so I get updates on this. :)  I hope it's alright if I post something interesting later tho...

Offline CervezaTopic starter

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: CervBot
« Reply #5 on: August 31, 2009, 08:43:47 PM »
0
Np at all, glad your on board Twinkle McNugget.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline tehmt

  • Jr. Member
  • **
  • Posts: 27
  • Activity:
    0%
  • Reputation Power: 0
  • tehmt has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: CBot
« Reply #6 on: February 16, 2014, 02:17:26 PM »
0
so where are those mad subs for this you all did in the last 5 years ?

Offline Xanderyum

  • Full Member
  • ***
  • Posts: 143
  • Activity:
    0%
  • Reputation Power: 2
  • Xanderyum has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: CBot
« Reply #7 on: February 16, 2014, 02:40:17 PM »
0
Woah dude, hold up!  That's no way to jump in here!  Where is the chit chat?  The verbal foreplay?  How long have you been lurking on this thread?  Easy man!, you have to take your time around here!  I've been following this thread for awhile, and I'm not even ready to ask for a dance yet.  Sheesh! Kids these days...........Now apologize and kindly wait your turn.

Offline Xanderyum

  • Full Member
  • ***
  • Posts: 143
  • Activity:
    0%
  • Reputation Power: 2
  • Xanderyum has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: CBot
« Reply #8 on: February 16, 2014, 02:43:01 PM »
0
(clears throat) uhh, hey guys.....How's the weather?  I simply love what your wearing today......hehe ummmm....Nice shoes?

Would your Script Kings like to dance?
  But really, you have some mad subs? Gbot? so lost.........

Tags: