I can't reproduce this.Also noticed a graphical glitch on page 3 of a default loot backpack. Double arrow at the bottom of the gump.
Is it happening all the time?
I can't reproduce this.Also noticed a graphical glitch on page 3 of a default loot backpack. Double arrow at the bottom of the gump.
PackItem(new looter());
Sounds like a bug in the client to meThanks for the complete explanation of the code lines. I see my error in my code attempts, as I was adding it as new looter instead of just looter.
Code:PackItem(new looter());
The graphic glitch is intermittent. Sometime on new player creation, when the backpack is first set up, it is there. Other times it is not. Closing and reopening the backpack does not clear it. Logging out and back in does seem to clear it. We can advise players to try that if/when they run into it. (both buttons seem to work, btw, lol)
Errors:
+ Customs/MasterLooter v1.03/MasterLooterGumps.cs:
CS1061: Line 119: 'Daat99MasterLooterSystem.MasterLooterBackpack' does not c
ontain a definition for 'ActiveListName' and no extension method 'ActiveListName
' accepting a first argument of type 'Daat99MasterLooterSystem.MasterLooterBackp
ack' could be found (are you missing a using directive or an assembly reference?
)
CS1061: Line 168: 'Daat99MasterLooterSystem.MasterLooterBackpack' does not c
ontain a definition for 'RestoreDefaultList' and no extension method 'RestoreDef
aultList' accepting a first argument of type 'Daat99MasterLooterSystem.MasterLoo
terBackpack' could be found (are you missing a using directive or an assembly re
ference?)
CS1061: Line 172: 'Daat99MasterLooterSystem.MasterLooterBackpack' does not c
ontain a definition for 'SwitchActiveList' and no extension method 'SwitchActive
List' accepting a first argument of type 'Daat99MasterLooterSystem.MasterLooterB
ackpack' could be found (are you missing a using directive or an assembly refere
FAQ said:Q: I want to give tokens to players directrly into their ledger from another file, what should I do?
A: You need to add the following line where you want it (player is the PlayerMobile, amount is an int): "Daat99MasterLooterSystem.Daat99MasterLootersUtils.GivePlayerTokens(player, amount);"
public static void RewardTokens(Mobile m, int amount)
{
if (amount < 1)
return;
//add for master loot bag = add tokens on monster kills if loot bag present
if (Daat99MasterLooterSystem.Daat99MasterLootersUtils.GivePlayerTokens(m as PlayerMobile, amount))
return;
//end add for master loot bag
Item[] items = m.Backpack.FindItemsByType( typeof( TokenLedger ) );
foreach( TokenLedger tl in items )
{
if (tl.Owner == m.Serial && tl.Tokens <= 2000000000)
{
tl.Tokens = (tl.Tokens + amount); //give the tokens
m.SendMessage(1173, "You recieved {0} tokens.",amount); //send a message to the player that he got tokens
break;
}
}
}
}
Um, daat, on my server we have your looter, but we wanted to use it as a ledger too. but we have the problem of the token vendor stone not working with the looter backpack. i'd rather not have token ledgers as well as looters, but i like the loot system. How would i fix this problem?