Author Topic: Newb help!  (Read 3630 times)

0 Members and 1 Guest are viewing this topic.

Offline WakizaTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Wakiza has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Newb help!
« on: October 11, 2009, 08:31:16 AM »
0
Hello, ScriptUO'ers. Lately been writing very, very simple scripts for my own needs. I have zero experience, and am learning completely from scratch.

I seem to have stumped myself trying to find the right coding to make my character meditate untill full mana and then continue casting his spells. Simple enough i'm sure... but after searching through EasyUO's documentation and tinkering around with other peoples scripts. I can't seem to get it right.

*edit*Right now i got it set so that if my character goes under 40 mana, i meditate for 10 seconds. Can't figure out how to make him med untill he reaches full mana.

What is the easiest possible method to do this? Any help would be great!  :'(





« Last Edit: October 11, 2009, 09:12:29 AM by Wakiza »

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
    • MyScripts
Re: Newb help!
« Reply #1 on: October 11, 2009, 09:52:49 AM »
0
Hi,

basic Idea for this is a loop

1. Start Meditation Skill  ...
2. Make sure your Medi worked ..(eg Journal Scan) ..if not go back to 1. step
3. Medi is running
4. Check your Chars mana ... (eg While Loop)
5. if actual mana is below your max mana go back to 4 ...
6. End your mana is restored ...

if you need/want more help .. just let me know ..

cu
« Last Edit: October 11, 2009, 09:57:32 AM by rana70 »

Offline WakizaTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Wakiza has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Newb help!
« Reply #2 on: October 11, 2009, 10:19:21 AM »
0
Thanks Rana, any advise helps. Its not so much the process of the script that confuses me, its that there are so many commands(variable, expressions, ext.) availble i'm not sure which to choose from to get the results im looking for!  ???

I guess it will just be a slow learning curve for me, untill i get more familar with it.

On a side note after hours of tinkering around, i did get that med loop to work with the rest of my script.  8)

Thanks !

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
    • MyScripts
Re: Newb help!
« Reply #3 on: October 11, 2009, 10:26:19 AM »
0
Thanks Rana, any advise helps. Its not so much the process of the script that confuses me, its that there are so many commands(variable, expressions, ext.) availble i'm not sure which to choose from to get the results im looking for!  ???

I guess it will just be a slow learning curve for me, untill i get more familar with it.

On a side note after hours of tinkering around, i did get that med loop to work with the rest of my script.  8)

Thanks !

Hi,
great to see you got it solved on your own,
I think there are many ways to reach this  goal and every solution that works is OK for me  ... :-)

If you like .. to see my approach to solve this ... just let me know and I add a few comments
for you and post it ...

cu


 

Offline WakizaTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Wakiza has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Newb help!
« Reply #4 on: October 11, 2009, 10:34:36 AM »
0
Well i didnt exactly solve my problem, i just kinda gave up on making my own and grabbed a med sub from another script, and put it into mine. That even took alot of testing to finally get it to work correctly... but i think i learned alot just doing that!

I would love to see how you would go about it!

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
    • MyScripts
Re: Newb help!
« Reply #5 on: October 12, 2009, 09:46:30 AM »
0
Well i didnt exactly solve my problem, i just kinda gave up on making my own and grabbed a med sub from another script, and put it into mine. That even took alot of testing to finally get it to work correctly... but i think i learned alot just doing that!

I would love to see how you would go about it!


Hi,

I put a few extra comments into this ... just have a look :-)

http://www.scriptuo.com/index.php?topic=2929.0



cu

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
    • MyScripts
Re: Newb help!
« Reply #6 on: October 12, 2009, 06:57:32 PM »
0
Hi Wakiza,

there is no need to feel "Overwhelmed" at all.
The good thing with scripting is .. there is usually 1000 possible ways to get what you want.

If you have written something together .. and you got stuck .... there is always a debug forum
around .. simply post your stuff there .. and ask for help ... on this page are a lot of
script wizards that for sure will help you out and give you a hint how it might work.

Enjoy the community and have fun
cu

Offline WakizaTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • Wakiza has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Newb help!
« Reply #7 on: October 14, 2009, 02:32:42 PM »
0
Thanks again  ;)

Tags: