ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: manwinc on January 16, 2013, 07:46:47 PM

Title: Exevent Dropc Problems
Post by: manwinc on January 16, 2013, 07:46:47 PM
Anyone Noticing Any Issues with Exevent Dropc Recently?

I'm Testing Some Code to basically Drag a Box from the Ground and Put it into another Container.

Typically I Monitor the Weight of my Player after Dragging Items That aren't on his person to start, and then after the weight has changed, or the Timer has Expired, I drop them on the Appropriate Container.

This has all been Done Flawlessly 100,000,000's of times in looters and other scripts, but when I'm dragging this Chest, It won't end up in the Appropriate Container, Like Exevent Dropc Is Broken.

I had to Code in a Secondary weight check after the Drop to make sure the weight returns to normal..

Very Annoying, about to close EUO and UO and restart Fresh, Just curious if Anyone Else Noticed Exevent dropc Doing weird things.
Title: Re: Exevent Dropc Problems
Post by: KaliOfLS on January 16, 2013, 07:58:43 PM
I'll toss down a chest and try it out.  I use openEUO usually and just wrote a bod sorting algorithm that will pull books from multiple bags and place them, correctly, back into it.  I'll give euox a test script and see if Have that problem reproducing.  (Any item, or does it seem to be containers not dropping back into the box correctly?)
Title: Re: Exevent Dropc Problems
Post by: KaliOfLS on January 16, 2013, 08:18:14 PM
Code: [Select]
set #targcurs 1
while #targcurs = 1
      wait 1

set %DragBagID #ltargetid
event sysmessage ok

set #targcurs 1
while #targcurs = 1
      wait 1
     


set %DropContID #ltargetid
set %Weight #weight

exevent drag %DragBagID 1
while #weight = %Weight
   wait 1

exevent dropc %DropContID

halt

Ran this reallly simple code for about 10-15 times, experienced no issues.
Build 236, client version 70.0.29.2
Title: Re: Exevent Dropc Problems
Post by: manwinc on January 16, 2013, 08:31:01 PM
Its actually Dropping them onto packies that's giving the Error....

Just doesn't seem to go through 100% of the Time.


set %Chestid XXXXX
set %Petid XXXX

Exevent drag %Chestid
Exevent dropc %Petid
Halt

pretty Straightforward.
Title: Re: Exevent Dropc Problems
Post by: KaliOfLS on January 16, 2013, 08:34:24 PM
When's the last time you've checked your horses' packID?  If it's died, it's changed.  I'm testing wiht my packy right now.
Title: Re: Exevent Dropc Problems
Post by: manwinc on January 16, 2013, 08:36:53 PM
Hmm.. Its working for me now. I had to use a few Event drags though a few times... and Triple Checked the Packies ID.

Strange occurances....
Title: Re: Exevent Dropc Problems
Post by: KaliOfLS on January 16, 2013, 08:38:29 PM
oddness. 
I modified my code a bit so that I could just keep hitting f2 to move it to my pack
Out of ~50 tries, one 1 time it a strange thing where it just plopped the bag back onto the ground.  Not sure  :-\
Title: Re: Exevent Dropc Problems
Post by: manwinc on January 16, 2013, 08:42:05 PM
The other 49 it successfully moved it into the packie?
Title: Re: Exevent Dropc Problems
Post by: KaliOfLS on January 16, 2013, 08:44:29 PM
yep.  I tried off the ground, out of another container, and out of the packy himself.
Title: Re: Exevent Dropc Problems
Post by: manwinc on January 16, 2013, 09:02:42 PM
Yeah, Looks like the Script is Just Messing up. About to Have to Delete all the Code and Start over From scratch. Its GLitching out so bad it won't even drag the Items Sometimes. Like Stepping into the Script won't pick them up even when it says it is.
Title: Re: Exevent Dropc Problems
Post by: KaliOfLS on January 16, 2013, 09:05:42 PM
have you tried a blank script with a exevent dropc #backpackID just to make sure you don't have an item hung on the cursor?
Title: Re: Exevent Dropc Problems
Post by: manwinc on January 16, 2013, 09:14:01 PM
Yeah, Tried all That. Looking like it was because I had the #LPC Turned up to 9999. That's been Really messing with a lot of My Scripts on Newer Operating Systems and Processors. I reset it back to 10 LPC and it worked Flawlessly. WTF
Title: Re: Exevent Dropc Problems
Post by: manwinc on January 16, 2013, 09:16:26 PM
NOPE! *SCREAMS*
Title: Re: Exevent Dropc Problems
Post by: manwinc on January 16, 2013, 09:26:57 PM
Secondary Script running in the Background performing Event Property on Objects Glitches the Exevent Drag and Exevent Dropc Commands.


Just Goes to show you that there is always more you can learn about this crappy wonderful program we all love and hate. it brings us together like Family.
Title: Re: Exevent Dropc Problems
Post by: KaliOfLS on January 16, 2013, 09:34:11 PM
Secondary Script running in the Background performing Event Property on Objects Glitches the Exevent Drag and Exevent Dropc Commands.


Just Goes to show you that there is always more you can learn about this crappy wonderful program we all love and hate. it brings us together like Family.

lol.  Whew, problem solved.  I'm shocked by that glitch though real odd.  It's a love hate relationship.
Title: Re: Exevent Dropc Problems
Post by: Endless Night on January 17, 2013, 09:33:34 AM
that's a good bit of information to know.
Title: Re: Exevent Dropc Problems
Post by: Alpha on January 17, 2013, 10:05:23 AM
Quote
that's a good bit of information to know.

Yeah I'll 2nd that!  I can't imagine how many times my looting sub has hiccuped on me because another script was trying to determine if a blue character was an actual player or NPC !
Title: Re: Exevent Dropc Problems
Post by: Masscre on January 31, 2013, 07:24:59 AM
Quote
that's a good bit of information to know.

Yeah I'll 2nd that!  I can't imagine how many times my looting sub has hiccuped on me because another script was trying to determine if a blue character was an actual player or NPC !

It is funny that you mention this. I am trying to write in a sub that will sort between a player and an NPC. How did you do this?
Title: Re: Exevent Dropc Problems
Post by: Endless Night on January 31, 2013, 08:19:04 AM
Quote
that's a good bit of information to know.

Yeah I'll 2nd that!  I can't imagine how many times my looting sub has hiccuped on me because another script was trying to determine if a blue character was an actual player or NPC !

It is funny that you mention this. I am trying to write in a sub that will sort between a player and an NPC. How did you do this?

might be showing my ignorance here.. but findrep ?
Title: Re: Exevent Dropc Problems
Post by: manwinc on January 31, 2013, 08:41:17 AM
No, both a blue NPC and a Blue Player both return the Same #Findrep. The easiest Method is by doing Exevent Popup on the Character and Comparing the Contsize.

Thats the Easy way. Then if it Recognizes the Contsize as a Player, it can doubel check by opening the paperdoll and looking for Imbued Properties etc.
Title: Re: Exevent Dropc Problems
Post by: Masscre on January 31, 2013, 09:00:20 AM
Thank you both. I was thinking about findrep but knew that it returned the same info for both. I was trying to think outside the box but to no avail yet. Seen this and figured I would throw it out there. I like the thought about the cont size. That is thinking outside the box.
Title: Re: Exevent Dropc Problems
Post by: Endless Night on January 31, 2013, 09:04:08 AM
No, both a blue NPC and a Blue Player both return the Same #Findrep. The easiest Method is by doing Exevent Popup on the Character and Comparing the Contsize.

Thats the Easy way. Then if it Recognizes the Contsize as a Player, it can doubel check by opening the paperdoll and looking for Imbued Properties etc.

ow a live player/npc for some reason i was thinking you were talking about dead ones...  I know i do it 2 ways in 2 diff scripts im going to check how i did it and post back
Title: Re: Exevent Dropc Problems
Post by: Alpha on January 31, 2013, 09:07:20 AM
Well for the longest time I simply pulled the characters title & could sort out common npc titles.  This really broke when they allowed players to adopt skill titles though surprisingly few people actually wear them.

Other ideas..

*Honor the target.   (You get different sysmessages I think)
*Open paperdoll & check for Insured or even Any Talisman
*Attempt to party
*I've thought about attempting to check if they are mounted (maybe with height, but never actually tried that one)
*Could always check player only titles(Gladiator / Legendary??) or for being guilded to filter somewhat.   

Theres bound to be more ways, I've just always used the top one bc it was the least disruptive for other scripts.
Title: Re: Exevent Dropc Problems
Post by: Endless Night on January 31, 2013, 09:10:16 AM
method 1 - i use in my overseer... npc names... excluding all the ones with a given name...   but as ghost said could invalid a few players that way if they set thier title...  now im going ot have to redo that code as i missed/forgot about the change ghost is talking about errr

method 2 - lost to sands of time...


The contsize of the popup so far seems like the best selection...  couple of things to test on that front.. if a player is in a form does his contsize stay the same.. what about wearing Halloween masks... (findrep might change as well and no longer be blue)
Title: Re: Exevent Dropc Problems
Post by: KaliOfLS on January 31, 2013, 10:48:03 AM
Yeah, but very few NPCs are found 'everywhere'.   I think most you have to think about is 'the wandering healer', 'the mage', and 'the noble paladin', and um 'the fighter' 

How many PCs have those titles? Unless there are town scripts at work here, that matter.
Title: Re: Exevent Dropc Problems
Post by: Masscre on January 31, 2013, 02:36:20 PM
method 1 - i use in my overseer... npc names... excluding all the ones with a given name...   but as ghost said could invalid a few players that way if they set thier title...  now im going ot have to redo that code as i missed/forgot about the change ghost is talking about errr

method 2 - lost to sands of time...


The contsize of the popup so far seems like the best selection...  couple of things to test on that front.. if a player is in a form does his contsize stay the same.. what about wearing Halloween masks... (findrep might change as well and no longer be blue)

Cont size does stay the same even in other forms.
Title: Re: Exevent Dropc Problems
Post by: manwinc on January 31, 2013, 08:58:00 PM
Yeah, the only difficult one is if they are in a party.  This can return only the "Open Paperdoll" Size. which then you can go okay, it might be a player or an NPC. and do a further check.