Jump to content

Need help with loot last kill


Recommended Posts

Posted

Here is some pseudo logic

boolean shouldLoot

 

if shouldLoot
   // loot logic

else if interacting npc not null

   if interacting npc healthpercent == 0
      loot position = npc position

      shouldLoot= true;

   else
       //currently fighting
else

    // fight new target

Posted

Create a loot area.

Use these checks to turn on a boolean like in the example Chris wrote above:

if item exists over X gp in area (Turn boolean on)

if item does not exist over X gp in area or if player isnt in are (turn boolean off)

when the boolean for "should loot" checks true, use the following action

loot all items above x gp in area 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...