|
||
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
OK THIS IS NOT MY SCRIPT AND I'VE CHECKED MORE THAN ONCE AND ITS NOT POSTED....AGAIN I DIDN'T MAKE THIS!!! ACTUALLY DARKRAGE DID!!
This is the Original Post (that's closed and the d/l link is broken) http://www.runuo.com/forum/showthrea...tealable+rares I so DO NOT want to support this so please refer to the previous link This zip does include the fix to make respawn not delete stolen items... ALTHOUGH YOU NEED TO EDIT WHATEVER SPAWNER YOU USE LIKE SO (BTW THIS IS ARTEGORDON'S FIX) ....and also change the Stealing.cs in spawner.cs or xmlspawner.cs, in the defrag() method change Code:
if ( item.Deleted || item.Parent != null ) Code:
if ( item.Deleted || item.Parent != null || item.GetSavedFlag(0x00100000)) but if you have them then to make them stealable (or any item) simply add ,IRARE to the public class like so: public class BladeOfTheRighteous : Longsword, IRare and add Weight = 10.0; <----for how hard it is to steal Movable = false; <----so people cant pick it up and walk away with it Im simply resubmitting it as its a very nice system and it works and the communtity deserves it again: I DID NOT MAKE THIS I SIMPLY ADDED THE FIX AND REPOSTED AS THE ORIGINAL LINK IS DEAD... *prays he's been clear enuff*
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
#3 (permalink) | |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Quote:
and I am using 1.0 and it works great
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
|
#5 (permalink) | |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Quote:
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
|
#6 (permalink) | |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Quote:
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
|
#7 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
it only needs to be in the spawner for the rares. The reason for the change is to allow that spawner to take the rares that it is spawning off of its spawn list during its defrag pass when the item has been stolen and the flag (assuming you made the change to stealing.cs) has been set which lets the spawner know that. If you dont make the change then it is likely that eventually rares will stop spawning because people will steal them, take them home, and lock them down on the ground which will trick normal spawners into thinking that they still control them so they dont need to spawn any more.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#9 (permalink) | |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Quote:
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
|
#11 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
I actually found a bug...surprised it hasnt surfaced before now
Items stolen and locked down can be restolen
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
#13 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
around line 70, change Code:
else if ( toSteal.Parent == null || !toSteal.Movable || toSteal.LootType == LootType.Newbied || toSteal.CheckBlessed( root ) )
{
m_Thief.SendLocalizedMessage( 502710 ); // You can't steal that!
}
Code:
//ARTEGORDONMOD
// allow stealing of rares on the ground or in containers, but prevent re-stealing if later locked down
else if ( ((toSteal.Parent == null || !toSteal.Movable) && ( !(toSteal is IRare) || toSteal.GetSavedFlag(0x00100000)) ) || toSteal.LootType == LootType.Newbied || toSteal.CheckBlessed( root ) )
{
m_Thief.SendLocalizedMessage( 502710 ); // You can't steal that!
}
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#14 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
around line 135 Code:
if ( stolen != null )
{
//ARTEGORDONMOD
// flag the item as stolen for spawners and anyone else that needs to know. Also, release them if they were locked down (e.g. rares)
stolen.SetSavedFlag(0x00100000, true);
stolen.Movable = true;
m_Thief.SendLocalizedMessage( 502724 ); // You succesfully steal the item.
}
else
m_Thief.SendLocalizedMessage( 502723 ); // You fail to steal the item.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#16 (permalink) | |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Quote:
Thanks for the quick fix
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
|
#17 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Arte...
Remember when you said to put item.SetSavedFlag(0x00100000,true); in your container.cs in the ondragdrop method (from the old thread)? well we shouldnt do that now right? as that will make any item dropped in any container unstealable (ie backpacks)...with your new fix.
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
#18 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
Setting the flag in container.cs protects non-stolen rares that are dragged into a container but still would be subject to the same problem with spawners not taking them off of their list. (edit) basically with the mods to stealing.cs, container.cs and the spawner scripts, the IRare interface serves two functions. One is to allow locked down items to be stolen (once). Second is to keep items that are on a long spawn cycle from confusing spawners. So any item that was going to be placed on a long "rare-like" spawn cycle could be defined with the IRare interface and it would be protected without affecting its stealability.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#20 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#21 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Code:
from.SendSound( GetDroppedSound( item ), GetWorldLocation() ); item.SetSavedFlag(0x00100000,true); return true;
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#24 (permalink) | |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Quote:
But be my guest waiting for another version to surface (hence the reason I reposted)
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|