Author Topic: Very new to scripting and i have a question  (Read 3651 times)

0 Members and 1 Guest are viewing this topic.

Offline warrenottoTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • warrenotto has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Very new to scripting and i have a question
« on: February 19, 2013, 09:34:46 PM »
0
Hey everyone,
I've been interested in learning basic scripting for a while. Got busy with life for a bit so never really got started nor do I even know where to really start. I'm not expecting to become a master scripter as i know zero about it right now. But I think i can learn how to write simple scripts.

Anyways I have a question and maybe a good spot to start my learning adventure. I'm using a mining script on the server I play. I'm having trouble where my character gets stuck dragging ore on a forever loop, I'm assuming that lag spikes are causing it. I can manually fix this by closing my main pack and reopen it and the script will continue. Although this requires me to sit there and keep an eye on it.

How can i write a super simple background script to:

Close main pack
reopen main pack
pause 10 minutes
loop.

Or if you don't wanna give it up so easy, where can I learn how to write that as a script.


Thanks!

Offline MeWonUo

  • Hero Member
  • *
  • Posts: 913
  • Activity:
    0%
  • Reputation Power: 11
  • MeWonUo barely matters.MeWonUo barely matters.
  • Gender: Male
  • Respect: +189
  • Referrals: 1
    • View Profile
Re: Very new to scripting and i have a question
« Reply #1 on: February 20, 2013, 12:08:35 AM »
0
Hi there,

I would take a little time to look around, and use the search feature on the euo wiki.  I've learned loads there just by wandering around.

But for what you are wanting to do there, I would take a look at this page.

http://wiki.easyuo.com/index.php?title=Event_Macro

Good luck with your project.

Offline Masscre

  • Gran Master Jester !!
  • Scripthack
  • *
  • Posts: 4615
  • Activity:
    0%
  • Reputation Power: 55
  • Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!
  • Gender: Male
  • Air Guitar Commander !!
  • Respect: +390
  • Referrals: 1
    • View Profile
Re: Very new to scripting and i have a question
« Reply #2 on: February 20, 2013, 07:23:12 AM »
0
This should help you some. If you need some help of need some explanations just leave it here.

:Main
Event Macro 9 7 Close main pack
Event Macro 8 7 ;reopen main pack
Wait 600s ;pause 10 minutes
Goto Main ;loop.

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: +786
  • Referrals: 1
    • View Profile
Re: Very new to scripting and i have a question
« Reply #3 on: February 20, 2013, 09:08:54 AM »
0
welcome and might i suggest a slight improvement...

Code: [Select]
while #clilogged = 1    ; Repeat the code block while im logged in
  {
  Event Macro 9 7 ;Close main pack
  wait 10  ; pause so you dont get you must wait message
  Event Macro 8 7 ;reopen main pack
  Wait 600s ;pause 10 minutes
  }
halt
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 Masscre

  • Gran Master Jester !!
  • Scripthack
  • *
  • Posts: 4615
  • Activity:
    0%
  • Reputation Power: 55
  • Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!
  • Gender: Male
  • Air Guitar Commander !!
  • Respect: +390
  • Referrals: 1
    • View Profile
Re: Very new to scripting and i have a question
« Reply #4 on: February 20, 2013, 02:14:38 PM »
0
Yes that one would work a little better. Thank you EN  :-\

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: +786
  • Referrals: 1
    • View Profile
Re: Very new to scripting and i have a question
« Reply #5 on: February 21, 2013, 06:40:23 AM »
0
Yes that one would work a little better. Thank you EN  :-\

its easier to improve others work than create from scratch i always find.
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: