Jump to content

Need help with loot last kill


Mountain_Wolf

Recommended Posts

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

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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