Author Topic: Looking for the basics on using event property correctly...  (Read 3451 times)

0 Members and 1 Guest are viewing this topic.

Offline AlphaTopic starter

  • Hero Member
  • *
  • Posts: 583
  • Activity:
    0%
  • Reputation Power: 10
  • Alpha barely matters.Alpha barely matters.
  • Respect: +44
  • Referrals: 0
    • View Profile
Looking for the basics on using event property correctly...
« on: October 02, 2009, 12:22:18 PM »
0
Ok...  So what are the common Error checks you guys use when using Event property?

I'm thinking about writing a short script that will churn out masses of Exceptionally crafted leather armor and continue to recycle them until I get ones with the right resists.  This will obviously mean using event property on each piece and parsing out the Resist values & comparing.  What I'm not too sure about are the Ways that Event property can Fail ??

Example..
Code: [Select]
set %Scissory_ID XXXXX
set %Armor_type YYY

set %string %Fire , #spc , Resist , #spc , 16%
START:

Finditem %Armor_type C_ , #backpackid
If #findcnt > 0
  {
     For #findindex 1 #findcnt
        {
           event property #findid
           wait 10
           If %string notin #property
              {
                  set #lobjectid #scissor_id
                  event macro 17 0
                  Target 2s
                  set #ltargetid #findid
                  event macro 22 0
                  wait 20
               }
         }

goto START

Anyway...  I'm stuck @ work and borred...  The whole part where I set String was hopefully enough to convey teh idea I don't actually think that would function like that.   I'm just really not sure about other error checking I should be using to make sure that #property updates etc.     Maybe I can Save it before the Event & If it's different AFTER the event and NOT just $ it worked or something..
 
Ah well.. just thinking..

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: Looking for the basics on using event property correctly...
« Reply #1 on: October 02, 2009, 01:06:43 PM »
0
Only way i know event property can fail is lag.  I dont think ive ever actually expereinced it myself..
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 cgeorgemo

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Looking for the basics on using event property correctly...
« Reply #2 on: October 02, 2009, 03:36:56 PM »
0
Only way i know event property can fail is lag.  I dont think ive ever actually expereinced it myself..


You've never experienced lag?   Cough...cough.....bullshit.... ;)
Sarcasm is your body's natural defense against stupidity.

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: Looking for the basics on using event property correctly...
« Reply #3 on: October 02, 2009, 04:46:54 PM »
0
Only way i know event property can fail is lag.  I dont think ive ever actually expereinced it myself..


You've never experienced lag?   Cough...cough.....bullshit.... ;)

I mean lag enough to mess up an event property reading.  At least not that im aware of.
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 cgeorgemo

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Looking for the basics on using event property correctly...
« Reply #4 on: October 02, 2009, 05:47:28 PM »
0
Only way i know event property can fail is lag.  I dont think ive ever actually expereinced it myself..


You've never experienced lag?   Cough...cough.....bullshit.... ;)

I mean lag enough to mess up an event property reading.  At least not that im aware of.
Yeah I know.....just yanking on some chains here.....I read somewhere that happens sometimes here.
Sarcasm is your body's natural defense against stupidity.

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
    • MyScripts
Re: Looking for the basics on using event property correctly...
« Reply #5 on: October 03, 2009, 03:54:11 AM »
0
A simple Wait 10 can help a lot before a FindItem command to fight any lag related trouble
cu

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Looking for the basics on using event property correctly...
« Reply #6 on: October 03, 2009, 11:14:02 AM »
0
There are items out there (and especially creatures) where finditem property just doesn't work.  Normal Ogres comes to mind.  There was a bunch of others.  I haven't checked for a while, but throughout 5.x and 6.x clients I would run into this problem.
Please read the ScriptUO site RULES
Come play RIFT with me!

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: Looking for the basics on using event property correctly...
« Reply #7 on: October 03, 2009, 11:52:51 AM »
0
If you've ever Held your mouse over something and it just told you..... NOTHING. Like Ring.... Great...what the F Are the MODS. That IS a situation where event property will mess up, probably caused by lag.
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 TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Looking for the basics on using event property correctly...
« Reply #8 on: October 03, 2009, 12:01:08 PM »
0
Another little hint; movement seems to impact the function of event property.  The reason my IDOC scanner works so well is at one time I noticed I was missing a bunch of signs as I was wandering around.  So in my experimentation, I found that some items returning a blank value in #PROPERTY would evaluate correctly if the character was standing still.  So you'll notice sometimes you are forced to stop walking when running my IDOC scanner and this is why.
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: