Author Topic: Drop Shoes Sub cannot get to drop ALL Shoes.  (Read 4378 times)

0 Members and 1 Guest are viewing this topic.

Offline Dan123The123ManTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 1
  • Dan123The123Man has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Drop Shoes Sub cannot get to drop ALL Shoes.
« on: February 29, 2020, 06:07:51 AM »
0
Can anyone help me figure out why this sub is not dropping all the boots/sandals that are in the backpack to the ground, instead it just drops one to the ground then it returns to the next gosub which is recalling out? Id like for it to drop all of them if #findkind = 1 keep dropping them until #findkind = 0 or -1

Code: [Select]
set %shoes QVI_PVI_CYI_CWI_NVI_TVI_ZVI_AWI_OVI_XVH

 sub dropboots
set %looper10 0
sandals:
finditem %shoes C , #backpackid
if #findkind = -1
      {
      return
      }
if %looper10 > 9
      {
      return
      }
set %item2 #findid
namespace push
  namespace local RT
  set !radius 2
  set !randx #RANDOM % !radius + 1
  set !randy #RANDOM % !radius + 1
  if #RANDOM > 500
    set !randx !randx * -1
  if #RANDOM > 500
    set !randy !randy * -1
  set !randx !randx + #CHARPOSX
  set !randy !randy + #CHARPOSY
  set #LTARGETX !randx
  set #LTARGETY !randy
  set #LTARGETZ #CHARPOSZ
  ;set #LTARGETKIND 2
  ;event pathfind !randx !randy
  wait 30
     ;set #lobjectid %bag
     exevent drag %item2
     wait 20
     exevent dropg !randx !randy #charposz
   namespace pop
;exevent drag %item2 #findstack
;wait 20
;exevent dropc %trassh
;wait 15
set %looper10 %looper10 + 1
goto sandals:
 until #findkind = -1 || ( #scnt > %safety_timer )
  set %overweight #FALSE
return

Offline Crisis

  • Global Moderator
  • *
  • *
  • Posts: 2998
  • Activity:
    3.4%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +205
  • Referrals: 2
    • View Profile
Re: Drop Shoes Sub cannot get to drop ALL Shoes.
« Reply #1 on: February 29, 2020, 07:51:31 AM »
0
The ground tile is most likely blocked after the first pair. Maybe try set it to drop them in a corpse or trash can?

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: Drop Shoes Sub cannot get to drop ALL Shoes.
« Reply #2 on: February 29, 2020, 08:06:39 AM »
0
Go get a goat,   feed him the shoe, this way you have no mess around you.   

And if you required to drop more them one items,  you need to loop.   

Those little syntax are usu full sometime
Quote

finditem xxxxx C_ , #backpackid
 for #findindex 1 #findcnt
        {
       do something
      }

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Drop Shoes Sub cannot get to drop ALL Shoes.
« Reply #3 on: March 01, 2020, 07:35:52 AM »
0
Go get a goat,   feed him the shoe, this way you have no mess around you.   

And if you required to drop more them one items,  you need to loop.   

Those little syntax are usu full sometime
Quote

finditem xxxxx C_ , #backpackid
 for #findindex 1 #findcnt
        {
       do something
      }

That is some excellent advice right thier.
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Drop Shoes Sub cannot get to drop ALL Shoes.
« Reply #4 on: March 01, 2020, 07:41:51 AM »
0
You could also try my old drag drop to ground sub It tries every spot around you.

http://www.scriptuo.com/index.php?topic=2454.msg33436#msg33436
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline Dan123The123ManTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 1
  • Dan123The123Man has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Drop Shoes Sub cannot get to drop ALL Shoes.
« Reply #5 on: March 02, 2020, 06:05:46 AM »
0
got it fixed ty

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Drop Shoes Sub cannot get to drop ALL Shoes.
« Reply #6 on: March 02, 2020, 06:43:28 AM »
0
got it fixed ty
show us the end result so others can learn from it.
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Tags: