|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Jun 2004
Age: 22
Posts: 173
|
Current Version 1.02
This script makes evrey monster in Tokuno have a chance of dropping a lesser tokuno artifact. This is, you must have a already spawned Tokuno map, and artifacts. Also theres a mob called Ihara Soko The Finance Minister of Tokuno, if you give him 10 lesser artifacts, you will get a artifact deed which will give you a greater artifact... I did it kinda fast and there prob bugs left, currently it doesn't have Greater Pigments in it! You have to do a PlayerMobile mod, so if you don't know much about Serialization/Deserialization I don't recommend using this! Here are some screenshots. ![]() ![]() ![]() ![]() ![]() Okay, the files you have to change. In BaseCreature.cs Search for: Code:
if ( m_Paragon ) if ( Paragon.CheckArtifactChance( ds.m_Mobile, this ) ) Paragon.GiveArtifactTo( ds.m_Mobile ); Code:
if ( this.Map == Map.Tokuno || ( this.Map != null && MalasDungeons( this.Location, this.Map ) ) ) if ( BaseTokunoMonster.CheckArtifactChance( ds.m_Mobile, this ) ) BaseTokunoMonster.GiveArtifactTo( ds.m_Mobile ); Code:
public static bool MalasDungeons( Point3D loc, Map map )
{
if ( map == Map.Malas )
{
if ( loc.X >= 0 && loc.Y >= 0 && loc.X <= 516 && loc.Y <= 2036 )
{
Region r = Region.Find( loc, map );
if ( !(r is MalasDungeon))
return true;
}
}
return false;
}
Search for Code:
private int m_Profession; Code:
// Tokuno
private int m_Artifacts;
[CommandProperty( AccessLevel.Administrator )]
public int Artifacts
{
get{ return m_Artifacts; }
set{ m_Artifacts = value; }
}
// Tokuno
Code:
case 18:
{
m_SolenFriendship = (SolenFriendship) reader.ReadEncodedInt();
goto case 17;
}
Code:
case 19:
{
m_Artifacts = reader.ReadInt();
goto case 18;
}
Code:
case 20:
{
m_Wins = reader.ReadInt();
m_Loses = reader.ReadInt();
goto case 19;
}
case 19:
{
m_TempMount = (BaseMount) reader.ReadMobile();
isinchal = reader.ReadBool();
canbechal = reader.ReadBool();
goto case 18;
}
case 18:
{
m_SolenFriendship = (SolenFriendship) reader.ReadEncodedInt();
goto case 17;
}
Code:
case 21:
{
m_Artifacts = reader.ReadInt();
goto case 20;
}
Code:
base.Serialize( writer ); writer.Write( (int) 18 ); // version Code:
base.Serialize( writer ); writer.Write( (int) 19 ); // version writer.Write( (int) m_Artifacts ); Code:
writer.Write( (int) X ); // version So for exmaple if it was 238, it now has to be 239 And add under it Code:
writer.Write( (int) m_Artifacts ); Put IharaSoko.cs , TokunoArtifactDeed.cs and Tokuno.cs in your custom folder. Start the server and now [add IharaSoko somewhere and give him cloth cuz i couldn't be arsed giving him cloth. Remember you have to get the Tokuno Artifacts yourself though. I recommend autumntwilight's Treasures Of Tokuno Phase 2 Artifact Set + Deed! which can be found here : My coder left and now i got problems... Remember, don't use the Artifact Deed from autumn! ( well you can use it too ) And the lesser treasures by sidsid Levers, help Furthermore I suggest using Nerun's Distro Char Appearance (osi style) Have fun ( btw I made this without any info about OSI, so it's not OSI correct. ) Update 1.01: It now also gives tokuno treasures for the dungeons in Malas, however it doesn't in Doom and Gauntlet. If you are updating from Version 1.0.0, go to BaseCreature.cs and look for Code:
if ( this.Map == Map.Tokuno ) if ( BaseTokunoMonster.CheckArtifactChance( ds.m_Mobile, this ) ) BaseTokunoMonster.GiveArtifactTo( ds.m_Mobile ); Code:
if ( this.Map == Map.Tokuno || ( this.Map != null && MalasDungeons( this.Location, this.Map ) ) ) if ( BaseTokunoMonster.CheckArtifactChance( ds.m_Mobile, this ) ) BaseTokunoMonster.GiveArtifactTo( ds.m_Mobile ); Code:
public static bool MalasDungeons( Point3D loc, Map map )
{
if ( map == Map.Malas )
{
if ( loc.X >= 0 && loc.Y >= 0 && loc.X <= 516 && loc.Y <= 2036 )
{
Region r = Region.Find( loc, map );
if ( !(r is MalasDungeon))
return true;
}
}
return false;
}
Update 1.01.5: added some pictures Update 1.02: serialization update
__________________
Treasures of Tokuno 1.1 Last edited by Zero_X; 06-07-2006 at 05:56 AM. |
|
|
|
|
#3 (permalink) |
|
Join Date: Jun 2004
Age: 22
Posts: 173
|
Yes, uhm, but Malas seems to have alot of places that doesn't seem to be a part of Samurai Empire or Malas... If someone could tell me what locations exactly are, I could fix it
__________________
Treasures of Tokuno 1.1 |
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 37
Posts: 3,509
|
Thank you. Looks like a wonderful addition. I am looking forward to the Malas update ++Karma
![]()
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment. Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse." My Customs:
|
|
|
|
|
#6 (permalink) |
|
Join Date: Jun 2004
Age: 22
Posts: 173
|
So anyway, I just made the whole landscape of Malas (the dungeon areas ) into a tokuno arty drop zone, besides Doom and Gauntlet... and what do you mean with karma? o0
__________________
Treasures of Tokuno 1.1 |
|
|
|
|
#7 (permalink) | |
|
Forum Newbie
Join Date: Nov 2003
Age: 33
Posts: 66
|
Quote:
|
|
|
|
|
|
#8 (permalink) |
|
Join Date: Jun 2004
Age: 22
Posts: 173
|
Aye, indeed, I did it too fast :P
Thanks for telling, fixed in the original post
__________________
Treasures of Tokuno 1.1 |
|
|
|
|
#9 (permalink) |
|
Account Terminated
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
|
Ihara soko is the minister of trade on OSI. I could probably redo your gump to look like the OSI one too when I get time other than that about all you need are the greater pigments I have a version you can look at that work like the oSi pigments but you would need to modify them a little to work with your system.
|
|
|
|
|
#10 (permalink) |
|
Forum Newbie
Join Date: Jan 2004
Posts: 55
|
Hmm the drop rate seems to high... i took my tamer out and killed onis and lesser hiryus for about 3 hour... had myself 4 lesser artis... i havent played Tokuno on OSI but it seems to hight?
i can lower it myself but if it is OSI accurate now i will keep it.. so anyone knows? |
|
|
|
|
#13 (permalink) |
|
Join Date: Jun 2004
Age: 22
Posts: 173
|
if you wanne change it, you can also change the fame of your monsters... your hiryus and onis might not have alot of fame...
__________________
Treasures of Tokuno 1.1 |
|
|
|
|
#14 (permalink) |
|
Join Date: Jun 2004
Posts: 132
|
The chance for this isn't based as on OSI - OSI is a cumulative fame - IE you gain 5000 fame and get a minor treasure. The harder the monsters are the more you will get.
This system is using the paragon chance formula wich uses fame and the players luck. Code:
double chance = 1 / ( Math.Max( 10, 100 * ( 0.83 - Math.Round( Math.Log( Math.Round( fame / 6000, 3 ) + 0.001, 10 ), 3 ) ) ) * ( 100 - Math.Sqrt( m.Luck ) ) / 100.0 ); Code:
( 100 - Math.Sqrt( m.Luck ) ) / 100.0 ) Code:
( 100 - Math.Sqrt( m.Luck ) ) / 1000.0 ) |
|
|
|
|
#16 (permalink) |
|
Forum Novice
|
I just put this system in and it was working great but each time I restart I lose my chars can someone please help me.If there is someone out there that will help me please let me know you can write to me at turleysnake@yahoo.com and I will send you the file becasue it could not fit on here for some reason.Please help!
|
|
|
|
|
#17 (permalink) |
|
Join Date: Dec 2005
Posts: 6
|
I put this in but it keeps deleteing my chars maybe someone could look at what I changed and point me in right direction
switch ( version ) { case 20: { m_Artifacts = reader.ReadInt(); goto case 19; } case 19: { m_City = (CityManagementStone)reader.ReadItem(); m_CityTitle = reader.ReadString(); m_ShowCityTitle = reader.ReadBool(); m_OwesBackTaxes = reader.ReadBool(); m_BackTaxesAmount = reader.ReadInt(); goto case 18; } case 18: { m_SolenFriendship = (SolenFriendship) reader.ReadEncodedInt(); goto case 17; } case 17: // changed how DoneQuests is serialized case 16: { OK that was the first part and this is the other base.Serialize( writer ); writer.Write( (int) 20 ); // version writer.Write( (int) m_Artifacts ); writer.Write( m_City ); writer.Write( m_CityTitle ); writer.Write( m_ShowCityTitle ); writer.Write( m_OwesBackTaxes ); writer.Write( m_BackTaxesAmount ); writer.WriteEncodedInt( (int) m_SolenFriendship ); QuestSerializer.Serialize( m_Quest, writer ); Thanks for any help with this |
|
|
|
|
#18 (permalink) |
|
Join Date: Jun 2004
Age: 22
Posts: 173
|
If you can post your old files and new files i can help you.
And does it want to delete it during first time you load or after you save and load again?
__________________
Treasures of Tokuno 1.1 |
|
|
|
|
#19 (permalink) |
|
Forum Novice
Join Date: Jun 2005
Age: 30
Posts: 111
|
Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (8 errors, 0 warnings)
- Error: Scripts\Engines\AI\Creature\BaseCreature.cs: CS1513: (line 4810, colum
n 57) } expected
- Error: Scripts\Engines\AI\Creature\BaseCreature.cs: CS1519: (line 4827, colum
n 7) Invalid token 'if' in class, struct, or interface member declaration
- Error: Scripts\Engines\AI\Creature\BaseCreature.cs: CS1519: (line 4827, colum
n 30) Invalid token ')' in class, struct, or interface member declaration
- Error: Scripts\Engines\AI\Creature\BaseCreature.cs: CS1519: (line 4829, colum
n 25) Invalid token '=' in class, struct, or interface member declaration
- Error: Scripts\Engines\AI\Creature\BaseCreature.cs: CS1519: (line 4830, colum
n 27) Invalid token '(' in class, struct, or interface member declaration
- Error: Scripts\Engines\AI\Creature\BaseCreature.cs: CS1519: (line 4830, colum
n 47) Invalid token ')' in class, struct, or interface member declaration
- Error: Scripts\Engines\AI\Creature\BaseCreature.cs: CS0116: (line 4833, colum
n 7) A namespace does not directly contain members such as fields or methods
- Error: Scripts\Engines\AI\Creature\BaseCreature.cs: CS1022: (line 4849, colum
n 5) Type or namespace definition, or end-of-file expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
|
|
|
|
|
#20 (permalink) |
|
Forum Novice
Join Date: Jun 2005
Age: 30
Posts: 111
|
Code:
Line 4808: if ( this.Map == Map.Tokuno )
if ( BaseTokunoMonster.CheckArtifactChance( ds.m_Mobile, this ) )
BaseTokunoMonster.GiveArtifactTo( ds.m_Mobile );
public static bool MalasDungeons( Point3D loc, Map map )
{
if ( map == Map.Malas )
{
if ( loc.X >= 0 && loc.Y >= 0 && loc.X <= 516 && loc.Y <= 2036 )
{
Region r = Region.Find( loc, map );
if ( !(r is MalasDungeon))
return true;
}
}
return false;
}
if ( !givenFactionKill )
{
givenFactionKill = true;
Faction.HandleDeath( this, ds.m_Mobile );
}
if ( givenQuestKill )
continue;
PlayerMobile pm = ds.m_Mobile as PlayerMobile;
if ( pm != null )
{
QuestSystem qs = pm.Quest;
if ( qs != null )
{
qs.OnKill( this, c );
givenQuestKill = true;
}
}
}
}
base.OnDeath( c );
if ( DeleteCorpseOnDeath )
c.Delete();
}
}
|
|
|
|
|
#21 (permalink) |
|
Forum Novice
|
This made no sense
Code:
UNDER it add
Code:
if ( this.Map == Map.Tokuno || ( this.Map != null && MalasDungeons( this.Location, this.Map ) ) )
if ( BaseTokunoMonster.CheckArtifactChance( ds.m_Mobile, this ) )
BaseTokunoMonster.GiveArtifactTo( ds.m_Mobile );
Look for
UNDER it add
Code:
public static bool MalasDungeons( Point3D loc, Map map )
{
if ( map == Map.Malas )
{
if ( loc.X >= 0 && loc.Y >= 0 && loc.X <= 516 && loc.Y <= 2036 )
{
Region r = Region.Find( loc, map );
if ( !(r is MalasDungeon))
return true;
}
}
return false;
}
|
|
|
|
|
#24 (permalink) |
|
Join Date: Feb 2006
Posts: 4
|
under what?
UNDER it add Code: public static bool MalasDungeons( Point3D loc, Map map ) { if ( map == Map.Malas ) { if ( loc.X >= 0 && loc.Y >= 0 && loc.X <= 516 && loc.Y <= 2036 ) { Region r = Region.Find( loc, map ); if ( !(r is MalasDungeon)) return true; } } return false; } |
|
|
|
|
#25 (permalink) |
|
Join Date: Feb 2006
Posts: 4
|
please help me i don't understand under what i add this
:UNDER it add Code: public static bool MalasDungeons( Point3D loc, Map map ) { if ( map == Map.Malas ) { if ( loc.X >= 0 && loc.Y >= 0 && loc.X <= 516 && loc.Y <= 2036 ) { Region r = Region.Find( loc, map ); if ( !(r is MalasDungeon)) return true; } } return false; } help me please!!!!!!!!!!!!!!! |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|