Author Topic: Autoloot -Auto loot splitting  (Read 476 times)

Legacy_Alphamojo

  • Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Autoloot -Auto loot splitting
« on: October 15, 2011, 03:37:53 pm »


               On my server we use auto looting when killing mobs, however some of my classes have advantages when it comes to killing critters, and kinda get a kings share of loot from critter killing.

Has anyone come up with a auto loot split that would work from on death...I've tried P.A.L.S however that didn't seem to work well. Of course it could've been from my limited scope of scripting.

Has anyone else tried auto-looting, and even moreso auto loot splitting?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Autoloot -Auto loot splitting
« Reply #1 on: October 15, 2011, 06:42:53 pm »


               Did your players in fact desired auto split? On my server which is similar to yours players do split loot themselves by putting everything on ground after they complete run and then they either use my new item which will print a order list or they will attack chest and then they compare their attack rolls. Then they take loot in that order.

I would not suggest using auto-split as you cant know what player wants. You can almost never give him what he desire by this way, neither HG uses auto-split.
               
               

               
            

Legacy_Alphamojo

  • Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Autoloot -Auto loot splitting
« Reply #2 on: October 15, 2011, 09:53:14 pm »


               Yeah, my server is a lazy game for lazy players =) we don't really want to do too much thinking ....it's more of a finders keepers kinda deal...they can always barter or give away. Its just they want to feel that they getting a fair share.

They love auto loot, but want it split so archers or mages aren't hogging the loot. I've seen loot split chest, i suppose that could be a happy medium. However something similar to what PALS was trying to create would be best suited.
               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
Autoloot -Auto loot splitting
« Reply #3 on: October 15, 2011, 10:15:16 pm »


               Splitting gold should be straight forward enough but make sure classes only get items that other classes can make use of. This way, you create dialog between players and a barter system through them, rather than giving items to classes that fit the bill.

FP!
               
               

               


                     Modifié par Fester Pot, 15 octobre 2011 - 09:39 .
                     
                  


            

Legacy_Rolo Kipp

  • Hero Member
  • *****
  • Posts: 4349
  • Karma: +0/-0
Autoloot -Auto loot splitting
« Reply #4 on: October 15, 2011, 10:32:01 pm »


               <eyes gleaming...>

Fester Pot wrote...
Splitting gold should be straight forward enough but make sure classes only get items that other classes can make use of. This way, you great dialog between players and a barter system through them, rather than giving items to classes that fit the bill.

Oh, how *tricky*! I like!

<...in appreciation>
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Autoloot -Auto loot splitting
« Reply #5 on: October 15, 2011, 10:47:05 pm »


               I myself really do not like the Idea of auto splitting items.   From a my player point of view, I do not want things being added to my inventory without me putting them there.   Even with the auto split of gold you may end up with the solo mage( a mage not in the party) tagging along behing the group and casting his spells to get unfair gains.    

I would suggest just leaving the auto split for the gold only.  If you really wanted to add items to it, Auto sell them off and split the gold.   You could always add the items sold to a vender in town to let the PC see what they sold.   Just have the vender sell the stuff back at a small proffit from what he bought it for.   If it is a populated server, lots of players,  you could even make the vender to where he will only offer to sell items back to players who where in the group that found them.
               
               

               
            

Legacy_Alphamojo

  • Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Autoloot -Auto loot splitting
« Reply #6 on: October 16, 2011, 01:23:50 pm »


               It's not a debate about the goods and bads of auto loot splitting, I'm asking if it can be done or has anyone a framework.

As far as the debate goes though, most all loot is randomly generated so players really can even decide whether or not it's an item they would need. Most items are sold anyway as the server plays more like diablo so there is ton of loot.

Anyway I guess it can't be done in a good sense of the word. I do thank you guys for your time, and responses.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Autoloot -Auto loot splitting
« Reply #7 on: October 16, 2011, 02:06:21 pm »


               No one said that i can not be done,  The main reason for the debate is that if anyone is going to write some code to do this, they have to know how to handle the items.  Without that knowlage they simply can not write the code.   The only example so far that you have given on how items are handled is a script someone else wrote.  You yourself have given absolutly no Clue on how you want them done.   I am assuming that if P.A.L.S  was already doing it the way you wanted there would be no reason for this post.

The real question/answer  is how do you want Items handled when they are part of the loot.   When you do not give a Clue as to how you want it handled, people will discuss it.
               
               

               
            

Legacy_Alphamojo

  • Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Autoloot -Auto loot splitting
« Reply #8 on: October 17, 2011, 01:32:48 am »


               I'm sorry thought I pointed that out in the first post, but I meant for the ondeath of mob which generates loot automatically using Commche's random loot generator, and gives to killer via this small script in the onDeath

if (GetLocalInt(oKiller, "active") == 1)
   {

       GiveGoldToCreature(oKiller, GetGold(OBJECT_SELF));
       object oItem = GetFirstItemInInventory();
       while (oItem != OBJECT_INVALID && GetDroppableFlag(oItem))
       {
           CopyObject(oItem, GetStartingLocation(), oKiller);
           SetPlotFlag(oItem, FALSE);
           DestroyObject(oItem);
           oItem = GetNextItemInInventory();
       }

       TakeGoldFromCreature(GetGold(OBJECT_SELF), OBJECT_SELF, TRUE);
   }

So I'm guessing I'm asking how would I get this to auto split, or if someone else is using auto-loot with an auto-split option.
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Autoloot -Auto loot splitting
« Reply #9 on: October 18, 2011, 07:24:29 am »


               You would just loop through GetLastKiller()'s party using:
object GetFirstFactionMember(object oMemberOfFaction, int bPCOnly=TRUE)
for any item spawned, and pick one of them at random to give it to. You'd likely wind up doing two loops; one to count the faction memebers, then another after you'd done a Random(x)+1 (where x is the number of party members) to decide which member to give it to.

Funky
               
               

               
            

Legacy_Alphamojo

  • Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Autoloot -Auto loot splitting
« Reply #10 on: October 19, 2011, 02:37:08 pm »


               Thanks for the input Funky.