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

Pages: 1 2 [3] 4 5
31
Code: [Select]
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.

Finally got around to whipping this up while procrastinating some school work and playing EVE Online. Seems to run well, I want to refine on the arrays to better move through them. I don't really like how it works atm.

32
Stealth Snippets\Library / [Example] Procedures
« on: June 06, 2013, 03:45:32 PM »
I had someone asking me the other day what the point of making procedure to perform a task like moving an item when stealth has functions like MoveItem readily available for such tasks. And further how someone would go about creating a procedure to handle such a task.

Here is an example of such a procedure, it even works.

Code: [Select]
procedure GetItem(Item:Cardinal; Source:Cardinal; Amount:Integer);
begin
  UseObject(Source);
  wait(1200);
  MoveItem(FindType(Item,Source),Amount,BackPack,0,0,0);
  wait(1000);
end;

Now to answer the question of why someone would have this sort of function is purely for the sake of sanity and I suppose also to look neat.

Alternate and less efficient methods of moving items within your code would consist of the typing the same code every time you wanted to move something.

Code: [Select]
  MoveItem(FindType(Item,Source),1,BackPack,0,0,0);
  wait(1000);

Now what's easier and cleaner looking, that pasted over and over for every single thing you want to move, or this?

Code: [Select]
GetItem($0EFA,EmptyBooksContainer,1);

To help anyone who is newer to this procedural concept I'll break down what makes it work.

When you pass information to a procedure it must pass the correct information in the correct order, which is set via the procedure's properties.

Quote
procedure GetItem(Item:Cardinal; Source:Cardinal; Amount:Integer);

GetItem($0EFA,EmptyBooksContainer,1);

Now let's break down where these properties are utilized within the procedure.

Quote
begin
  UseObject(Source);
  wait(1200);
  MoveItem(FindType(Item,Source),Amount,BackPack,0,0,0);
  wait(1000);
end;

Instead of writing a wall of text attempting to point your attention towards where things happen, I have grouped them with the help of the bold, italic and underlined text modifiers.

For a further understanding of the functions within this procedure you can follow these links.

http://stealth.od.ua/Doc:Api/UseObject
http://stealth.od.ua/Doc:Api/FindType
http://stealth.od.ua/Doc:Api/MoveItem

I hope this helps anyone who is learning.

33
Off Topic / TrailMyx
« on: May 19, 2013, 07:02:16 PM »
Hi :)

34
Code: [Select]
(*Written by dxrom for ScriptUO.com
An example of utilizing an array to sort items into proper bags.
This example is intended for the 64 Spells of Magery.
Constants should be changed as per each individual user's setup.

Chest - the main container hold the 8 containers for each circle of spell
SortBag - the bag full of magery scrolls
CxBAG - Bags representing spell circles, contained within Chest.*)

Thought this would be something fun to throw together real quick as an example script (Also works!)

Thanks Crome for beating me through my sleepless stupor :P

35
What're some of the cheesiest pickup lines you have used? They have the be ones you've actually USED and not ones you've just heard of.

I'll kick it off, I was at Otakon a few years back and was chatting with a girl and we seemed to click a bit on interests, she mentioned an interest the older Lucas films which was pretty cool. Later that night we happened across each other at a 21+ area and the greatest pickup line I've ever thought up popped into my head. I told that she should change her name to "Diana Jones" and when she asked why, I explained so that I could be "Indiana Jones".

It was a bit outright, but it worked :>

36
Whipped this script up for training EvalInt and Swords(or any other wep skill of your choice) at the same time. I needed it for training a chr on a pre-aos freeserver.

Code: [Select]
//Written by dxrom and released to ScriptUO
//Used on T2A/Pre-AOS Free server.
//Does not support: Training character healing Trainer NPC, pulling Regs out of PullBAG.
//Setup Requires: 1 Bag/box to pull weps out of, 1NPC to train on (Boxed in)
//                Enough magery to cast Invisiblity, Bloodmoss and Nightshade (In backpack).
//Suggestions: Use my Heal Another script with an alt to heal the NPC or else NPC will die.

37
Script Debug / Momentum Strike logic
« on: March 24, 2013, 05:59:09 AM »
So I've been trying to make a method to logically scan mobs and determine if they should be Momentum Struck.

What I have so far is

Code: [Select]
finditem %target G_8
if #findCnt > 0
{
 if #findCnt > 2 && #findDist > 2
 {
  %target2 = #findID
  research:
  finditem %target G_1
  if #findDist > 1 || #findID = %target2
  {
   ignoreitem #findid 2
   goto research
  }
  if #findDist < 1
  {
   %tertiary = #findID
   %target = %target2
   %target2 = %tertiary
  }
  if ( %useLS = #true ) && && ( %spellTimer < #scnt2 ) && ( %target2 = %tertiary ) ;Dont mind the %useLS part
     gosub execMS
 }

Basically what I want it to do is, when it finds %target, search within 1 tile around myself for another target. If it finds a target around me, then I want it to attack the first target it found (range target) with momentum strike, which will in turn hit the target NEXT to me with momentum strike also.

38
Stealth scripts / [V4 , Pascal] [OSI] dxrom's Bushido Trainer
« on: March 22, 2013, 01:25:15 AM »
Needed to GM bushido on a new character so I whipped this up really quick to work on a thrower with a wolf spider. However it should work on any kind of dexxer with a poison weapon.

Since lightning strike does periodic damage, it monitors the spider's health and wont perform lightning strike when it is under 90% which with successive hits is not just safety but also a grace period to regenerate your mana while it regens it's health. This script doesn't take into consideration LMC, it works in conjunction with the flat 10MP cost for Confidence (used to get from 40-50) and lightning strike.

Easy setup. Buy 40 Bushi, get a wolf spider, input the wolf spider's ID and start it up.

Also as a safety precaution, when something is breaking (Your weapon hopefully) it will disarm you so you don't break your weapon.

39
Off Topic / Magery Spellbook Icon
« on: December 29, 2012, 12:03:44 AM »
Hey I tore this out of InsideUO and was wondering if anything could make the edges (black border) transparent. I wanna use it as an icon for a program I'm working on, but I don't want it too look dirty with a nasty silhouette. :>

40
Off Topic / What'd everyone get this year?
« on: December 25, 2012, 01:13:41 PM »
Like always, I'm starting this topic off.

What'd you all get this year?

I got a Raspberry Pi that I'm gonna load up with PwnPi.
Wireless Turtlebeaches (x42)

41
Player Templates / Doom runner
« on: November 30, 2012, 01:11:38 AM »
Was wondering if anyone had any idea what could solo doom with relative speed. Reactivated my account and found myself bored, figured I could maybe throw together a chr to do it.

42
.NET Programming / Learing C#
« on: November 18, 2012, 09:15:14 PM »
So, I'm in my third, almost fourth week of a C# course for college and this week we played around with Loops, I wrote a program for class (The topic was given out by the teacher and was the same for everyone). I think it turned out well, but after reading through some class mate's posts I'm wondering if it could have been better (Note, we're not aloud to use arrays, only simple loops). Because I notice alot of students complaining about having to use a lot of Break; Continue; statements in order to leave the loop. My program however didn't utilize any. I'll toss up source for input.

Code: [Select]
// ---------------------------------------------------------------
// Programming Assignment:    LAB3A
// Developer:                 MP
// Date Written:              November 18, 2012
// Purpose:                   Diver's Score Calculator
// ---------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LAB3A
{
    class Program
    {
        static void Main(string[] args)
        {
            do
            {
                //vars
                double rating, score, scoreTotal = 0, highScore = 0, lowScore = 10, dedScore = 0;
                string dName, dHome;

                //Prompt for name/city/rating
                Console.Write("Diver's Name: ");
                dName = Console.ReadLine();
                Console.Write("Diver's City: ");
                dHome = Console.ReadLine();
                //rating stuff
                Console.Write("Dive degree of difficulty: ");
                rating = Double.Parse(Console.ReadLine());
                while (rating < 1 || rating > 1.67)
                {
                    Console.WriteLine("Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67)");
                    Console.Write("Dive degree of difficulty: ");
                    rating = Double.Parse(Console.ReadLine());
                }
                //Judge Scoring
                for (int i = 1; i <= 5; i++)
                {
                    Console.WriteLine("Judge #{0} score: ", i);
                    score = Double.Parse(Console.ReadLine());
                    while (score < 0 || score > 10)
                    {
                        Console.WriteLine("Invalid score - Please reenter (Valid Range: 0 - 10)");
                        Console.WriteLine("Judge #{0} score: ", i);
                        score = Double.Parse(Console.ReadLine());
                    }
                    if (score > highScore)
                    {
                        highScore = score;
                    }
                    if (score < lowScore)
                    {
                        lowScore = score;
                    }
                    scoreTotal = score + scoreTotal;
                }
                dedScore = highScore + lowScore;
                scoreTotal = (scoreTotal - dedScore) / 3 * rating;
                //Display stuffs
                Console.WriteLine("Diver: {0}", dName);
                Console.WriteLine("City: {0}", dHome);
                Console.WriteLine("Dive Score: {0}", scoreTotal);
                Console.WriteLine("Do you want to process another diver (Y/N)?");
            } while (Console.ReadLine().ToUpper() != "N");
            break;
        }
    }
}

43
Jokes! / Lightbulbs
« on: November 12, 2012, 05:55:14 PM »

44
Firefly/Serenity / Castle
« on: November 07, 2012, 06:14:38 AM »
So, I was watching the new Castle the other day and I picked up on a nice little easter egg from the previous Captain Reynolds (Richard Castle in Castle). The episode kicks off in a convention where there is a murder on a fan re-creation of some (assuming made up) space ship series called Nebula 9. Now when this ep started I immediately thought of Firefly, given the main cast in Castle AND that the fiction sci-fi was a spaceship one (With enemies named KREAVERS). Then I noticed the hint as Castle bashes Nebula 9 as a short lived series with only 12 episodes... And that he is fans of "good sch-fis" such as "Star Trek, Battlestar, and that Joss Whedon show."


Bwahaha.

Also note that he bashes on Nebula 9 for being canceled a "decade ago after only 12 episodes."

45
Jokes! / Good coders
« on: October 26, 2012, 05:14:33 PM »

Pages: 1 2 [3] 4 5