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.


Topics - rana70

Pages: [1]
1
Script Snippets /
« on: October 31, 2011, 09:03:17 AM »
Rana's Weight Handling SUBs for Chars, Backpacks and Containers

Code: [Select]
;==========================================================================================
; Script Name: Rana's Weight Handling SUBs
; Author: Rana
; Version: Check %Ver
; Client Tested with: 7.0.19.x
; EUO version tested with: 1.5 (Build 202)
; Shard OSI / FS: OSI
; Revision Date: 10/31/2011
; Public Release: 07/10/2008
;==========================================================================================

Purpose
SUB Routines to handle all type of weight issues and
also provide the amount of Items within a given Container.
The maximum load limit of the Char is calculated by its strength and race.

There are a set of variables you can use within your own script
to manage all your weight and item needs eg prevent from
overload or prevent from overfill Containers, detect changes
in weight or items amounts to update your display.



SETUP
I recommand to do this line as a part of your Script header !!!!!
GoSUB RANA_CharWeightHandling INIT

GoSUB RANA_CharWeightHandling [INIT]
    OPTION: INIT
            Prepair Data for propper Weight calculations
            The SUB has to run at least ones with the INIT parameter
            before you can use it again in the script. The INIT part
            will make sure you get propper data by open up Paperdoll,
            Statusbar and figure out your Char and Server related limits.

How-to-Use


The two SUBs will give you all the data you might need:

GoSUB RANA_CharWeightHandling [INIT]
#RESULT   returns ->
           OK (no change in values, no errors) or
           ERROR (something messed up, invalid results) or
           UPDATE (a change in value since last check, you might initiate a redraw (Flickerprevention))

%RANA_WH_RACE                  -> HUMAN / ELF / GARGOYLE
%RANA_WH_ServerTypeSP          -> #TRUE Server uses Siege Perilous ruleset eg. no recall
%RANA_WH_ServerName            -> Just the Name of the actual Shard
%RANA_WH_ServerType            -> Type of ruleset REGULAR -> OSI PROD Shard / OSI SP -> Siege P.
%RANA_WH_MaxFreeBackPackStones -> Max. amount of stones before your Char is overweighted
%RANA_WH_MaxFreeBackPackItems  -> Max. amount of items your Backpack can hold


GoSUB RANA_ContainerCheck [ContainerID]
#RESULT returns ->
         ERROR (invalid Container or something messed up) or
         0-124 (amount of Items within the Container) or
         FULL (no more room in the Container)

%RANA_WH_ContainerItems  -> amount of items within the checked Container
%RANA_WH_ContainerFull   -> #TRUE Container holds 125 Items / #FALSE holds less than 125 Items


History
Version 1.20
 ADD ContainerCheck more Failsafe (Restore last #FindID)
Version 1.10
 ADD Gargoyle Race

2
Script Snippets / Helloween CleanUp Donator Assistant
« on: October 09, 2011, 03:55:41 AM »
Rana's Helloween CleanUp Donator Assistant

Code: [Select]
;==============================================================================
; Script Name: Rana's Helloween CleanUp Donator Assitant
; Author: Rana
; Version: Check %Ver
; Client Tested with: 7.0.18.x
; EUO version tested with: 1.5 (Build 202)
; Shard OSI / FS: OSI
; Revision Date: 10/09/2011
; Public Release: 10/09/2011
;
; Hisrory
; 0.2 FIX Added missing Wine Bottle IDType
;     FIX DUMP String Error in ScarryStuff;==============================================================================

Purpose
Dumps the Helloween Stuff and more from open Boxes on Screen
to gather Clean Up Event Points for the 2011 event

SETUP
Adjust the %Dump... Vars to select the stuff you like to donate before starting the script !

Code: [Select]
; Adjust the Items you like to move to the Trashbarrel
; Dump it => set to #TRUE
; Keep it => set to #FALSE
Set %DumpCandy #TRUE       ; Lollipops and Candy
Set %DumpFurniture #TRUE   ; Helloween Furniture Items
Set %DumpWebs #TRUE        ; Orange and Black Spiderwebs
Set %DumpScarry #TRUE       ; Skull Items
Set %DumpHelloween #TRUE  ; Milk, Pizza, Wine and Cookie Stuff
Set %DumpBlackrock #TRUE   ; Blackrock Parts

The Trashbarrel and the open Boxes have to be in drag/drop range
max 2 Tiles away from Char position.

Script moves all Items from on screen open Boxes and your Backpack
within drag range into your Trashbarrel

Version History
10/09/2011
0.2 FIX Added missing Wine Bottle IDType
     FIX DUMP String Error in ScarryStuff

3
Off Topic / OT at all: Mail and Calender on the go
« on: June 12, 2011, 06:33:37 AM »
Hi,

I would like to ask for help with a non UO related topic, maybe one of you can help out.

That is my problem:
I need my Calenders and eMails synced within my family on different locations.
There should be a shared calender between the familymembers (Read and Write able).

That's what I have on different locations:
3 WinOS Computers with Outlook 2010
3 iOS Devices

Anyone has an idea how I can get this to work ?
I have a webspace with webDav, ftp and http access
and there I can run php and cgi stuff.

I hope anyone has an idea, how I can get this solved.
I am really not a fan of gmail at all and I like to avoid this stuff.
There are a lot of google Searchresults about such a topic
but to be honest so far I havn't got a working solution for me.

thx and cu

4
UO Reference Information / Ricardo's Book Quest
« on: May 03, 2010, 04:50:38 AM »
Hi,

today is Book Day No 4.

This one is in the North/East Corner of the Black Solen Area close to the entrance of Wind.

cu

5
Hi,

after downloading and installing the new update to actual
UO classc client to 7.0.4.4 I restartedthe system and
got an alert wndo from win7 defenter to report the
cliet file.... is it just me or do yo uhave the same issue ?

cu

6
Rana's Magic Scroll and Spellbook Assistant and Spellbook filler

Code: [Select]
;==============================================================================
; Script Name: Rana's Magic Scroll and Spellbook Assistant and Spellbook filler
; Author: Rana
; Version: Check %Ver
; Client Tested with: 7.0.4.x
; EUO version tested with: 1.5 (Build 163)
; Shard OSI / FS: OSI
; Revision Date: 01/09/2010
; Public Release: 07/04/2009
;
; Thanks to all the testers
;==============================================================================

Display


Purpose
This script should help to organize all your Magic Scrolls,
the script will search all open containers on screen for scrolls and
put them into your own storage Containers.
There is also a feature to fill Magery- / Spellweaving- / Necrospellbooks with the Scrolls from your storage Container.

Start out with this:


End up with this if you like:


Setup
First thing you have to remember, your Character has
to be in range for Item manipulation (drag and drop)

SETUP Option will give you an option to select:
SECURE CONTAINER IS IN BANK
You have to set this option to enable the Script to open
your Bankbox, in case you decide to use your Bank and not your House.

Next step will be setting up all necessary Containers:
SECURE CONTAINER
This Container will hold all your Scroll Storage Containers,
it will be opened by the Script automaticly.
SCROLL STORAGE CONTAINERS
I prefer to use an extra Container for every Spell Circle,
to keep it easy amd to find anything later.
So you can select:
8 Containers for Magery Scrolls
1 Container for Necroment Scrolls
1 Container for Spellweaving Scrolls

If you don't like to use this much differend Containers
to store your Scrolls just click on the same Container
again to have the amound of differend places you like.

Eg. if you like to store the all 8 Circles of Magery Scroll in
only 4 differend Container, click first Box for Lvl 1 and Lvl 2
click your 2nd Container for Lvl 2 and Lvl3 and so on...

The Container ID's will be stored with your CharID after finishing
the Setup, so next time you use the script just stay next to the
stored SECURE CONTAINER and you will be not asked again.

Buttons:
H
Helpscreen Info
There are two Helpsscreens one in Setup and one in
the Main Display. Check it out for more Information.

R
RESET
Resets (deletes) the stored settings and Data for this Char

SETUP
Start the Setup Routine to gather the settings
and Containder ID's

SORT
Move scrolls from all open and reachable Containers
into the dedicated storage Containers.

FILL
Target a Spellbook and the script will fill it up
with the Scrolls from the storage Containers.

History
01/10/2010 V. 1.1
 FIX Necro Scroll Box ID Issue
 UPD WH SUB 1.1  (New Race Garg)

07/04/2009 Public Release


7
General UO Chat / BR Mining disabled ?
« on: January 07, 2010, 02:41:05 AM »
Hi,

since a few weeks I fired up my Miner again.

Basicly everything is running as usual ..
except one thing ....

The script ran for about 8 hours and I haven't got any Black Rock Pieces at all....
My Miner is digging in Felluca and Tel Mur...

Did I miss anything about disabled BR spawn or is it just me ?
cu

8
Script Snippets / How to: Gain Mana with Meditation Skill
« on: October 12, 2009, 09:43:20 AM »
Hi,

this is just a small example how to use :

- Use the Meditation Skill
- Read out a Journal
- auto disable the use of Meditation Skill if wrong armor is worn
- cast magery Spells

I added a lot of comments to give an idea how it works,
the Journal Scan is a basic solution and as soon as you
have got the idea I would recommend to check out
TM JournalScan SUB.
His Journal Scanner is far more advanced and fail safe.

Code: [Select]
;==============================================================================
; Script Name: Rana's SUB Mediatation
; Author: Rana
;==============================================================================

; Wait Timer feel free to adjust if you have timing related Error Msg.
Set %DelayEvent 20     ; Waittime for Event Macro Function
Set %DelaySkillUse 10  ; Waittime in sec between Skill uses

; #true  = use Mediation Skill for faster Mana Regneration
; #false = Skip this option, if you run out of mana script will just wait
Set %Medi_UseSkill #TRUE

; Set the Mana Level to start using the Meditation Skill to gain MANA
Set %Medi_StartLvl ( #MAXMANA / 2 )

; Internal Vars to check status and  failsafe
Set %Medi_Activ #FALSE       ; This will report when the Medi Skill is activ
Set %NextTimeforSkill #SCNT  ; Marker when you can use the skill next Time



; MainScriptLoop
;------------------------ Main Script -------------------------
Repeat
 {
 ; Check Mana and if needed use Meditation SUB to regain
 if #MANA < %Medi_StartLvl
  GoSUB Meditation

 ; Do what ever you like to do in your Main Loop
 ; In this case I simply Cast a Magery Spell

 Event Macro 15 43 ; Cast Spell Invis
  Wait %DelayEvent
 Target
 Event Macro 23 ; Target Self
  Wait %DelayEvent

 Wait 3s ; just wait for next Spell
}
Until #CHARGHOST = YES
; End of Script
HALT

; SUB's Area
; =================================================



; Re Gain Mana with or without the Help of MEDI Skill
;------------------------ Routine -----------------------------
SUB Meditation
  While %Medi_UseSkill = #TRUE && %Medi_Activ = #FALSE
   {
    ; Call the SUB for the Meditation Skill
    GoSUB UseSkill_Meditation

    ; Check if the Medi Skill became active
    ; RESULT is TRUE if Medi Skill is active
    ; Medi active means, basicly stop
    ; "use skill Medi" and start to gain Mana
    GoSUB JournalScan You_enter_a_meditative_trance
    if #RESULT = #TRUE
     Set %Medi_Activ #TRUE

    ; Failsafe routine if the Char wears any wrong
    ; armor, to prevent script from trying to use Medi Skill
    ; RESULT is TRUE will auto deactivate the Mediation part
    GoSUB JournalScan penetrate
    if #RESULT = #TRUE
     Set %Medi_UseSkill #FALSE
   }

   ; Wait for Mana gain
   While #MANA < #MAXMANA
    {
     ;Simply Wait until #Mana reached #Maxmana
    }

   ; Reset Medi_Activ flag for next cylcle
   Set %Medi_Activ #FALSE
RETURN

; Use Meditation Skill
;------------------------ Routine -----------------------------
SUB UseSkill_Meditation
  ; just wait before use the Skill to prevent error Msg
  ; if you do not wait you will have error Msg on screen
  While #SCNT < %NextTimeforSkill
   {
   }
   ; Use Medi Skill
   Event Macro 13 46 ; Use Meditation Skill
    Wait %DelayEvent
   ; Timer for next possible skill use
   Set %NextTimeforSkill ( #SCNT + %DelaySkillUse )
RETURN

; Scan the Journal Log for Keywords
;------------------------ Routine -----------------------------
SUB JournalScan %1
  ; %1 Text to Scan for
  Set %JournalStart #jIndex
  Set %ScanMessage %1

  For %tmp %JournalStart #jIndex
   {
    Scanjournal %tmp
    if %ScanMessage in #journal
     RETURN #TRUE
   }
RETURN #FALSE


cu

9
Resource Farming / HHT Home Harvest Tool
« on: August 29, 2009, 10:08:38 PM »
Rana's HHT Home Harvest Tool

Code: [Select]
;==============================================================================
; Script Name: Rana's HHT Home Harvest Tool
; Author: Rana
; Version: check %ver
; Client Tested with: 7.0.25.x
; EUO version tested with: 1.5 (Build 215)
; Shard OSI / FS: OSI
; Revision Date: 06/17/2012
; Public Release: 09/08/2008
;==============================================================================

Display


Purpose
Harvest all Fruits, Honeyjars, Rose Pedals
Magic Reagents and Resources from Reward Items
within your house or friendly area.

Features
- manual or timebased automatic harvest
- manual or automatic drop the harvested goods into containers



Gameview


History
Version 2.05
- ADD Grapevines
- DEL PictureSupport
- ADD Fountain of Life

Version 2.04
- ADD to drop routine Green Thorns, Red Leaves, Cacao Pulp
- UPD WH SUB 1.1 (Garg Race)
Version 2.03
- ADD Manual User Setting for OverloadWarning
- UPD Overweight and Drop Handling
- ADD Setup Buttons for Conntainer ID with "in Range detection"
Version 2.02
- CHG Manual User Settings for Scan ranges
- CHG Char Based User Data Storage into only one persitant Var
- ADD Menu User Setting to use Hiding Skill on/off
- ADD Menu User Setting to reset Counter after drop off
- ADD Menu User Setting to walk to startpoint every time
- UPD Display System
- ADD Display CharInfo
- ADD Scheduler
- ADD HelpScreen
Version 2.01
- ADD Hide with Skill while doing Auto Harvest
- UPD Weight Handling to my WH SUB Version 1.0
- FIX Clock transfer Issue from 23:59 to 00:00
Version 2.00
- FIX AutoMode Fix for Statue harvest
- UPD Menu Display
- ADD New Drop Bag/Box for Resources
- FIX Error "Can't Walk there" when Setup New Boxes
- ADD SUB to Harvest REWARD Tree Stumps
- ADD SUB to harvest REWARD Ore and Gem Cart
- UPD DropItem Routines (Failsafe)
- UPD GrabItem Routines (Failsafe)
- ADD Weightcheck to prevent from Overload
- ADD Autodrop before Overload
- ADD "R" Reset Button for stored DropBox Data
- UPD StoreBoxData for each Char
Version 1.8
- ADD Spring Deco Statue
- ADD MagicReagent Drop Box
- Fix Display Error in Auto Mode
Version 1.7
- ADD pictures
- ADD Reset Counter after Drop Off
- ADD AutoRun Mode
- ADD Don't Logout while in AutoRun Mode
Version 1.5
- CHG Script Clean Up
- ADD New Button ALL to Harvest All in One Click
Version 1.0
- Public Release

10
Crafting / OSA Ore Smelt Assistant
« on: August 29, 2009, 01:02:46 PM »
Rana's OSA Ore Smelt Assistant
Code: [Select]
;==============================================================================
; Script Name: OSA Ore Smelt Assistant
; Author: Rana
; Version: Check %Ver
; Client Tested with: 6.0.12.x
; EUO version tested with: 1.5 (Build 147)
; Shard OSI / FS: OSI
; Revision Date: 08/14/2009
; Public Release: 02/22/2009
; Thanks to all the testers !
;==============================================================================

Display


Example


Purpose
Assistant to smelt down all your Ore and Count it
you can use a skillbased Mode to get the most Ingots
out of your Ore, or you can select your own SmeltPlan
to use it as a trainer for your Mining Skill.

Features
Move to Stock Container
Align Mining Goods
Fillup 60k Stacks

History
08/14/2009 Version 1.2c
-CHG Updated a few Help Texts

06/15/2009 Version 1.2b
-FIX SETUP Broken Entry of Plan C - Drag Amount  (Reported by _C2_)

03/11/2009 Version 1.2
-ADD SETUP Menu for Container Data
-ADD HELP I hope this will to setup the Script
-FIX Info Display _
-CHG Default Value of the Amount to Smelt to 4 (automatic Smeltplan)

02/25/2009 Version 1.1
-ADD Feature Move to Stock OPTION for Ingots/Ore/Granit/Blackrock
-ADD Featuer Fillup Stacks
-ADD Feature Align Mining Goods
-FIX HideChar was always one

02/23/2009 Version 1.01
-ADD Failsafe Check to ignore Locked Ingots/Ore


11
Crafting / CWA Cloth Weaver Assistant
« on: August 29, 2009, 11:17:26 AM »
Rana's CWA Cloth Weaver Assistant

Code: [Select]
;==============================================================================
; Script Name: Rana's Cloth Weaver Assistant
; Author: Rana
; Version: Check %Ver
; Client Tested with: 7.0.5.x
; EUO version tested with: 1.5 (Build 166)
; Shard OSI / FS: OSI
; Revision Date: 03/22/2010
; Public Release: 06/02/2009
;
; Thanks to all the testers !
;==============================================================================

Display


Purpose
Assistant to create Bolts of Cloth from Wool and Yarn
Grabs all wool and yarn from your Backpack or secure Container
and uses all Spinning Wheels and a Loom to create Bolts of Cloth.

Setup
You will need this stuff within your main Backpack or an Secure Container:
- Wool, Cotton Piles or Spools of Yarn
   You will need at least one:
   Spinning Wheels and a Loom in Range (10 TILES AROUND)

History
03/22/2010 Version 1.2a
-FIX Yarn Drop Issue when using more than 2 Spinning Wheels

01/15/2010 Version 1.2
-UPD SUB WH 1.1
-UPD SUB Display 1.0
-UPD SUB Timer 1.0
-FIX CWA Box issue

09/07/2009 Version 1.1a
-FIX Elven Spinning Wheel East-West was missing

03.06.2009 Version 1.1
-FIX Overweight Issue when using multiple Spinning Wheels and larger Amount of Wool
-ADD Display of Stacks of Bolts of Cloth, Yarn and Wool

02.06.2009 Version 1.0
-FIX  Wrong Set command in Open Container Routine

12
Resource Farming / WFA Wool Farmer Assistant
« on: August 29, 2009, 11:09:45 AM »

13
Character skill advancement / NSJT Nijutsu Shadow Jump Trainer
« on: August 23, 2009, 10:36:45 AM »
Code: [Select]
;==============================================================================
; Script Name: NSJT Nijutsu Shadow Jump Trainer
; Author: Rana
; Version: Build 2
; Client Tested with: 6.0.14.x
; EUO version tested with: 1.5 (Build 152)
; Shard OSI / FS: OSI
; Revision Date: xx/xx/2009
; Public Release: 08/25/2009
; Purpose: Train your Ninjitsu Skill from 50.0 to max Skill
;          as sideskills Hiding, Stealth Skill will
;          be trained along
;
;
; Setup:   Move your Char to a valid location to use
;          ShadowJump. Make sure there is room left and
;          right of your Char to jump.
;
;CREDIT: Thanks to TrailMyx for his Advanced Journal Scanner
;
; Update to
;==============================================================================
; Permanently Stored Data
;==============================================================================
Hi,

any stealthers around who can give this a try ?

The script is just to train the Nijutsu Skill from 50.0 to max
with the use of Shadow Jump.

What I would like to know is if the back and forth jumping
works for you too. Since I am not sure if diffrend ScreenSizes
might result in an error.

Thanks in advance
cu


14
Hi,

this meight be a stupid question to all of you ... but... I ask it anyway ...


Since a few month this is a part of the EUO Startpage
 
EUO goes open source! For real this time! by Cheffe


So if the program is open source now .... would it be a big problem
legal problem ..or what ever ....
to use the part of the program that actually runs the script with
your much better SUO User frontend and all the great and loved features ?

cu
Rana

15
New member introductions / I made it .. :-)
« on: August 01, 2008, 04:47:29 AM »
Hi,

I fund this page because of a hint of _c2_ about your script editor.

I downloaded is and I like your editor program alot .....

It is a real improvment to develop a script with it and I can't wait
for a version that actually works for debugging .... :-)

About me .. ok ...
I do a little scripting over at winuo and try to help out when i can ...

cu


Pages: [1]