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 - Crisis

Pages: 1 ... 3 4 [5] 6 7 8
61
Jokes! / Christmas Jokes for Pearls
« on: December 23, 2014, 03:15:35 AM »

62
General UO Chat / Suit Building
« on: December 16, 2014, 07:02:47 PM »
I am having a problem getting my suits with all 70 resists but leaving enough mod room to add the mods I want, especially if I want to reforge.

Anyone have any tips or advice to share by chance?

63
General UO Chat / Fishing up MIB's, Luck, & Fisherman's Suit
« on: November 27, 2014, 12:33:07 PM »
Has anyone tried experimenting and seeing if luck plays an issue in the number of MIB's fished up or the number of serpents that get fished up? Has anyone checked to see if the fisherman's suit has become relevant or is it still the same POS that it was?

If no one else has, I will see abut testing it and posting my findings.

64
General UO Chat / Looking for New Shard OSI
« on: August 09, 2014, 06:23:11 PM »
I pretty much play on Chessy but I am looking to check out some other shards. I have played on LA and Cats so I am good there. I want to try somewhere different and need some help getting started. Looking for a couple of LRC suits and stuff like that. Any suggestions?

65
Scripting Chat / Working Taming Script?
« on: August 03, 2014, 09:15:19 PM »
I have been using MD's Jhelom Trainer (awesome script if you are ATK) but I am in the  mid 50's and am not gaining anything right now. I am on Sonoma and do not have jewelry to bump me up enough to attempt bulls. Does anyone know of any other working taming scripts that will allow me to continue? I am at 55.1 currently. Thanks!

66
Scripting Chat / Check Tool Sub
« on: July 22, 2014, 03:11:14 PM »
I am working on a munitions script and want to make a check tool sub that would check for different tools instead of a separate one for each tool. I would then hope to be able to do the same thing to create the different tools.

I would think it would be something like

Code: [Select]
%set_tool_to_make_1 JTL_GTL_KTL ;tinker tool
%set_tool_to_make_2 RQF ;alchemy tool
%set_tool_to_make_3 OBG ;blacksmith tool

I am not sure how to put that into a check or tool crafting and how to make it differentiate between which I need at that time.

Is this possible?

67
Scripting Chat / same itemtype
« on: July 02, 2014, 10:43:05 AM »
saltpeter, charcoal, potash, and black powder all have the same item type.

Obviously if you want the script to distinguish between the 4, you cannot use finditem. The itemid will change with each stack. How can you tell a script which to pull and which not to pull or is it impossible since OSI gave them the same itemtype?

68
UOSteam / UOSteam
« on: June 27, 2014, 09:23:51 AM »
Does anyone have the final version? I have one that is a little bit older but they have removed the downloads so I can not get the final one.

69
Stealth archive / Wrapper
« on: June 25, 2014, 10:16:11 AM »
I keep reading about some kind of "wrapper" for stealth or one of the programming languages used with stealth. I would love to know know what it means and what it does.  ;D

70
Stealth archive / Questions on DX's Magery Spellbook Filler
« on: June 24, 2014, 05:56:53 AM »
I am trying to learn from some of DX's stealth scripts since he is writing them in Pascal which is what I am starting with to learn.

First off this is listed as a freeshard script. Is there as much of a difference between freeshards and osi shards when using stealth like there is when using euo?

Here is his code, and so far I am liking that it seems a lot simpler and cleaner than what goes into euo.

Code: [Select]
Program SpellbookFiller;
(*Written by dxrom for ScriptUO.com
  Script to fill spellbooks with scrolls that have
  been sorted via my spell sorter script.
  
  Like before:
  
  Chest - the main container hold the 8 containers for each circle of spell
  EmptyBooks - the container holding empty spellbooks to be filled
  CxBAG - Bags representing spell circles, contained within Chest.
  
  NOTES: I have not implemented a feature to put spellbooks back after
  being filled.*)

const
  C1BAG = $405AE12D; C5BAG = $405AE123;
  C2BAG = $405AE12B; C6BAG = $405AE101;
  C3BAG = $405AE138; C7BAG = $405AE13F;
  C4BAG = $405AE137; C8BAG = $405AE12E;
  G1BAG = $4073F9B2;
  
  Chest = $405AE140;
  EmptyBooks = $401AF5A9;
  
var
  spellBook : Cardinal;
  k : Integer;
  
  C1 : Array of Cardinal; C5 : Array of Cardinal;
  C2 : Array of Cardinal; C6 : Array of Cardinal;
  C3 : Array of Cardinal; C7 : Array of Cardinal;
  C4 : Array of Cardinal; C8 : Array of Cardinal;

procedure GetItem(Item:Cardinal; Source:Cardinal; Amount:Integer; Dest:Cardinal);
begin
  UseObject(Source);
  wait(1200);
  MoveItem(FindType(Item,Source),Amount,Dest,0,0,0);
  wait(1200);
  if (Item = $0EFA) then
    spellBook := FindItem;
end;

procedure FillBook(Circle:Array of Cardinal;Book:Cardinal;Source:Cardinal);
var
  i : Integer;
begin
  UseObject(Chest);
  wait(1200);
  UseObject(Source);
  wait(1200);
  
  for i := 0 to (Length(Circle)-1) do
    GetItem(Circle[i],Source,1,spellBook);
end;

begin
  C1:=[$1F2D,$1F2E,$1F2F,$1F30,$1F31,$1F32,$1F33,$1F34];
  C2:=[$1F35,$1F36,$1F37,$1F38,$1F39,$1F3A,$1F3B,$1F3C];
  C3:=[$1F3D,$1F3E,$1F3F,$1F40,$1F41,$1F42,$1F43,$1F44];
  C4:=[$1F45,$1F46,$1F47,$1F48,$1F49,$1F4A,$1F4B,$1F4C];
  C5:=[$1F4D,$1F4E,$1F4F,$1F50,$1F51,$1F52,$1F53,$1F54];
  C6:=[$1F55,$1F56,$1F57,$1F58,$1F59,$1F5A,$1F5B,$1F5C];
  C7:=[$1F5D,$1F5E,$1F5F,$1F60,$1F61,$1F62,$1F63,$1F64];
  C8:=[$1F65,$1F66,$1F67,$1F68,$1F69,$1F6A,$1F6B,$1F6C];
  
  for k := 0 to (CountEx($0EFA,$FFFF,EmptyBooks)-1) do
  begin
    GetItem($0EFA,EmptyBooks,0,Backpack);
    FillBook(C1,spellBook,C1BAG);
    FillBook(C2,spellBook,C2BAG);
    FillBook(C3,spellBook,C3BAG);
    FillBook(C4,spellBook,C4BAG);
    FillBook(C5,spellBook,C5BAG);
    FillBook(C6,spellBook,C6BAG);
    FillBook(C7,spellBook,C7BAG);
    FillBook(C8,spellBook,C8BAG);
  end;
end.

To make sure that I understand what is going on, I will break it up into sections.

This part here is labeled const and is a command letting stealth know that these are not going to change. Looks like secure bags separated by circle, then the secure holding them and the empty books. It matches up with the little preview thing he put up.

Code: [Select]
const
  C1BAG = $405AE12D; C5BAG = $405AE123;
  C2BAG = $405AE12B; C6BAG = $405AE101;
  C3BAG = $405AE138; C7BAG = $405AE13F;
  C4BAG = $405AE137; C8BAG = $405AE12E;
  G1BAG = $4073F9B2;
  
  Chest = $405AE140;
  EmptyBooks = $401AF5A9;

Here are the variables. I am not sure what the cardinal stands for other than the spellbook. Is it a specific name used in pascal language or just what DX wanted to name the spellbook? The integer tells stealth the number for each circle bag and then it tells stealth that the array will go to each bag?

Code: [Select]
var
  spellBook : Cardinal;
  k : Integer;
  
  C1 : Array of Cardinal; C5 : Array of Cardinal;
  C2 : Array of Cardinal; C6 : Array of Cardinal;
  C3 : Array of Cardinal; C7 : Array of Cardinal;
  C4 : Array of Cardinal; C8 : Array of Cardinal;

This next part tells stealth to find the spellbook notated as cardinal and grab it out of the secure, then it tells stealth to look into the chest and then into the bags separated by circle for the spell scrolls?

Code: [Select]
procedure GetItem(Item:Cardinal; Source:Cardinal; Amount:Integer; Dest:Cardinal);
begin
  UseObject(Source);
  wait(1200);
  MoveItem(FindType(Item,Source),Amount,Dest,0,0,0);
  wait(1200);
  if (Item = $0EFA) then
    spellBook := FindItem;
end;

procedure FillBook(Circle:Array of Cardinal;Book:Cardinal;Source:Cardinal);
var
  i : Integer;
begin
  UseObject(Chest);
  wait(1200);
  UseObject(Source);
  wait(1200);
  
  for i := 0 to (Length(Circle)-1) do
    GetItem(Circle[i],Source,1,spellBook);
end;

Finally it is telling stealth to grab out each scroll and drop it onto the spellbook?

Code: [Select]
begin
  C1:=[$1F2D,$1F2E,$1F2F,$1F30,$1F31,$1F32,$1F33,$1F34];
  C2:=[$1F35,$1F36,$1F37,$1F38,$1F39,$1F3A,$1F3B,$1F3C];
  C3:=[$1F3D,$1F3E,$1F3F,$1F40,$1F41,$1F42,$1F43,$1F44];
  C4:=[$1F45,$1F46,$1F47,$1F48,$1F49,$1F4A,$1F4B,$1F4C];
  C5:=[$1F4D,$1F4E,$1F4F,$1F50,$1F51,$1F52,$1F53,$1F54];
  C6:=[$1F55,$1F56,$1F57,$1F58,$1F59,$1F5A,$1F5B,$1F5C];
  C7:=[$1F5D,$1F5E,$1F5F,$1F60,$1F61,$1F62,$1F63,$1F64];
  C8:=[$1F65,$1F66,$1F67,$1F68,$1F69,$1F6A,$1F6B,$1F6C];
  
  for k := 0 to (CountEx($0EFA,$FFFF,EmptyBooks)-1) do
  begin
    GetItem($0EFA,EmptyBooks,0,Backpack);
    FillBook(C1,spellBook,C1BAG);
    FillBook(C2,spellBook,C2BAG);
    FillBook(C3,spellBook,C3BAG);
    FillBook(C4,spellBook,C4BAG);
    FillBook(C5,spellBook,C5BAG);
    FillBook(C6,spellBook,C6BAG);
    FillBook(C7,spellBook,C7BAG);
    FillBook(C8,spellBook,C8BAG);
  end;
end.

It seems pretty simple and straight forward which kind of scares me that I have mistakenly come to think that certain scripts could really be this easy. Would it be written differently for OSI?

71
Code: [Select]
;===================================================================
;===================================================================
; Script Name: Crisis Quick and Painless Spellbook Filler 2.3
; Author: Crisis
; Version: 2.3
; Client Tested with: 7.0.45.0
; EUO version tested with: 1.5 (version 285)
; Shard OSI / FS: OSI
; Release Date: 06/24/2014
; Revision Date: 04/07/2015
; Purpose:
;     .Fill spellbooks with stored spell scrolls Magery, Necromancy, and Mysticism.
;
; Revisions:
;     1.1 fixed typo in mysticism scrolls
;     2.0 Added support for magery scrolls kept in secures by circle
;     2.1 Added ability to hardcode the 8 spell circle containers
;         Adjusted Dragtospellbooksub to take one scroll instead of the whole stack
;         Adjusted a wait 1 to sub Idle to save on system resources
;         Added a return statement at the end of "sub StartMultiSpellbookFiller" and "sub StartSpellbookFiller"
;     2.2 Cleaned up code for better efficiency
;     2.3 Added Script Status
;         Removed code for picking scrolls up from floor
;
; Requirements:
;     . You need to have blank spellbooks and a secure with loose spell scrolls within reach.
;
; Future Updates:
;     . Add a ability to pick up empty books from a secure and drop off full books.
;
; Special Thanks:
;     . Manwinc for helping me learn about parsing and arrays and answering my MANY questions while working on this.
;     . Endless Night for helping me fix mistakes and clean up the code for better efficiency
;
; Copyright: 2014-2015 Crisis
;===================================================================
;===================================================================

Revisions:
1.1 fixed typo in mysticism scrolls
2.0 Added support for magery scrolls kept in secures by circle
2.1 Added ability to hardcode the 8 spell circle containers
      Adjusted Dragtospellbooksub to take one scroll instead of the whole stack
      Adjusted a wait 1 to sub Idle to save on system resources
      Added a return statement at the end of "sub StartMultiSpellbookFiller" and "sub StartSpellbookFiller"
2.2 Cleaned up code for better efficiency
2.3 Added Script Status
      Removed code for picking scrolls up from floor

This will take spell scrolls stored in a secure and fill a spellbook with it. It will work with magery, necromancy, and msyticism scrolls/books.
There is a start/pause button for quick and painless filling of numerous empty or partially filled spellbooks.

It will fill a magery spellbook from 8 different secures if you store them by circle. You can hardcode the secures in or just choose them through the setup.

I used this as a learning tool and to save time and clicks filling spellbooks with all of the loose scrolls that I collect fishing and treasure hunting.

Enjoy and let me know how it works for you!

A special thanks to Manwinc for all his help and patience while I was learning about parsing and arrays and Endless Night for helping me fix mistakes and clean up the code for better efficiency!

72
Stealth archive / NEWB! Where to start?
« on: June 22, 2014, 07:22:10 AM »
Yes, I admit it 100% and admit it proudly. I am a NEWB! I am starting to understand how to code in EUO and I read that Stealth is supposed to be better. I want to start looking at Stealth and figure out if I want to continue learning EUO or give Stealth a shot. I have ZERO coding knowledge other than playing around with RunUO scripts and EUO scripts. I looked OpenEUO over but did not care much for it. Where do I start?  8)

73
Script Debug / What am I missing here?
« on: June 21, 2014, 11:48:34 AM »
I am sure that it is something small but I cannot find my mistake. I am trying to take a container filled with mage spell scrolls and drop the stacks on a rune book one by one and then stop. I have not decided what to do if a scroll type is missing but I just wanted to see if it would start trying to drop scrolls and it does nothing after choosing the spellbook and scroll secure. What did I miss?

Code: [Select]

,----------------------------------------------------

    Display Choose the spellbook that you want to fill...
    set #targcurs 1
    while #targcurs = 1
      wait 5
    set %spellbook #ltargetID
    set #lobjectid %spellbook
    wait 10
   
    display Ok Select your Scroll Secure Container...
    set #targcurs 1
    while #targcurs = 1
      wait 5
    set %ScrollSecure #ltargetid
    set #lobjectid %ScrollSecure
    event macro 17 0
    wait 20
   
    gosub DragToSpellbook %ScrollSecure %spellbook QXL ;Clumsy
    gosub DragToSpellbook %ScrollSecure %spellbook PXL ;Create_Food
    gosub DragToSpellbook %ScrollSecure %spellbook AYL ;Feeblemind
    gosub DragToSpellbook %ScrollSecure %spellbook ZXL ;Heal
    gosub DragToSpellbook %ScrollSecure %spellbook CYL ;Arrow
    gosub DragToSpellbook %ScrollSecure %spellbook NXL ;Reactive_Armor
    gosub DragToSpellbook %ScrollSecure %spellbook BYL ;Night_Sight
    gosub DragToSpellbook %ScrollSecure %spellbook WXL ;Weaken
    gosub DragToSpellbook %ScrollSecure %spellbook VXL ;Agility
    gosub DragToSpellbook %ScrollSecure %spellbook YXL ;Cunning
    gosub DragToSpellbook %ScrollSecure %spellbook XXL ;Cure
    gosub DragToSpellbook %ScrollSecure %spellbook IYL ;Harm
    gosub DragToSpellbook %ScrollSecure %spellbook HYL ;Magic_Trap
    gosub DragToSpellbook %ScrollSecure %spellbook KYL ;Magic_Untrap
    gosub DragToSpellbook %ScrollSecure %spellbook JYL ;Protection
    gosub DragToSpellbook %ScrollSecure %spellbook EYL ;Strength
    gosub DragToSpellbook %ScrollSecure %spellbook DYL ;Bless
    gosub DragToSpellbook %ScrollSecure %spellbook GYL ;Fireball
    gosub DragToSpellbook %ScrollSecure %spellbook FYL ;Magic_Lock
    gosub DragToSpellbook %ScrollSecure %spellbook STL ;Poison
    gosub DragToSpellbook %ScrollSecure %spellbook RTL ;Telekinesis
    gosub DragToSpellbook %ScrollSecure %spellbook UTL ;Teleport
    gosub DragToSpellbook %ScrollSecure %spellbook TTL ;Unlock
    gosub DragToSpellbook %ScrollSecure %spellbook OTL ;Wall_of_Stone
    gosub DragToSpellbook %ScrollSecure %spellbook NTL ;Arch_Cure
    gosub DragToSpellbook %ScrollSecure %spellbook QTL ;Arch_Protection
    gosub DragToSpellbook %ScrollSecure %spellbook PTL ;Curse
    gosub DragToSpellbook %ScrollSecure %spellbook AUL ;Fire_Field
    gosub DragToSpellbook %ScrollSecure %spellbook ZTL ;Greater_Heal
    gosub DragToSpellbook %ScrollSecure %spellbook CUL ;Lightning
    gosub DragToSpellbook %ScrollSecure %spellbook BUL ;Mana_Drain
    gosub DragToSpellbook %ScrollSecure %spellbook WTL ;Recall
    gosub DragToSpellbook %ScrollSecure %spellbook VTL ;Blade_Spirits
    gosub DragToSpellbook %ScrollSecure %spellbook YTL ;Dispel_Field
    gosub DragToSpellbook %ScrollSecure %spellbook XTL ;Incognito
    gosub DragToSpellbook %ScrollSecure %spellbook IUL ;Magic_Reflection
    gosub DragToSpellbook %ScrollSecure %spellbook HUL ;Mind_Blast
    gosub DragToSpellbook %ScrollSecure %spellbook KUL ;Paralyze
    gosub DragToSpellbook %ScrollSecure %spellbook JUL ;Poison_Field
    gosub DragToSpellbook %ScrollSecure %spellbook EUL ;Summon_Creature
    gosub DragToSpellbook %ScrollSecure %spellbook DUL ;Dispel
    gosub DragToSpellbook %ScrollSecure %spellbook GUL ;Energy_Bolt
    gosub DragToSpellbook %ScrollSecure %spellbook FUL ;Explosion
    gosub DragToSpellbook %ScrollSecure %spellbook QUL ;Invisibility
    gosub DragToSpellbook %ScrollSecure %spellbook PUL ;Mark
    gosub DragToSpellbook %ScrollSecure %spellbook SUL ;Mass_Curse
    gosub DragToSpellbook %ScrollSecure %spellbook RUL ;Paralyze Field
    gosub DragToSpellbook %ScrollSecure %spellbook MUL ;Reveal
    gosub DragToSpellbook %ScrollSecure %spellbook LUL ;Chain_Lightning
    gosub DragToSpellbook %ScrollSecure %spellbook OUL ;Energy_Field
    gosub DragToSpellbook %ScrollSecure %spellbook NUL ;Flamestrike
    gosub DragToSpellbook %ScrollSecure %spellbook YUL ;Gate_Travel
    gosub DragToSpellbook %ScrollSecure %spellbook XUL ;Mana_Vampire
    gosub DragToSpellbook %ScrollSecure %spellbook AVL ;Mass_Dispel
    gosub DragToSpellbook %ScrollSecure %spellbook UUL ;Polymorph
    gosub DragToSpellbook %ScrollSecure %spellbook ZUL ;Meteor_Swarm
    gosub DragToSpellbook %ScrollSecure %spellbook TUL ;Earthquake
    gosub DragToSpellbook %ScrollSecure %spellbook WUL ;Energy_Vortex
    gosub DragToSpellbook %ScrollSecure %spellbook VUL ;Resurrection
    gosub DragToSpellbook %ScrollSecure %spellbook GVL ;Air_Elemental
    gosub DragToSpellbook %ScrollSecure %spellbook FVL ;Summon_Daemon
    gosub DragToSpellbook %ScrollSecure %spellbook IVL ;Earth_Elemental
    gosub DragToSpellbook %ScrollSecure %spellbook HVL ;Fire_Elemental
    gosub DragToSpellbook %ScrollSecure %spellbook CVL ;Water_Elemental

,----------------------------------------------------
 
 sub DragToSpellbook
  set %ScrollSecure %1
  set %spellbook %2
  set %scrolls %3

  finditem %SpellSecure G_2
  if #FINDKIND = -1
    return N/A
  DragToSpellbook_loop1:
    finditem %scrolls C_ , %ScrollSecure
    if #FINDKIND <> -1
    {
      exevent drag #FINDID #FINDSTACK
      wait 10
      exevent dropc %spellbook
      wait 10
      goto DragToSpellbook_loop1
    }
return

,----------------------------------------------------

;-------------------------------------------------
; %1 = GumpWait
; %2 = Gumpname 1
; %3 = Gumpname 2
sub GumpWait
  wait 10
  set %timedelay #SCNT
  loopwait1:
    if #CONTNAME = %1 || #CONTNAME = %2
      return
    if #SCNT > %timedelay + 7
      return
    goto loopwait1
return

74
Greetings! I will make the introduction short. I made a carpentry crafting script a while back based off of another crafting script that a friend helped me with. He plays runuo and helped me get it working but I did not understand a lot of the tweaks and timings that he added. My goal here is to remake the carpentry script from scratch and to dissect each sub so that I understand (or hopefully understand) everything that goes into it. My scripting skills are on the lower end while my knowledge has been gaining. I invite everyone from the most novice scripter to the most legendary scripter to follow along, learn, encourage, and explain. I am sure that there will be a lot of "aha' moments along with a lot of "DOH" moments as well. This will hopefully help everyone whether you are just learning to write, whethere you are not planning on writing scripts but want to learn to tweak them, or even more advanced scripters that might learn something new.

Since this is for my learning benefit, I will ask one thing. Please do not be negative. If you don't have something constructive to say, please don't post. I have never had that problem here at SUO but I do want to say it. I know that I will make a lot of newbie mistakes and might completely miss the most obvious things but I want to learn. I know that this could benefit others as well. With that being said, thank you for reading and hopefully this will be a great learning tool for some and entertaining for others!  ;)



EDIT: This will be an ongoing work in progress and how quickly it goes will depend on my free time and how quickly I understand a step before moving on the next step. Please have patience.  8)

75
Scripting Chat / Learning Guide Post
« on: April 07, 2014, 01:13:27 PM »
My free time has increased and I am going to figure out how to make a thorough and stable crafting script even if it kills me. I will start out with a rewrite of my carpentry script.

I would like to create a learning thread for myself and anyone else that is interested in seeing my mistakes and how I learn to correct them. I would like to tackle my script a sub at a time explain how I think it works, see what others think and suggest, and then at the end of it, put it all together and hope it works as intended. If it doesn't then I would continue with the thread and trouble shoot it. I am not much of a book learner but more of a hands on, jump in head first and tinker with it until I figure it out or break it learner.

I have 2 questions about my suggested plan.

1. Is this something that is acceptable to post and would others be interested in it?

2. If it is, then where should I start the thread? I was thinking one of three places but don't know what would be preferred or best. I was thinking of these three:
  • Scripting Chat
  • Script Debug
  • Scripting Tutorials

What are your thoughts on this?

Once I have EasyUO figured out I may try and figure out stealth lol.

Pages: 1 ... 3 4 [5] 6 7 8