What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

let go of plugin and go repair

etmawow

New Member
Joined
May 2, 2010
Messages
79
Reaction score
1
Hi

How do i make my plugin drop control and let honorbuddy repair/vendor and such, when the requirements in the profile has been met? <mindurability> and such? :)

-Erik
 
Plugin or Profile? You mention both so I want to be sure.
 
Plugin or Profile? You mention both so I want to be sure.
sure :)

I'm making a plugin that has to do some stuff.. unless it needs to repair or empty inventory (based on the info written in the profile), it has to go to the vendors defined in there .. and not do anything until :)

does it cast an event or something if it has to repair or inventory is full?
 
You can just set your entire plugin into a giant if statement that checks repair and vendor status, that way the plugin won't run if those are met.
 
have tried that before, but couldn't get that to work.. it just stood still when the if-statement where met.
 
have tried that before, but couldn't get that to work.. it just stood still when the if-statement where met.

Need more info about your code (or the code itself) to see why that's happening :p
 
I'm guessing he means while (styx.logic.inventory.freeslots > 2) { dostuff(); }
 
Or you just make a little bool....

and you just set it to false again when you are done (and then while (bool) { blabla } )
 
Back
Top