Full Version : Not showing items/weight
xmlspawner >>XMLSpawner Feature Request's >>Not showing items/weight


<< Prev | Next >>

Datguy- 01-29-2008
If CanSeeReward is false to not show the weight or item count in the questholdergump. If your reward is random between, 5k gold / powerscroll / weapon / 100 ore The player can see by the weight/item count what they're getting & toss the books before they do the quest & get a new one till they get the weight target they want

ArteGordon- 01-30-2008
you can change the way that CanSeeReward blocks access to reward information by modding XmlQuestHolderGumps.cs around line 400.

For example, if you wanted to block displaying any information about the reward you could add a test here

QUOTE

                if (questitem.CanSeeReward && (questitem.RewardItem != null && !questitem.RewardItem.Deleted))
                {
                    m_questitem.CheckRewardItem();

                    if (questitem.RewardItem.Amount > 1)
                    {
                        AddLabel(230, 356, 55, String.Format("Reward: {0} ({1})", questitem.RewardItem.GetType().Name,
                            questitem.RewardItem.Amount));
                        AddLabel(230, 373, 55, String.Format("Weight: {0}", questitem.RewardItem.Weight * questitem.RewardItem.Amount));
                    }
                    else
                        if (questitem.RewardItem is Container)
                        {
                            AddLabel(230, 356, 55, String.Format("Reward: {0} ({1} items)", questitem.RewardItem.GetType().Name,
                                questitem.RewardItem.TotalItems));
                            AddLabel(230, 373, 55, String.Format("Weight: {0}", questitem.RewardItem.TotalWeight + questitem.RewardItem.Weight));
                        }
                        else
                        {
                            AddLabel(230, 356, 55, String.Format("Reward: {0}", questitem.RewardItem.GetType().Name));
                            AddLabel(230, 373, 55, String.Format("Weight: {0}", questitem.RewardItem.Weight));
                        }
                    AddImageTiled(330, 373, 81, 40, 200);
                    AddItem(340, 376, questitem.RewardItem.ItemID);

                }


I'll think about blocking display of weight/count information by default.

Azcopper- 09-23-2009
I made that change and it didn't even do anything.. lol I can still see the rewards -

Parnassus- 09-23-2009
This may be a silly question but here goes anyway.
Did you check using an admin type character or a player character (or admin set to player level)? I dunno if it matters in this case but I often find that admins see everything regardless of how it's set. A good example of this is an empty beehive.