Author Topic: Stealing Power Scrolls  (Read 11204 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
Stealing Power Scrolls
« on: November 05, 2008, 06:31:57 AM »
0
Another subject resurrected from the lost boards....

If someone wants to run with it -

Here's how I see this working....

Menu with a button. Click the button and mouse changes to targetting. You target the guy you want to check. Once you get into snooping range, the script opens his pack and examines the contents.

Script will look for ALL +20 Scrolls in his pack, then steal one based on the rating. Magery, Swords, Eval, whatever... order can be set in the script.

If no +20 Scrolls, script looks for +15's and evaluates them the same way.

Last the script does the same for +10's.

I'd say the menu should include such things as

+20 Checkbox
+15 Checkbox
+10 Checkbox

(So you can ONLY look for 20's if you want, or only look at 20's or 15's)

Maybe a "Target/Steal" Toggled button. First you set the target, then you can maneuver into position and hit the steal button.

StarRoom Checkbox - when checked, after the steal it will pathfind to the gate and auto click it and a destination for you. This will work even if they have it stoned off.

This might be of interest to me, since my Sampire needs a make over. I might just have a Stealth/Thief with Fencing.
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 Nicar

  • Full Member
  • ***
  • Posts: 198
  • Activity:
    0%
  • Reputation Power: 0
  • Nicar has no influence.
  • Respect: +20
  • Referrals: 0
    • View Profile
Re: Stealing Power Scrolls
« Reply #1 on: November 05, 2008, 06:46:21 AM »
0
I'm not going to add this to any of my lists of projects, since I'm also behind on those, plus I have no thief. Though, one isn't need to make the script, you can still make it without a thief. Just wanted to mention....   Stat Scrolls too,  +25, 20, and so forth. Cannot forget about stealing them bad boys.

The search and assigning the values will be easy, just have to manage the time, every split second will count. Whoever tries to tackle this, remember, logical search/indexing.

Offline Konesky

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Konesky has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Stealing Power Scrolls
« Reply #2 on: November 07, 2008, 01:18:31 AM »
0
To get you started... heres a little script i wrote long long ago, I haven't run it in a couple years and its pretty archaic so I'm not sure if it works or how pretty it is but its basically a gate click-through... get close to any gate (IE star room) and she throws ya through to Luna ASAP

I used to lurk around in the Star Room on my thief and used to run it in the background even when I hunted champs to help me avoid thieves in the star room...

Code: [Select]
; Konesky's Gate Clickthrough... Get within 1 tile of a moongate
; And it will toss you through to Luna. Do not need to stand on
; the gate tile, just beside, will continue to try even after your
; in Luna. Can run passively in the background...
set %x1 17
set %y1 116
set %x2 208
set %y2 42
set %x3 23
set %y3 220
;=================================================
Start:
finditem OTF G_1
If #findkind <> -1
{
 set #lobjectid #findid
 event macro 17
}
If #contsize = 380_280 && #contname = generic_gump && #contid = N/A ;&& #contkind = GJZ
{
 For %i 1 3
 {
  gosub setclick %i
  wait 1
  click %x %y
 }
}
wait 5
goto Start
;=================================================
sub setclick
set %x %x . %1 + #contposx
set %y %y . %1 + #contposy
return

« Last Edit: November 07, 2008, 01:24:49 AM by Konesky »

Offline bendel

  • Full Member
  • ***
  • Posts: 215
  • Activity:
    0%
  • Reputation Power: 4
  • bendel has no influence.
  • Respect: +34
  • Referrals: 0
    • View Profile
Re: Stealing Power Scrolls
« Reply #3 on: November 09, 2008, 07:39:17 PM »
0
To get you started... heres a little script i wrote long long ago, I haven't run it in a couple years and its pretty archaic so I'm not sure if it works or how pretty it is but its basically a gate click-through... get close to any gate (IE star room) and she throws ya through to Luna ASAP

I used to lurk around in the Star Room on my thief and used to run it in the background even when I hunted champs to help me avoid thieves in the star room...

Code: [Select]
; Konesky's Gate Clickthrough... Get within 1 tile of a moongate
; And it will toss you through to Luna. Do not need to stand on
; the gate tile, just beside, will continue to try even after your
; in Luna. Can run passively in the background...
set %x1 17
set %y1 116
set %x2 208
set %y2 42
set %x3 23
set %y3 220
;=================================================
Start:
finditem OTF G_1
If #findkind <> -1
{
 set #lobjectid #findid
 event macro 17
}
If #contsize = 380_280 && #contname = generic_gump && #contid = N/A ;&& #contkind = GJZ
{
 For %i 1 3
 {
  gosub setclick %i
  wait 1
  click %x %y
 }
}
wait 5
goto Start
;=================================================
sub setclick
set %x %x . %1 + #contposx
set %y %y . %1 + #contposy
return



you can make that on razor or Uoa  with 1 macro easyly

But the idea of Cerveza is reallllly sick, i would like to participate on that.

Offline Terathel

  • Newbie
  • *
  • Posts: 9
  • Activity:
    0%
  • Reputation Power: 0
  • Terathel has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: Stealing Power Scrolls
« Reply #4 on: October 14, 2009, 05:19:04 PM »
0
Sorry to ressurect this thread but did you had success on this script Cerveza?

Have you started something?

Need some help?

I'm really interested on doing this but I am too lazy to start it from nothing ;D
« Last Edit: October 14, 2009, 06:19:02 PM by Terathel »

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: Stealing Power Scrolls
« Reply #5 on: October 15, 2009, 03:32:18 AM »
0
LOL I wasn't writing it, just suggesting it be written :)
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: Stealing Power Scrolls
« Reply #6 on: October 16, 2009, 06:33:00 AM »
0
LOL I wasn't writing it, just suggesting it be written :)

I have to run out the door for a couple hours here, but I started on a script like this years ago.  I'll post it up for people to tear apart if I can find it.  I actually got it to steal 120's.  I was the bane of spawns for a long while.  People would field the island with poisons at EVERY spawn on my shard for a while just because of me. :)  If I remember right, I did it all bassackwards.  You just had to target their backpack, and then select what type of powerscroll to get, and it would pick the very first one in their pack, no preference options.  It would open their pack the second you were next to the target and scan then autosteal and smokebomb.
« Last Edit: October 16, 2009, 06:34:34 AM by Scripty »

Offline Terathel

  • Newbie
  • *
  • Posts: 9
  • Activity:
    0%
  • Reputation Power: 0
  • Terathel has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: Stealing Power Scrolls
« Reply #7 on: October 16, 2009, 02:00:24 PM »
0
I started scripting something right now.

Will share it in a while.. Maybe today  ;)

Offline gen2000

  • Full Member
  • ***
  • Posts: 123
  • Activity:
    0%
  • Reputation Power: 0
  • gen2000 has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 1
    • View Profile
Re: Stealing Power Scrolls
« Reply #8 on: October 17, 2009, 04:16:07 PM »
0
I've got one that does what your wanting, but it doesn't have a menu or anything. You hit a hotkey and then target the person you want to steal from. It then opens their pack, ect.. then scans for scrolls. It will only steal 120's but it starts with the high priced ones first and works it way down the list. If they have a  120 Mage and 120 spirit speak, it will steal the 120 mage! I would need to do some editing on it before release, right now it's full auto and runs out o the starroom into terra keep, way out into the hallway and hides.. LOL!


Offline _C2_

  • AFK FtW
  • Global Moderator
  • *
  • *
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +254
  • Referrals: 4
    • View Profile
Re: Stealing Power Scrolls
« Reply #9 on: October 17, 2009, 05:42:59 PM »
0
I've got one that does what your wanting, but it doesn't have a menu or anything. You hit a hotkey and then target the person you want to steal from. It then opens their pack, ect.. then scans for scrolls. It will only steal 120's but it starts with the high priced ones first and works it way down the list. If they have a  120 Mage and 120 spirit speak, it will steal the 120 mage! I would need to do some editing on it before release, right now it's full auto and runs out o the starroom into terra keep, way out into the hallway and hides.. LOL!



LOL!  That sounds fun as hell!

Offline gen2000

  • Full Member
  • ***
  • Posts: 123
  • Activity:
    0%
  • Reputation Power: 0
  • gen2000 has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 1
    • View Profile
Re: Stealing Power Scrolls
« Reply #10 on: October 17, 2009, 05:59:57 PM »
0


LOL!  That sounds fun as hell!
[/quote]

It's great, they pop into star to leave and most of the time they don't even realize I've stole anything!  8)

Offline _C2_

  • AFK FtW
  • Global Moderator
  • *
  • *
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +254
  • Referrals: 4
    • View Profile
Re: Stealing Power Scrolls
« Reply #11 on: October 17, 2009, 06:08:27 PM »
0
I imagine if u stand near the moongate and only look in packs withing 1-2 tiles of the gate they may be about gone once u grab it. 

Offline gen2000

  • Full Member
  • ***
  • Posts: 123
  • Activity:
    0%
  • Reputation Power: 0
  • gen2000 has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 1
    • View Profile
Re: Stealing Power Scrolls
« Reply #12 on: October 17, 2009, 06:15:46 PM »
0
I imagine if u stand near the moongate and only look in packs withing 1-2 tiles of the gate they may be about gone once u grab it. 

Yup, last 120 ant I stole last week, they were gone about the same time I stole it.

Offline Terathel

  • Newbie
  • *
  • Posts: 9
  • Activity:
    0%
  • Reputation Power: 0
  • Terathel has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: Stealing Power Scrolls
« Reply #13 on: October 19, 2009, 06:56:35 AM »
0
So, this is what I did...

The script detects a player in screen and keep trying to open his backpack.
When his backpack is open, it will search for PS and identify them.
That's all for now.
Maybe next weekend I'll have some time to improve it.

Code: [Select]
;============================================
; Script Name:   Star Room Stealer
; Author: Terathel
; Version: 0.01
; Client Tested with: 7.0.1
; EUO version tested with: 1.5 [build 155]
; Shard OSI / FS: OSI/FS
; Revision Date: 16-10-09
; Global Variables Used:
;=============================================
;Sub GetName taken from TrailMyx's IDOC Monitor/Looter v1.0c - Many thanks, TrailMyx!

 ignoreitem #charid

START:

finditem IS_HS_XU_AV_KS_JS_ZU_KV_SAB_MAB_LAB_SH_EH_VD_JG_BB_SC_OAB_QAB_PAB_RAB_HN_IN_FN
If #findcnt < 1
  {
     wait 10
     goto start
  }
For #findindex 1 #findcnt
  {
     If #findrep = 7 || #findrep = 3
       {
         ignoreitem #findid
       }
     set %Target_id #findid
     Gosub Check_NPC
     If #Result = #FALSE
       {
          Display Hello... Is there anybody in there? Just nod if you can hear me.
          wait 3000

       }
  }


goto START

;-----------------
;-----------------

Sub Check_NPC

linespercycle 1000

Event_property:
set %waituntil #scnt2 + 10
Repeat
    {
    event property %Target_id
    wait 2
    }
Until #property <> $ || #scnt2 > %waituntil
set %player_property #property
If %player_property = $ || %player_property = N/A
   {
   ignoreitem %Target_id
   linespercycle 10
   return #false
   }
If #spc , the , #spc in %player_property || #spc , The , #spc in %player_property
   {
     Linespercycle 10
     Return #True  ;--Return #TRUE if it's an NPC
   }
gosub GetName #FindID
event ExMsg #charID 3 90 Our target: #RESULT
set %personsID #FindID
set #LOBJECTID #FindID

event macro 17 0
wait 10
finditem ZJF_KUD C_ , %personsID ; Handles Both Reg Packs and Reverse
if #FINDKIND <> -1
{
  set %stealfromID #FindID
  wait 7
  event macro 17 0
  wait 30
  finditem EWH C_ , %stealfromID
  For #findindex 1 #findcnt
    {
       If #findcol <> 1153
         {
           ignoreitem #findid
           break
         }

      If %stealList = N/A
            set %stealList #findid , _
      Else
            If #findid notin %stealList
               {
                   set %stealList %stealList , #findid , _

                   set %itemID #FindID
                   gosub GetName #FindID
                   set %itemName #RESULT
                   event ExMsg #charID 3 90 Item: %itemName
                   if 120 in %itemName
                   {
                      set #LTARGETID %itemID
                      event ExMsg #charID 3 90 Last target: %itemName
                   }
                   set %Target_id #findid
               }
    }
}
Return #False  ;--Return #False if NOT an NPC

sub GetName
  event property %1
  str pos #PROPERTY $ 1
  set #STRRES #STRRES - 1
  str left #PROPERTY #STRRES
return #STRRES

Sorry for the messy script  :-[

Offline Paulonius

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +162
  • Referrals: 1
    • View Profile
Re: Stealing Power Scrolls
« Reply #14 on: October 19, 2009, 08:24:55 AM »
0
I like this project. I will dust off my theif  and see about getting it ready to roll for some testing.
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

Tags: