Amalek

Member
I have a problem with problem with Master Looter Backpack. when you collect the body of the mob, not receiving the token ... if pointing the cursor problem with Master Looter Backpack appears written TOKEN INACTIVE .. anyone know where I have to change the script? Thanks in advance for your answers
 
wasnt there a command like [owltr ? with the big menu? I am sure you turned it on there
 
this is in the readme of Our masterlooter hope this helps
Q: I'm using your token system but whatever I do the tokens are disabled, what should I do?
A: Open all the "*.cs" files that came with this system and make sure all of them have the following line at the top (uncommented): "#define USE_TOKENS".

Q: I don't use your token system OR I get "The type or namespace name 'Daat99Tokens' could not be found" error, what should I do?
A: Open the files that cause this error and make sure the line at the top "#define USE_TOKENS" is commented out like this "//#define USE_TOKENS"
 
I have already read these things ... but nothing of the instructions i * .cs are already with "USE_TOKENS #define .. and pre what I'm asking .. I do not know how to activate them ... and it is a disappointment to have such a beautiful project , and use it only in half ....
[doublepost=1485905971][/doublepost]sorry for the English I understood ... blame google translator
 
look for MasterLooterTokenDeed in the add menu the I have uses these deeds to activate the tokens Il have to dig into it tomoro after work and see what We did to make it automatic
 
We have the whole system Daat99's ... in deed it look ok. I put this script.
-------------------------------------------------------------------------------------------------------------

using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Menus;
using Server.Menus.Questions;
using Server.Mobiles;
using System.Collections;

namespace Daat99MasterLooterSystem
{
public class MasterLooterTokenLedgerDeed : Item
{
[Constructable]
public MasterLooterTokenLedgerDeed() : base( 0x14F0 )
{
Weight = 1.0;
Movable = true;
Name="Master Looter Token Ledger deed";
}

public MasterLooterTokenLedgerDeed( Serial serial ) : base( serial ) { }

public override void OnDoubleClick( Mobile from )
{
if ( !IsChildOf( from.Backpack ) )
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
else
{
MasterLooterBackpack backpack = Daat99MasterLootersUtils.GetMasterLooter(from as PlayerMobile);
if ( backpack == null )
from.SendMessage("You must have your Master Looter in your backpack!");
else if ( backpack.TokenLedger )
from.SendMessage("You already have token ledger enabled on your master looter backpack.");
else if ( !this.Deleted && !backpack.Deleted )
{
backpack.TokenLedger = true;
this.Delete();
from.SendMessage("You enabled the token ledger on your master looter backpack.");
}
}
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

writer.Write( (int) 0 );
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
[doublepost=1485947856][/doublepost]the props in the game will not let me change anything .. if I put it in the section TOKENLEDGER true, does not change and is always false
 
Last edited:
Ok, in MasterLooterUtils.cs, at the top, do you have them enabled?
Code:
#define RunUO2_2
//#define USE_TOKENS
should look like
Code:
#define RunUO2_2
#define USE_TOKENS

You need to make sure its also enabled in the MasterLooterBackpack.cs as well
 
I had not seen at the top .. now I feel I have fixed the script and tell whether to be settled
[doublepost=1485952282][/doublepost]thank you good man has solved my problem .... it works perfectly.
 
PackItem(new MasterLooterBackpack()); ///clip from mine
PackItem(new Trash4TokensBackpack()); //clip from mine

check Your spelling on MasterLooterBackpack //is case sensitive check for caps were its not needed
 
RESOLVED

now I get this

Errors:
+ Misc/CharacterCreation.cs:
CS1514: Line 9: { expected
Scripts: One or more scripts failed to compile or no script files were found.


top of script of cc

using System;
using Server.Accounting;
using Server.Engines.XmlSpawner2;
using Server.Items;
using Server.Mobiles;
using Server.Network;


namespace Server.Misc;using daat99;
{
public class CharacterCreation
{
private static readonly CityInfo m_NewHavenInfo = new CityInfo("New Haven", "The Bountiful Harvest Inn", 3503, 2574, 14, Map.Trammel);
private static readonly CityInfo m_SiegeInfo = new CityInfo("Britain", "The Wayfarer's Inn", 1075074, 1602, 1591, 20, Map.Felucca);

private static Mobile m_Mobile;
public static void Initialize()
{
// Register our event handler
EventSink.CharacterCreated += new CharacterCreatedEventHandler(EventSink_CharacterCreated);
}

public static bool VerifyProfession(int profession)
{
if (profession < 0)
return false;
else if (profession < 4)
return true;
else if (Core.AOS && profession < 6)
return true;
else if (Core.SE && profession < 8)
return true;
else
return false;
}

private static void AddBackpack(Mobile m)
{
Container pack = m.Backpack;

if (pack == null)
{
pack = new BackpackOfReduction();
pack.Movable = false;

m.AddItem(pack);
}

PackItem(new RedBook("a book", m.Name, 20, true));
PackItem(new Gold(10000)); // Starting gold can be customized here
PackItem(new Candle()); PackItem(new BankHive()); PackItem(new BlessBag()); PackItem(new Trash4TokensBackpack()); PackItem(new MasterLooterBackpack());
 
Last edited:
post the lines please

8 using Daat99MasterLooterSystem;
9 namespace Server.Misc
10 {
11 public class CharacterCreation

do they look like this ??
 
using System;
using Server.Accounting;
using Server.Engines.XmlSpawner2;
using Server.Items;
using Server.Mobiles;
using Server.Network; using Daat99MasterLooterSystem;


namespace Server.Misc;
{
public class CharacterCreation
{
 
this is top of My char create

using System;
using Server.Accounting;
using Server.Engines.XmlSpawner2;
using Server.Items;
using Server.Mobiles;
using Server.Network;
using Server.XMLConfiguration; ///// not sure how your xml are set up so not sure on this clip
using Daat99MasterLooterSystem;
namespace Server.Misc
{
public class CharacterCreation
{
 
my cc script
using System;
using Server.Accounting;

using Server.Engines.XmlSpawner2;
using Server.Items;
using Server.Mobiles;
using Server.Network;
using Daat99MasterLooterSystem


namespace Server.Misc
{

public class CharacterCreation

{
private static readonly CityInfo m_NewHavenInfo = new CityInfo("New Haven", "The Bountiful Harvest Inn", 3503, 2574, 14, Map.Trammel);
private static

Mobile m_Mobile;
public static void Initialize()
{
// Register our event handler
EventSink.CharacterCreated += new CharacterCreatedEventHandler(EventSink_CharacterCreated);
}

public static bool VerifyProfession(int profession)
{
if (profession < 0)
return false;
else if (profession < 4)
return true;
else if (Core.AOS && profession < 6)
return true;
else if (Core.SE && profession < 8)
return true;
else
return false;
}

private static void AddBackpack(Mobile m)
{
Container pack = m.Backpack;

if (pack == null)
{
pack = new BackpackOfReduction();
pack.Movable = false;

m.AddItem(pack);
}

PackItem(new RedBook("a book", m.Name, 20, true));
PackItem(new Gold(10000)); // Starting gold can be customized here
PackItem(new Candle()); PackItem(new BankHive()); PackItem(new BlessBag()); PackItem(new Trash4TokensBackpack()); PackItem(new MasterLooterBackpack());


my new error

Errors:
+ Misc/CharacterCreation.cs:
CS1002: Line 8: ; expected
Scripts: One or more scripts failed to compile or no script files were found.
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back