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 - b@ndito

Pages: 1 [2] 3 4
16
Inactive Submissions / Re: Happy textiler
« on: May 09, 2011, 05:42:29 AM »
did you figured out what the problem was? so i can fix it for everyone

17
Combat/Healing/Looting / Re: LAME 1.2 (seriously)
« on: May 09, 2011, 05:14:36 AM »
as a first script nice work, clear and reliable writing style :)

in sub dead you could put a call to this snippet taken from raziel:

Code: [Select]
sub logout
namespace push
namespace local logout
logout:
;gosub connectionlost
set !timeOut #scnt + 5
event macro 8 1
wait 20
waitpaperdoll:
if #scnt > !timeOut
    goto logout
if #contname <> paperdoll_gump
    goto waitpaperdoll
contpos #clixres 0
wait 20
_waitConfirm:
set !timeOut #scnt + 3
set !paperDollX #clixres + 210
click !paperDollX 110
waitlogout:
if #scnt > !timeOut
    goto _waitConfirm
if #contname <> YesNo_gump
    goto waitlogout
set !x #contposx + 120
set !y #contposy + 90
_quit:
click !x !y
set !timeOut #scnt + 20
_waitlogout:
if #scnt > !timeout
    goto quit
if #contname <> MainMenu_gump
    goto _waitlogout
namespace pop
return

this works for freeshards and think it's the same on official servers: logging out while dead makes the mount disappear and not let it to be killed by enemies.
basically if you gosub logout into your 'dead' sub you can keep the mount alive...

Code: [Select]
sub Dead


  menu Window Color Gray


  while #charghost = yes


     [b] gosub logout
[/b]

  menu Window Color Black


[b]  pause
[/b]

return

also is better to pause the script instead halt, that way users can restart the script without setting it up again. just warn users of it and would be cool ;)

18
Player Templates / Re: Sampire V2.0
« on: May 09, 2011, 03:45:19 AM »
my sampy it's nearly 2 years old:

120 sword
115 tactics
115 bushido
110 ress spell
80 chivalry
80 anatomy
99 necro

with a good leafblade i have not much to worry about:

actually i have
dmg 40
mana leech 36
stama leech 34
swing 30

a friend lend me a similar one plus
hit lower defence 32  O_O

spamming feint is a piece of cake

19
General UO Chat / Re: Some thoughts on Gates
« on: May 09, 2011, 03:38:02 AM »
So there is no reason to dispell a gate?


it's a classic of noob pk'ing :P

place some crates in a U shape -> gate -> close the u shape and dispel the gate -> cast a field in it -
and wait until the victim pops, personally i've never been a pk if not for mistake, but this looks a cool tactic  :P

20
heheheh and here i was thinking you were an awesome pker!

eheh same here! i didn't know that was a guarded zone, they may be wrong too :D

21
Scripting Chat / Clicking trees
« on: January 20, 2011, 10:31:50 AM »
On the freeshard i'm currently playing has been started a weird event, players have to click bushes, trees and various other statics in order to find the hidden treasure, the only way to find statics in easyuo is the tile get function but it actually returns only coordinates of an item, then the question is, there is any simple way to make mouse clicks directly by tile coord or i have to convert game's tile x/y to screen x/y? this would be terrbly complex, as every static has a z coord and different layer size...

22
New member introductions / Re: Hey guys I'm Ciro
« on: December 20, 2010, 04:15:00 AM »
hello :)

23
New member introductions / Need to excuse me and give a presentation
« on: December 17, 2010, 09:11:02 PM »
First of all... forgive me for the late presentation  :-\ and the poor english, not my born language as i'm italian.
I've been lurkingf SUO forum for over an year and noticed just now that i gave no presentations at proper time, for some reason i thought have already done, so i'll do just now...

I'm an UO player addict since 2001, started on an italian sphere freeshard where i knew the future developer of a RunUO freeshard he opened later and i moved consequently.
As a good UO addicted i spent some months on Europa and have experienced much of the ultima game series.
My main UO experience anyway has occured through 2002 and 2004 while i played in many italian and american RPG freeshards along my friends, you may know rebirth and second age shards. I got my best memories there...
Between 2004 and 2006 I played some time on european WoW official shards, but after awhile i got annoyed of that repetetive system and after a failed adventure on an RPG WoW server, i set back on my second UO freeshard, it was late 2008.
Wanting to begin quickly building my characters and richness i started unveiling EUOs and programming mysteries, there borned my passion for computer engeneering that led me to university studies.

Actually i'm a computer engineering student, and spend my spare time as RunUO scripter for the shard, also i have experience in EUO and LUA/OpenEUO scripting.

Sorry if this post may look a bit messy, i made many corrections while typing.

24
ScriptUO Questions and Answers / Re: In the hope SUO parser would develop
« on: December 17, 2010, 12:24:24 PM »
thank you, didn't know that one.

25
ScriptUO Questions and Answers / In the hope SUO parser would develop
« on: December 12, 2010, 07:52:29 PM »
Last summer i was looking for a way to change the colour of my hooded shroud on the RunUO freeshard in wich i play, since it's not more possible to color it through dye tubs.
I spent some time playing with client's memory addresses and i succeeded in it...... unfortunately when i tried to move or wear it, the shroud reverted to the original colour, in fact i was changing just client's memory not sending packets or hacking the server someway how should i needed ;D
(i know, quite a noobish way to tell my poor knowledge on client-server communications)

Anyway with those experiments i found many memory addresses containing much interesting variables like character coordinates or statistics (IF: resistances in status or totalgold) as those showed in easyuo as system vars.
since it was my really first attempt of C++ 'reverse engeneering' or 'cracking' as you prefer  :-\  i'm sure there are actually better techniques to find  out such things, but if you think those addresses could be helpful to you let me know and i could provide them... i'm also interested in improving my scripting skills, if you know some good way to reverse engeneer UO client's let me know please

Obviously i'm not aiming at hacking the client since i wouldn't be asking that here, but i'm interested helping developing a parser even if i have just little experiences in it as a project at school's time.

Sorry for my poor english, i'm just looking an useful way to be helpfull to this amazing community  :D

26
Submit your Script / Re: B@ndito's tamer assistant
« on: December 12, 2010, 07:11:13 PM »
Looks well written. Thanks for your contribution.

thank you very much, i really enjoyed your taming appraiser :D

this script has been my first attempt using global namespaces in a script, if someone wants to use this as external healing for another script should be aware of.

27
Submit your Script / B@ndito's tamer assistant
« on: December 09, 2010, 09:06:18 AM »
Another script of mine i made it 1 year ago and never changed, it still works pretty well to me.
Again, it was designed for a freeshard but bandages type ID should be the same on OSI, sorry for poor english.

Description and explanations contained into the script (note for scripters: variable naming in italian).
I'm currently supporting this and available to questions/requests.

Code: [Select]
;-#=#=#=#=#=#=#=#=#=#=#=#-
;Name: B@ndito's Tamer Assistant
;Made by: B@ndito
;Published for: ScriptUO.com
;Released on: 12/9/10
;-#=#=#=#=#=#=#=#=#=#=#=#-

;   ,,,,,,,,,,,,,,
;    IMPORTANT !
;   ''''''''''''''
;    1. Keep your backpack always opened.
;    2. Pet's health bar have NOT TO BE MOVED after running the setup
;        never cover it with other gumps .
;
;
;    Description:
;    ------------
;    # This script is meant to support my other scripts, so it's possible to use it along other scripts.
;      Keep in mind that even if it has been designed to work along other scripts, drag&drop can't be
;     checked when running parallel scripts and this could mess up something without proper checks.
;    # It can be easily used anyway as a standalone to heal a single pet
;      It mainly uses OCR to calculate percentile/quantity of pet's HP and heal it, using both bandages
;       and spells if choosen though not breaking any other cast
;

;=============================== S E T T I N G S ==================================

;--- AUTO-PATHFIND ---
;    choose if you want the script to pathfind to the pet if you are too distant for bandaging.
;    script will temporary control character movements to reach the pet

set %autopathfind #false   ;(#TRUE or #FALSE)

;--- HALING VARIABLES ---
;    choose HP % to start healings
;    NB: HP calculations may have a 3% error calculation
set %percentuale 75       ;suggested values for total hp (5 - 95%)
                          ;85: between 400 - 500 hp
                          ;75:between 300 - 400 hp

;    to heal poisoned pet ignoring HP%
set %curapoison #TRUE   ;(#TRUE o #FALSE)


; _ _ _ _ _ _OPTIONAL _ _ _ _ _ _ _

;    le seguenti variabili sono per le funzioni opzionali,
;    lasciale come di default se usi lo script insieme al Leather Farmer.

;---SPELL CASTING ---
;    Set #TRUE to cast spells along bandages
set  %Healwithspell #true ; DEFAULT: #FALSE

;    if %healwithspell #TRUE, choose the heal method (just type a number): 1 magery, 2 chivalry, 3 spellweaving
set  %healmethod 1

;--- PAUSE KEY ---
;    Set the pause key, you can leave it empty if not interested
;    Press again to begin again...
set %haltkey p

;--- RAZOR ---
;    if you want to use a razor macro tu heal, set to #true and type macro name
;    Useful if you use this script in parallel with other scripts.
set %razor #false
set %macrorazor macro1

;   END OF MANUAL SETUP

;=========================================================================================

;-----Script begins here don't modify further-----

;--------------|
gosub autosetup
;--------------|

  mainloop:
  gosub HealthbarScan %contposX %contposY %PetHP
  if %HP < %percentuale || %stato = 3 && %curapoison = #true || %stato = 1
      {
      gosub checkaids
      if #result = #true
          {
          if #targcurs = 1
             gosub waitcurs 0
          gosub pathfind
          gosub curapet
          }
      }
  onhotkey %haltkey
      {
      event SysMessage BTA script: paused
      wait 20
      pausa:
      onhotkey %haltkey
               {
               event SysMessage BTA script: playing
               goto mainloop
               }
      goto pausa
      }
  goto mainloop
;=============================================================================
sub curapet
cura:
  if %razor = #true
  {
  msg -macro , #spc , %macrorazor $
  wait 45
  return
  }
  namespace push
  namespace global action
  ;event sysmessage Pet health: %HP , %
  set !bendaPet #true
  if #targcurs = 1
     gosub waitcurs 0
  set #lObjectID %aids
  event Macro 17
  target 5s
  set #ltargetid %petid
  event macro 22

  if %Healwithspell = #true
     {
     gosub curespell
     goto ritorna
     }
  wait 45
  ritorna:
  namespace pop
return

;=======================================================
sub curespell

  if #targcurs = 1
     gosub waitcurs 0
  if %stato = 3
     goto trypoison
  if %healmethod = 1
          {
           event macro 15 28
           target
           set #ltargetid %petid
           event macro 22
          }
  if %healmethod = 2
          {
           event macro 15 202
           target
           set #ltargetid %petid
           event macro 22
          }
  if %healmethod = 3
          {
           event macro 15 602
           target
           set #ltargetid %petid
           event macro 22
          }
  trypoison:
  if %healmethod = 2
          {
           event macro 15 201
           target
           set #ltargetid %petid
           event macro 22
          }
  if %healmethod = 1
          {
           event macro 15 10
           target
           set #ltargetid %petid
           event macro 22
          }
return

;================================================
;wait for cursor not targeting, and returns a boolean
  sub waitcurs

  if %0 = 2
      set %waitTimeout #scnt2 + %2
  else
      set %waitTimeout #scnt2 + 500 ;valore in decimi di secondo (50s)
  while #targcurs <> %1
  {
  if #scnt2 > %waitTimeout
     return #false
  sleep 3
  }
  if %1 = 0
     wait 2

  return #true
;================================================
  sub HealthbarScan
  namespace push
  namespace local HealthbarScan , #SYSTIME
  set !lpc #lpc
  set #lpc 500
  set !a %1 + 37
  set %2 %2 + 43
  savepix !a %2 1
  set %1 n/a
  str pos 16229962\16229706\6502655\\6502911\\4894463\\4894207\\4390763 #pixcol
  if #strres <> 0
     set %stato #strres / 18
  set !mod 24
  repeat
  {
  set !mod ( !mod + 1 ) / 2
  set !sec !sec + !mod
  set !x ( 100 * ( !sec - 1 ) / 23 + 3 ) * 98 / 100 + !a
  savepix !x %2 1
  if #pixcol in 3746303\3221908\2695589\2695539\3741902\3744181\3217556\3217564\1579156\2173299\1052746\1579140\1577059\2166924\2166916\2691220\2166907\2166965\1054819\1577034\1579131\1577050\2168931
     set !sec !sec - !mod
  }
  until !mod = 1
  set %HP 100 * !sec / 24
  set #lpc !lpc
  namespace clear
  namespace pop
  return #result
;================================================
sub pathfind
  riprova:
  finditem %petid G_
  if #findkind = 1 && #finddist > 2
         {
         if %autopathfind = #true
            {
            set %pathTimeout #scnt2 + 60 ;6s
            event pathfind #findx #findy
            wait 3
            if You_are_frozen in #sysmsg
               {
               wait 2s
               goto riprova
               }
            while #charposx <> #findx || #charposy <> #findy
                  {
                  if #scnt2 > %pathTimeout
                     goto riprova
                  sleep 5
                  }
            }
         else
            {
              event sysmessage BTA Script: Too distant from the pet! Script waiting you move further...
              set %pathTimeout #scnt2 + 500 ;50s
              finditem %petid G_
              while #finddist > 2
                  {
                  if #scnt2 > %pathTimeout
                     return
                  sleep 5
                  finditem %petid G_
                  }
            }
         }
return
;================================================
  sub checkaids

  finditem ZLF C_ , #backpackid
  if #findstack = 0
    {
    event ExMsg #charID 2 38 Nessuna benda trovata!
    wait 3s
    return #false
    }
   if #findstack < 25 && #findcnt < 2
   event sysmessage BTA Script: WARNING! You have just #findstack bandages!
   set %aids #findid

  return #true

;================================================
  sub autosetup

  gosub checkaids
  if #result = #false
      {
       display ok you need bandages in your backpack $ restock and play again the script.
       halt
      }
  retarget:
  display ok Drag the pet's healthbar where you prefer, $
          + Remember NOT TO MOVE healthbar while executing $
          + $ You have 6 seconds.
  for %i 1 6
  {
  wait 1s
  event exmsg #charid 3 50 %i
  }

  if #contname <> status_gump
     {
     display ok Can't recognize health bar! $
             + If you are sure you had dragged the right bar $
             + close it to reset EUO's varables.
             + $ $ Click ok to repeat  $
     goto retarget
     }
     event exmsg #charid 3 73 Setup complete!
  set %petid #contid
  set %contposx #contposx
  set %contposy #contposy
  ;set %aidtime ( ( 11 - ( #dex / 20 ) ) * 10 )
  set #LPC 100

  return

Note: uses HealthbarScan sub by Laradel

28
Scripting Chat / Re: Designing menu's with file' image
« on: December 08, 2010, 08:01:33 PM »
assuming i set %filename to "C:\Documents and Settings\User"  that your creates to me a variable like this:

%filename: " C:\Documents and Settings\User N/A C:\Documents and Settings\User\

are u sure that sub should work this way?


anyway i got your directions and remembered what was my real problem, trying time ago...

i wrote down this:

Code: [Select]
set %filepath C:\Users\Riccardo\Desktop\Programmi\Easyuo\
set %filename %filepath , menuscript.gif

menu Window Size 264 384
menu Image Create Plant 0 0 400 400
Menu Image File Plant 25 40 %Filename
menu show 300 300

and that's the result:



note that the original image size was 260x380 and  264x384 for menu... as you can see the image has been resized through easyuo rendering.
i'm wondering if this issue is caused by win7 or is easyuo bugged, i can't try this for at least a week since i'm with my laptop @ university apartment and cannot reach my old PC running XP.

if someone wants to try please let me know, i leave the pic in attachment and the script is written above.

29
Inactive Submissions / Happy textiler
« on: December 07, 2010, 11:01:57 PM »
I'm releasing here a script of mine for the first time, so i'm asking sorry in advance if missing something (note for scripters: some labels and documentation inside the script is italian).

What does:
Actually transforms any kind of textile resource, passing throught every processes, into final bolts or cloths (selectionable).

How to use:
Since i'm a passionate of automatization, this script does not require any setup or any kind of knowledge to be used.
You can still easily customize some functions in it, locate instructions in the beginning of it to figure out.

What you need:
a container for your resources, a loom a spinning wheel all into your house, scissors if you choose to cut bolts into cloths.

Future planning: multiple loom - spinning whell usage to improve performances.

Actually i'm available for any support or questions, keep in mind i did it to work on a freeshard ML server, anyway should not give trouble to OSI or other freeshards users since i checked type IDs and seems to be the same.

30
Scripting Chat / Designing menu's with file' image
« on: December 07, 2010, 10:28:07 PM »
I've always used the EasyUO menu designer for my scripts but i think that placing images where needed may improve readability and would make menus definitely better looking and less eye-stressing...
I looked on EUO wiki for informations but haven't been able to manage multiple images (IE: i wanted to create icons for my resource gatherer menu), also easyuo forum boards did not give any results.
Now i'm asking here to you if someone can write me some lines to find the way to properly do this, or some script snippet to figure out it.






sorry for the poor english  Kiss

Pages: 1 [2] 3 4