Author Topic: Playing with event property but not sending.....  (Read 3948 times)

0 Members and 1 Guest are viewing this topic.

Offline decloTopic starter

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +16
  • Referrals: 1
    • View Profile
Playing with event property but not sending.....
« on: May 27, 2016, 11:26:49 AM »
0
My attempt at a script to find all Minax arties items in backpack and sent them to the bank...

Code: [Select]
start:
finditem * c_ , #backpackid
if #FINDKIND <> -1
  {
   event Property #findID
   if minax in #property
   {
    set %minaxitem #findid
    gosub dropGoods
    }
  ignoreitem #findid
  }
goto start



 ;=====================================
;          Drop Goods
;=====================================
sub dropGoods
   finditem CKF  c_ , #backpackid
   topBag:
     event property #findid
     if #spc , 0 IN #property
       {
        SET #ltargetid #findid
        SET #ltargetkind 1
        finditem EUO c_ , #backpackid
        if #findid = X
           halt
        SET #lobjectid #findid
        event macro 17 0
        target 3s
        event macro 22 0
        wait 1s
        goto topBag
       }
   SET %bag #findid
   finditem %minaxitem , #backpackid
   SET #ltargetid #findid
   SET #lobjectid %bag
   SET %sendThis #findid
   SET #ltargetkind 1
   event macro 17 0
   target 3s
   event macro 22 0
   wait 1s
return


Any help on what I am missing?

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Playing with event property but not sending.....
« Reply #1 on: May 27, 2016, 11:51:28 AM »
0
Did Ketchup ask the same question 10 month ago?     I'm sure we have a few answer on this question. Lydann also help.



Any how  give this a try
Code: [Select]
finditem * c_ , #backpackid
For #Findindex 1 #Findcnt
  {
  ;  wait 20 ;   <--- this is so #property updates, may need to raise it, I wouldn't go lower than 10
   event Property #findID
   if minax in #property
   {
    set %minaxitem #findid
    gosub dropGoods
    }
  ignoreitem #findid
  }
goto start
« Last Edit: May 27, 2016, 12:50:05 PM by The Ghost »

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +123
  • Referrals: 1
    • View Profile
Re: Playing with event property but not sending.....
« Reply #2 on: May 29, 2016, 02:19:31 PM »
0
I would just go by #Findcol instead of the property. Much quicker.
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline decloTopic starter

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +16
  • Referrals: 1
    • View Profile
Re: Playing with event property but not sending.....
« Reply #3 on: May 30, 2016, 07:33:08 AM »
0
Thank you!!!!

The timing tweak worked but for some reason it is not sending via the bag of sending.

The findcol is an option that I am starting to explore and learn about.

If I find an item with a specific color, is there a way to the value of the items #lobjecttype into a value like %iditem?

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Playing with event property but not sending.....
« Reply #4 on: May 30, 2016, 01:59:17 PM »
0
In your dropgood

 finditem %minaxitem , #backpackid  need to be  finditem %minaxitem C_  ,#backpackid



PS
Look at TM Sub BOS if this not working.   

Tags: