Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

Not showing items/weight
Datguy
Posted: January 30, 2008 12:04 am
Quote Post


Member
**

Group: Members
Posts: 27
Member No.: 480
Joined: August 21, 2007



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
PMEmail Poster
Top
ArteGordon
Posted: January 30, 2008 12:28 pm
Quote Post


God of XMLSpawner
*****

Group: Admin
Posts: 2,899
Member No.: 2
Joined: December 26, 2005



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.


--------------------
user posted image
PM
Top
Azcopper
Posted: September 23, 2009 01:53 pm
Quote Post


Newbie
*

Group: Members
Posts: 3
Member No.: 782
Joined: September 04, 2009



I made that change and it didn't even do anything.. lol I can still see the rewards -
PMEmail Poster
Top
Parnassus
Posted: September 24, 2009 03:19 am
Quote Post


Newbie
*

Group: Members
Posts: 2
Member No.: 787
Joined: September 12, 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.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll