1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Artifact drop

Discussion in 'Script Support' started by Yvan Major, Feb 15, 2016.

  1. Yvan Major
    Offline

    Yvan Major Member

    Joined:
    Nov 13, 2015
    Messages:
    199
    Likes Received:
    9
    Hi what should i change in those lines to get ToT to drop on all facet ?

    Anyone able to help please !

    Code (C#):
    1.         private static bool CheckLocation(Mobile m)
    2.         {
    3.             Region r = m.Region;
    4.  
    5.             if (r.IsPartOf(typeof(Server.Regions.HouseRegion)) || Server.Multis.BaseBoat.FindBoatAt(m, m.Map) != null)
    6.                 return false;
    7.             //TODO: a CanReach of something check as opposed to above?
    8.            if (r.IsPartOf( "Yomotsu Mines" ) || r.IsPartOf( "Fan Dancer Dojo" ))
    9.                 return true;
    10.  
    11.             return (m.Map == Map.Trammel);
    12.         }
     
  2. PyrO
    Online

    PyrO Well-Known Member

    Joined:
    Jan 27, 2015
    Messages:
    1,023
    Likes Received:
    53
    Just a guess but setting it to true unless you are in a house or on a boat should do what you seek

    Code (C#):
    1.         private static bool CheckLocation(Mobile m)
    2.         {
    3.             Region r = m.Region;
    4.  
    5.             if (r.IsPartOf(typeof(Server.Regions.HouseRegion)) || Server.Multis.BaseBoat.FindBoatAt(m, m.Map) != null)
    6.                 return false;
    7.             //TODO: a CanReach of something check as opposed to above?
    8.            /*if (r.IsPartOf( "Yomotsu Mines" ) || r.IsPartOf( "Fan Dancer Dojo" ))
    9.                 return true;
    10.  
    11.             return (m.Map == Map.Trammel);*/
    12.             return true;
    13.         }
     
  3. Yvan Major
    Offline

    Yvan Major Member

    Joined:
    Nov 13, 2015
    Messages:
    199
    Likes Received:
    9
    Yes but that will let the arty drop only in trammel
    Code (C#):
    1. (m.Map == Map.Trammel)
    But i want them to drop on all facets :)
     
  4. PyrO
    Online

    PyrO Well-Known Member

    Joined:
    Jan 27, 2015
    Messages:
    1,023
    Likes Received:
    53
    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
     
  5. Yvan Major
    Offline

    Yvan Major Member

    Joined:
    Nov 13, 2015
    Messages:
    199
    Likes Received:
    9
    My bad, thanks missed that line you added :D
     
  6. Norman Lancaster
    Offline

    Norman Lancaster Well-Known Member

    Joined:
    Dec 22, 2015
    Messages:
    1,049
    Likes Received:
    104
    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.
     
  7. PyrO
    Online

    PyrO Well-Known Member

    Joined:
    Jan 27, 2015
    Messages:
    1,023
    Likes Received:
    53
    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.
     
    • Agree Agree x 1
  8. Norman Lancaster
    Offline

    Norman Lancaster Well-Known Member

    Joined:
    Dec 22, 2015
    Messages:
    1,049
    Likes Received:
    104
    Nope, not sure at all. Good analysis.
     
  9. grom09
    Offline

    grom09 New Member

    Joined:
    Feb 12, 2019
    Messages:
    2
    Likes Received:
    0
    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! :)
     
Similar Threads: Artifact drop
Forum Title Date
Script Support Global Artifact Drops Dec 3, 2018
Archived Bug Reports SA artifact drop issues - Unused method in BaseCreature Jan 14, 2018
General Discussion Champion Artifact Drops, anyone? Aug 13, 2017
Archived Bug Reports Mondains Legacy Artifact drops [Marties] Jul 30, 2017
ServUO Discussion Item.Name=null (can't log artifact drop). Mar 24, 2017
Archived Bug Reports Gauntlet - plays sound every time for artifact drop Dec 24, 2016
Archived Bug Reports Champion Spawn Artifacts drop bug. Sep 14, 2016