Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - camotbik

Pages: 1 2 3 [4] 5 6 ... 24
46
Stealth archive / Re: Stealth script corner.
« on: January 19, 2012, 12:20:13 AM »
yes you are, but i'm really sorry, i forgot that reply is implemented only starting from 3.9.9. So you will need to wait a bit for the official release, or you can try to use the beta, contact me if you need a link.

47
Off Topic / Re: Music - What are you listening to now? Part 2
« on: January 17, 2012, 05:45:55 PM »

48
UO Client Modifications/Tools / Re: Client Art Patcher
« on: January 15, 2012, 07:43:59 AM »
I WOULD LOVE TO GET THAT SNOW OFF THE MAP

49
New member introductions / Re: keptn keepin says hello
« on: January 12, 2012, 04:58:51 PM »
Greets Keepin, and welcome to SUO. You just have to wait a bit, for moderators to uplift your status.

50
Stealth archive / Re: Stealth script corner.
« on: January 12, 2012, 08:51:05 AM »
open up a gump, press a button, then open the gump again, do ,infogump and check reply for the button number in the info window that poped up.

51
General UO Chat / Re: Thinking about coming back
« on: January 11, 2012, 12:26:59 AM »
Welcome back BM! OH yeah, UO is more tricky than crack, as it lets you got for a while and then hits you back.I know how you feel about the house, i just lost my house during the holidays. Anyway, hope to see some new stuff from my favorite coder. Make sure you check out stealth client.

52
New member introductions / Re: Hello from Ukraine everyone :)
« on: January 09, 2012, 05:48:46 AM »
Welcome to SUO.
Добро пожаловатъ на СУО.

Если естъ какиета вапросы по скриптингу или проблема со своим скриптом, дай знатъ - помогу чем смогу.

53
Script Debug / Re: Wither sub
« on: January 07, 2012, 09:03:16 AM »
I would do something like this.
Code: [Select]
set %monsters AAA_BBB_CCCC
set %spot1x 1111
set %spot1y 2222
set %spot2x 1112
set %spot3y 2223
; ..............

repeat
  repeat
     for %i 1 11
      {
            gosub move %spot . %i . x %spot . %i . y 10
            gosub wither
      }
  until #charghost = yes
until #charghost = yes
stop

Sub Move
   if #charposx <> %1 && #charposy <> %2
   {
       set %_pathfind_fail #false
       set %_jindex #jindex
       set %timer_move ( #sCnt + %3 )
       event pathfind %1 %2
       repeat
           {
               if #jindex >= %_jindex
               {
                   scanjournal %_jindex
                   if can't_get_there in #journal
                       set %_pathfind_fail #true
                   set %_jindex %_jindex + 1
               }
           }
       until #charposx = %1 && #charposy = %2 || #scnt > %timer_move || %_pathfind_fail = #true
       if #charposx <> %1 && #charposy <> %2
           move %1 %2 a %10 , s
   }
return

Sub wither
   finditem %monsters G_4 ; whatever the radius is
   while #findcnt > 0 && #mana > 20 ; just a guess
   {
       event macro 33 ; just a guess, i'm to lazy to look at the manual
       wait 20        ; random wait
       finditem %monsters G_4 ; whatever the radius is
   }
return

the code is untested, just a thought..

54
New member introductions / Re: hi =))
« on: December 20, 2011, 01:17:10 AM »
Welcome to SUO.

55
Script Debug / Re: SUOLootSub
« on: December 07, 2011, 04:45:20 AM »
Well but what is the purpose of this? I mean, you could use set, with even taking less space than with namespaces ( AND DO THE SAME THING!!!! )
Code: [Select]
set %var green

set %old_var %var
set %var blue
set %var %old_var

event sysmessage %var
stop

56
Script Debug / Re: SUOLootSub
« on: December 06, 2011, 03:37:22 PM »
Ok, just wondering, could you give me an example for something i could not do with out namespaces working in a 1window script?

57
Script Debug / Re: SUOLootSub
« on: December 06, 2011, 02:20:56 PM »
Just interested, what is the point of using name spaces in a looter? I mean would you run it in a separated window or what?

58
Script Debug / Re: Meatt Wad's First attempt at a full script
« on: December 06, 2011, 02:18:48 PM »
There's been a while, have you managed to get things working?

59
Script Debug / Re: Rare Serpent Egg "Medusa"
« on: December 06, 2011, 02:15:58 PM »
You are still not using brackets on finditems, that can mess up your whole script!! I have wrote a tutorial, take a look here - http://www.scriptuo.com/index.php?topic=8759.0

60
Scripting Chat / Re: Command help
« on: December 06, 2011, 01:45:33 PM »
Code: [Select]
 repeat
    finditem %droploot C_ , #backpackid
    exevent drag #findid #findstack
    wait %dragspeed
    exevent dropc %dropbox
    wait 15
  until #findkind = -1
This is wrong. What happens if finditem = x(nothing found) ? --  it drags an non existing item ( well atleast send a packet to drag it and drop it )

I would use a while loop there or something similar...

Anyway, you would want to use something like this..
Code: [Select]
set %storage QWERTY
set %stuff LOOT_LOOT_ZLK_POF

Mainloop:
if #weight > ( #maxweight - 50 )
{
  gosub Recall_from_named_book ORE 1 r 5 ; Recalling to home
  gosub unload
  gosub Recall_from_named_book ORE 2 r 5 ; Recalling back to cave
}
goto Mainloop

; gosub travel_named_book ore number r(for recal)/c(for sacred) retries
Sub Recall_from_named_book
  finditem MPF C_ , #backpackid
  for #FINDINDEX 1 #FINDCNT
  {
    event property #FINDID
    if %1 in #PROPERTY
    {
      gosub recall #findid %2 %3 %4
      return
    }
  }
  display your named book was not found.
  stop
return

Sub Unload
  finditem %stuff C_ , #backpackid
  for #FINDINDEX 1 #FINDCNT
  {
    exevent drag #findid #findstack
    exevent dropc %storage
    wait 30
  }
return

Note that this is fastly writen for freddy's recalling sub, but as it seems he has withdrawn all his scripts, including the fastest recalling sub out there.. If you ask freddy he may still give it to you.

Pages: 1 2 3 [4] 5 6 ... 24