Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 11-16-2005, 07:06 PM   #1 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default Cursed Pirates and Artifacts

Cursed Pirates and Artifacts

UPDATE Feb 14, 2006
********************
FIXED: Issue with players losing items that were equiped while they were cursed. When uncursed, only "pirate curse" items are deleted. Any items added by player will be sent to pack in a bag named "Pirate Curse Unequiped Items". Dowload new zip and overwrite existing files (actually... the only file in package that changed is Misc\PirateCurse.cs).

UPDATE Dec. 6, 2005
********************
FIXED: Removed an unneccesary reference to Server.Crops in CurseCommand.cs. See Cursed Pirates and Artifacts for details

Original Post
********************
I decided to take a break from winecrafting and script a few cursed pirate mobiles along with artis and an arti distribution method that will drive players crazy!

This system includes three mobiles, a couple special items, seven artis, and a command for admins.

Mobiles...
Cursed Pirate - need to spawn & summoned when Cursed Pirate King is damaged - has a 1/20 chance of dropping cursed jugs of rum (see special items below)
Cursed Pirate King - Chance for player to summon by drinking cursed jugs of rum. This guy is tough. He is similar to Dark Father, but a bit easier. He throws cursed bottles of rum which, if not destroyed, will spawn cursed pirates or skeleton pirates.
Skeleton Pirate - Summoned when CursedPirateKing is damaged. Nothing special, just a stronger skeletal knight.
Special Items...
Cursed bottles of rum - thrown by Cursed Pirate King. These are carveable and if cut by a blade, there is a chance to destroy them. If not destroyed, they will spawn cursed pirates and skeleton pirates.
Cursed Jug of Rum - 1/20 chance to drop in cursed pirate loot. These are the core to this system and where the fun (or frustration) begins!! The bottles can be consumed by players and will have a chance at one of the following effects...
* Nothing happens (default)
* Player is damaged (1/20 chance) - Player will receive a random amount of damage from 30 to 150... could be fatal if not careful!
* Player is temporarily cursed with the "cursed pirate" curse (1/20 chance) - This is a curse that lasts 4 minutes and basically turns the player into a cursed pirate. See details below.
* Player summons another cursed pirate (1/20 chance) - bonus chance to get another cursed jug of rum!
* Player summons the cursed pirate king (1/20 chance) - Chance at the cursed pirate artis!
Pirate Bag - A special bag that is used when the player is cursed with the pirate curse. This bag holds all the players equipment and their title and original hue. When the curse wears off, the equipment is returned and the players hue and title are restored. This bag is placed in the players bank and is not visible.
Artifacts...
CursedPirateCutlass, CursedPirateShirt, CursedPiratePants, CursePirateBoots, CursedPirateRing, CursedPirateEarrings, and CursedPirateTricorne
All artifacts are suited to my shard. Some might think they are too strong, others will want to beef them up. Feel free to customize the attributes of each item to suit your shard.
Commands...
pcurse - admins can use this to curse a player with the pirate curse
rpcurse - admins can use this to remove the pirate curse from a player.
Details on the curse...
The curse basically turns a player into a cursed pirate for four minutes. This involves...
Player becomes a criminal for the duration.
All players armor/weapons worn will be transfered to the pirate bag in their bank.
Player will be equipped with cursed pirate clothing. The clothing cannot be removed for the duration of the curse.
Player will be given a title of "the Cursed Pirate".
Player is given a cursed pirate hue.
Player will be poisoned(greater). This can be cured.
Even upon death, player will remain cursed until time wears the effects off.
Players resistances, except energy, will drop by 10.
Depending on how you want to implement this, you can add one line to \Spells\Chivalry\RemoveCurse.cs, to allow players to remove this curse using Remove Curse spell...

Look for the following...
Code:
EvilOmenSpell.CheckEffect( m );
StrangleSpell.RemoveCurse( m );
CorpseSkinSpell.RemoveCurse( m );
CurseSpell.RemoveEffect( m );
and add this after...
Code:
PirateCurse.RemoveCurse ( m );

**Note**
If you would like to add cursed jugs of rum as loot on any other mobiles, simply add the following line to the mobiles OnBeforeDeath routine...
Code:
PirateCurse.CursedPirateLoot(this, 20);
where 20 is the chance to get cursed jugs of rum (i.e. 20 = 1/20).

To install, simply unrar the attached file into your customs directory. After you install, you can add "CursedPirates" using your spawner.

Have Fun!!!
Attached Files
File Type: zip CursedPirate_1.0.1.zip (15.5 KB, 336 views)

Last edited by dracana; 02-14-2006 at 07:36 PM. Reason: Fixed issue with items lost when uncursed
dracana is offline  
Old 11-16-2005, 07:14 PM   #2 (permalink)
Forum Expert
 
Join Date: Dec 2003
Location: Sitting in a chair fulfilling my life's goal
Age: 22
Posts: 2,650
Send a message via AIM to Killamus Send a message via MSN to Killamus
Default

I noticed that the boots are barbed, I have yet to test this stuff, but I believe that will throw an error. Besides, then it would come out as "Barbed cursed boots of the pirate" or whatever. I don't know if you wanted this or not, but nothing has resists either.
__________________
Procrastinators unite!
Tomorrow.
Saying that Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
Killamus is offline  
Old 11-16-2005, 07:46 PM   #3 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

I haven't gotten a chance to look at this yet, but (from the description) it seems very detailed/well made. Good job, keep it up!
Joeku is offline  
Old 11-16-2005, 08:13 PM   #4 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by Killamus
I noticed that the boots are barbed, I have yet to test this stuff, but I believe that will throw an error. Besides, then it would come out as "Barbed cursed boots of the pirate" or whatever. I don't know if you wanted this or not, but nothing has resists either.
Oops. thanks for pointing that out... those boots should not be barbed. Attached is a fix for the boots. I will update the original post as well.

As for the resists, the shirt, tricorne, pants, and boots should all add resists. The rest were desinged without resists. With good armor and a full set of cursed pirate gear, all 70 resists should be attainable.

**edit * I did just notice that the shirt and pants do not add the resists as it should (This is because the layer they are set at.) Posted a fix here and in original post... Thanks Killamus
Attached Files
File Type: cs CursedPirateBoots.cs (1.5 KB, 70 views)
File Type: cs CursedPiratePants.cs (1.5 KB, 64 views)
File Type: cs CursedPirateShirt.cs (1.7 KB, 63 views)
dracana is offline  
Old 12-03-2005, 10:23 AM   #5 (permalink)
 
Join Date: May 2004
Location: ohio
Age: 32
Posts: 10
Send a message via AIM to Typo Send a message via MSN to Typo Send a message via Yahoo to Typo
Default

Nice, sounds like a lot of fun for my shard
__________________
To error is human, to typo is devine
Typo is offline  
Old 12-03-2005, 01:08 PM   #6 (permalink)
Account Terminated
 
Join Date: Nov 2005
Location: Effingham, Il
Age: 16
Posts: 50
Send a message via ICQ to Teh Gamer Send a message via AIM to Teh Gamer Send a message via MSN to Teh Gamer
Default

They're ok, but seem a little urber. Might need to nerf em.
Teh Gamer is offline  
Old 12-03-2005, 01:41 PM   #7 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Yes, the arti's are a bit uber, but not over the the top. They were designed for my shard, which only has a few players, so people do alot of hunting on their own.

Feel free to remove some attributes or lower resists as you see fit for your shard.
dracana is offline  
Old 12-03-2005, 05:52 PM   #8 (permalink)
Forum Expert
 
Thistle's Avatar
 
Join Date: Mar 2005
Posts: 1,155
Default

Yarrr matey!!

You always come up with interesting and well thought out packages. Thanks a bunch.
Thistle is offline  
Old 12-04-2005, 02:34 AM   #9 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by Thistle
Yarrr matey!!

You always come up with interesting and well thought out packages. Thanks a bunch.
Arrr! thanks me hearty for ye compliments.
dracana is offline  
Old 12-05-2005, 11:31 PM   #10 (permalink)
Newbie
 
Join Date: Oct 2005
Age: 33
Posts: 18
Question player stuck as pirate

on of my players is stuck cursed it has been 10 hr i tryed the comands restarting server and the pc any ideas? thank you.
rygardaman is offline  
Old 12-06-2005, 12:17 AM   #11 (permalink)
Forum Newbie
 
Join Date: Oct 2004
Age: 32
Posts: 35
Default Read more often

Quote:
Originally Posted by rygardaman
on of my players is stuck cursed it has been 10 hr i tryed the comands restarting server and the pc any ideas? thank you.
Um yeah.. If you read the frist post it tells you what to do.. Just type rpcurse and target the player. Restarting your server and or PC will not do anything if there was a world save before you shut down... Good luck with that.
valdis is offline  
Old 12-06-2005, 03:59 AM   #12 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by rygardaman
on of my players is stuck cursed it has been 10 hr i tryed the comands restarting server and the pc any ideas? thank you.
Did you try using the command [rpcurse on the player? If not, do that. If you did and it didn't work, you can always do it manually...
1. Open players paperdoll and delete all pirate equipment.
2. Open player bank and find pirate bag. This contains their equipment and if you use props on bag, you will see their original hue and title (if any). Return equipment to player
3. Use [props on player and restore their hue and title (using values from bag)
4. Delete pirate bag from bank.

Hope that helps.
dracana is offline  
Old 12-06-2005, 06:19 PM   #13 (permalink)
Newbie
 
Join Date: Oct 2005
Age: 33
Posts: 18
Default thank you for your help

yes i did try the comands i did give his things back. i will do his hues and such tonight. my players love this script thank you for sharing it. one thing i need to know is now he is cursed all the time from the scripts point of view when he drinks more rum it say he is already under a curse so he can't be cursed again. he is the onley one so far that this hapend to. i will keep checking back to see if there is a fix. again thank you for this script awsome job hope you do more hehe
rygardaman is offline  
Old 12-06-2005, 06:49 PM   #14 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by rygardaman
yes i did try the comands i did give his things back. i will do his hues and such tonight. my players love this script thank you for sharing it. one thing i need to know is now he is cursed all the time from the scripts point of view when he drinks more rum it say he is already under a curse so he can't be cursed again. he is the onley one so far that this hapend to. i will keep checking back to see if there is a fix. again thank you for this script awsome job hope you do more hehe
You will need to delete the Pirate Bag from his bank box. This is checked in the script and if there will not allow him to be cursed again.
dracana is offline  
Old 12-06-2005, 07:12 PM   #15 (permalink)
Newbie
 
Join Date: Oct 2005
Age: 33
Posts: 18
Thumbs up ahhhh

awsome thank you very much
rygardaman is offline  
Old 12-06-2005, 11:21 PM   #16 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 23
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
 - Error: Scripts\Custom\New Scripts\NPC's\Monsters\CursedPirate\Commands\CurseC
ommand.cs: CS0234: (line 3, column 20) The type or namespace name 'Crops' does n
ot exist in the class or namespace 'Server.Items' (are you missing an assembly r
eference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
fresh download and it throws this....
__________________

Pyro-Tech is offline  
Old 12-07-2005, 12:48 AM   #17 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default Oops!

Quote:
Originally Posted by Pyro-Tech
Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
 - Error: Scripts\Custom\New Scripts\NPC's\Monsters\CursedPirate\Commands\CurseC
ommand.cs: CS0234: (line 3, column 20) The type or namespace name 'Crops' does n
ot exist in the class or namespace 'Server.Items' (are you missing an assembly r
eference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
fresh download and it throws this....
Sorry about that!! Poor cut and pasting from me I copied the command script from my winecrafting and forgot to remove that line... replace CurseCommand.cs with this attached file.

**** PS****
It wont allow me to upload .cs files, so I had to do it as .txt!! Rename file to CurseCommand.cs and then replace the old file
Attached Files
File Type: txt CurseCommand.txt (2.5 KB, 31 views)
dracana is offline  
Old 12-08-2005, 12:00 AM   #18 (permalink)
Newbie
 
Join Date: Oct 2005
Age: 33
Posts: 18
Default hello again

ok i am stuck with this problem the char that gets perma cursed i can manualy un curse him remove the bag from his bank change his hue and tital thats all fine and good but this hapens every time he gets cursed and after i manualy reset his props i canot recurse him it tells him he is already under a curse and takes 24 hr to curse him again i have tested lots of other chars and a new char on his acct they all work fine also with nothing on him or in his bag i even add the chiv line that will not work ether i am very sorry about reposting this but i am not sure what to do your script is very popular on my shard and i would hate to remove it for one char any help would be great
rygardaman is offline  
Old 12-08-2005, 02:21 AM   #19 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by rygardaman
ok i am stuck with this problem the char that gets perma cursed i can manualy un curse him remove the bag from his bank change his hue and tital thats all fine and good but this hapens every time he gets cursed and after i manualy reset his props i canot recurse him it tells him he is already under a curse and takes 24 hr to curse him again i have tested lots of other chars and a new char on his acct they all work fine also with nothing on him or in his bag i even add the chiv line that will not work ether i am very sorry about reposting this but i am not sure what to do your script is very popular on my shard and i would hate to remove it for one char any help would be great
If it is only happening with one char and everyone else is fine, I think we need to determine what is different with his char from everyone else. Maybe if you can email me screenshots of all of his props pages and his status gump, I can do some testing on my side by creating a similar char on my server.
dracana is offline  
Old 12-08-2005, 09:12 PM   #20 (permalink)
Newbie
 
Join Date: Oct 2005
Age: 33
Posts: 18
Thumbs up ok i think it is fixed i hope

i looked at his props next to mine all was the same till i got to language my prop for that say "ENG" and his say "eng" after i changed that all was good curse now act as it should with him i have no idea why this would do that but it did or how it got that way. thank you for all your help you have 5 gold stars in my book fersure
rygardaman is offline  
Old 12-08-2005, 11:12 PM   #21 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by rygardaman
i looked at his props next to mine all was the same till i got to language my prop for that say "ENG" and his say "eng" after i changed that all was good curse now act as it should with him i have no idea why this would do that but it did or how it got that way. thank you for all your help you have 5 gold stars in my book fersure
Great, glad to hear you figured it out!

*Goes to search RunUO scripts to see where pm Language prop is used and why it had that effect!*
dracana is offline  
Old 12-09-2005, 12:27 AM   #22 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

Fresh install, this is what I get:
Quote:
- Error: Scripts\New Scripts\Mobiles\CursedPirate\Mobiles\CursedPirateK ing.cs: CS0246: (line 170, column 17) The type or namespace name 'CursedRumBottles' could not be found (are you missing a using directive or an assembly reference?)
- Error: Scripts\New Scripts\Mobiles\CursedPirate\Mobiles\CursedPirateK ing.cs: CS0246: (line 172, column 17) The type or namespace name 'bottles' could not be found (are you missing a using directive or an assembly reference?)
- Error: Scripts\New Scripts\Mobiles\CursedPirate\Mobiles\CursedPirateK ing.cs: CS0246: (line 173, column 17) The type or namespace name 'bottles' could not be found (are you missing a using directive or an assembly reference?)
- Error: Scripts\New Scripts\Mobiles\CursedPirate\Mobiles\CursedPirateK ing.cs: CS0246: (line 174, column 17) The type or namespace name 'bottles' could not be found (are you missing a using directive or an assembly reference?)
- Error: Scripts\New Scripts\Mobiles\CursedPirate\Mobiles\CursedPirateK ing.cs: CS0246: (line 176, column 17) The type or namespace name 'bottles' could not be found (are you missing a using directive or an assembly reference?)
I am guessing that all of the other errors are because of the first error. Did you forget to include CursedRumBottles in the pack?
Joeku is offline  
Old 12-09-2005, 12:58 AM   #23 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default

Quote:
Originally Posted by Joeku
Fresh install, this is what I get:

I am guessing that all of the other errors are because of the first error. Did you forget to include CursedRumBottles in the pack?
You are exactly right! Sorry about that. I use those bottles in a pirate quest I wrote and when I released the updated version yesterday, I forgot to include them... here you go. (you will need to rename CursedRumBottles.txt to CursedRumBottles.cs, since I can't upload .cs anymore!!)

The zip in the original post has been updated as well.
Attached Files
File Type: txt CursedRumBottles.txt (2.1 KB, 26 views)
dracana is offline  
Old 12-09-2005, 01:10 AM   #24 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

Thanks, looking forward to using this (my shard uses nautical stuff a lot.)
Joeku is offline  
Old 02-14-2006, 07:38 PM   #25 (permalink)
Forum Expert
 
Join Date: Oct 2004
Location: San Diego, CA
Age: 39
Posts: 281
Send a message via AIM to dracana Send a message via MSN to dracana
Default Bug fixed... please redownload

FIXED an issue with players losing items that were equiped while they were cursed.

Now, when uncursed, only "pirate curse" items are deleted. Any items added by player will be sent to pack in a bag named "Pirate Curse Unequiped Items". Dowload the new zip in the first post and overwrite existing files (actually... the only file in package that changed is Misc\PirateCurse.cs).
dracana is offline  
 

Bookmarks

«