Artifact drop

Yvan Major

Well-Known Member
Nov 13, 2015
199
9
Hi what should i change in those lines to get ToT to drop on all facet ?

Anyone able to help please !

Code:
        private static bool CheckLocation(Mobile m)
        {
            Region r = m.Region;

            if (r.IsPartOf(typeof(Server.Regions.HouseRegion)) || Server.Multis.BaseBoat.FindBoatAt(m, m.Map) != null)
                return false;
            //TODO: a CanReach of something check as opposed to above?
           if (r.IsPartOf( "Yomotsu Mines" ) || r.IsPartOf( "Fan Dancer Dojo" ))
                return true;

            return (m.Map == Map.Trammel);
        }
 

PyrO

Well-Known Member
Jan 27, 2015
1,074
76
Just a guess but setting it to true unless you are in a house or on a boat should do what you seek

Code:
        private static bool CheckLocation(Mobile m)
        {
            Region r = m.Region;

            if (r.IsPartOf(typeof(Server.Regions.HouseRegion)) || Server.Multis.BaseBoat.FindBoatAt(m, m.Map) != null)
                return false;
            //TODO: a CanReach of something check as opposed to above?
           /*if (r.IsPartOf( "Yomotsu Mines" ) || r.IsPartOf( "Fan Dancer Dojo" ))
                return true;

            return (m.Map == Map.Trammel);*/
            return true;
        }
 

Yvan Major

Well-Known Member
Nov 13, 2015
199
9
Just a guess but setting it to true unless you are in a house or on a boat should do what you seek

Code:
        private static bool CheckLocation(Mobile m)
        {
            Region r = m.Region;

            if (r.IsPartOf(typeof(Server.Regions.HouseRegion)) || Server.Multis.BaseBoat.FindBoatAt(m, m.Map) != null)
                return false;
            //TODO: a CanReach of something check as opposed to above?
           /*if (r.IsPartOf( "Yomotsu Mines" ) || r.IsPartOf( "Fan Dancer Dojo" ))
                return true;

            return (m.Map == Map.Trammel);*/
            return true;
        }
Yes but that will let the arty drop only in trammel
Code:
(m.Map == Map.Trammel)
But i want them to drop on all facets :)
 

PyrO

Well-Known Member
Jan 27, 2015
1,074
76
Thats why you shouldnt check if it is trammel.
Example:

Map is trammel
m.Map == Map.Trammel would return true
m.Map == Map.Tokuno would return false

So with that check you only allow one facet, if you simply return true at the end like in the code I changed for you it should drop everywhere
 

Norman Lancaster

Well-Known Member
Dec 22, 2015
1,049
104
35
Note that the check for HousingRegion will exclude Felucca, Trammel, and Malas outside of dungeons. Remove that bit if you want to be able to get the ToT artifacts in those places. You'll probably want to replace it with Server.Multis.BaseHouse.FindHouseAt(m) to make sure the character isn't inside of a house.
 

PyrO

Well-Known Member
Jan 27, 2015
1,074
76
Are you sure Norman? Looking at the houseregions and from the sound of it it rather sounds like the region the house takes aka the area where you can lockdown, ... , and people not being able to enter if it is a private house.
 

grom09

New Member
Feb 12, 2019
2
0
30
sorry to dig this one from its grave, but i'm having no luck getting tokuno artifacts from trammel with the script above. i was respawning hiryus for like 2 hours. i got nothing, i checked [totadmin and i enabled totone on drop and reward.
played with the script a little bit but still no drop. I'm not sure what the exact percentage is on this but must be very low? any solutions thanks! :)