|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
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)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.Artifacts... CursedPirateCutlass, CursedPirateShirt, CursedPiratePants, CursePirateBoots, CursedPirateRing, CursedPirateEarrings, and CursedPirateTricorneCommands... pcurse - admins can use this to curse a player with the pirate curseDetails 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.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 ); 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); To install, simply unrar the attached file into your customs directory. After you install, you can add "CursedPirates" using your spawner. Have Fun!!! Last edited by dracana; 02-14-2006 at 07:36 PM. Reason: Fixed issue with items lost when uncursed |
|
|
|
|
#2 (permalink) |
|
Forum Expert
|
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. ![]() |
|
|
|
|
#4 (permalink) | |
|
Forum Expert
|
Quote:
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 |
|
|
|
|
|
#11 (permalink) | |
|
Forum Newbie
Join Date: Oct 2004
Age: 32
Posts: 35
|
Quote:
![]() |
|
|
|
|
|
#12 (permalink) | |
|
Forum Expert
|
Quote:
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. |
|
|
|
|
|
#13 (permalink) |
|
Newbie
Join Date: Oct 2005
Age: 33
Posts: 18
|
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
![]() |
|
|
|
|
#14 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
#16 (permalink) |
|
Forum Expert
|
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. |
|
|
|
|
#17 (permalink) | |
|
Forum Expert
|
Quote:
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 |
|
|
|
|
|
#18 (permalink) |
|
Newbie
Join Date: Oct 2005
Age: 33
Posts: 18
|
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
![]() |
|
|
|
|
#19 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
#20 (permalink) |
|
Newbie
Join Date: Oct 2005
Age: 33
Posts: 18
|
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
![]() |
|
|
|
|
#21 (permalink) | |
|
Forum Expert
|
Quote:
*Goes to search RunUO scripts to see where pm Language prop is used and why it had that effect!* ![]() |
|
|
|
|
|
#22 (permalink) | |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
|
Fresh install, this is what I get:
Quote:
|
|
|
|
|
|
#23 (permalink) | |
|
Forum Expert
|
Quote:
The zip in the original post has been updated as well. |
|
|
|
|
|
#25 (permalink) |
|
Forum Expert
|
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). |
|
|