For a power leveled, unskilled rogue....

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

mekaniak
a hill giant
a hill giant
Posts: 290
Joined: Thu Sep 18, 2003 3:21 pm

For a power leveled, unskilled rogue....

Post by mekaniak » Fri Jan 23, 2004 3:58 pm

Ok, my friend asked me for this so I'm sure some one else has PLed a rogue and cant write basic scripts (no offense, this is very very simple and probably can be done better.) But here it is none the less...

Code: Select all

|lazyrogue.mac
|Syntax /macro lazyrogue

Sub Main
/echo I'm a rogue. Fear my skills...In about a few hours.
:start
/call Sneak
/call Hide
/call Pocket
/goto :start

Sub Sneak
   /if n $char(ability,"Sneak")!=-2 {
	/doability Sneak
	/doability Sneak
   }
/return

Sub Hide
   /if n $char(ability,"Hide")!=-2 {
	/doability Hide
	/doability Hide
   }
/return

Sub Pocket
   /if n $char(ability,"Pick Pockets")!=-2 {
	/doability "Pick Pockets"
   }
/return
I love the Power Glove, it's so bad

Say hello to M.C. Smurf!

[quote]<mekaniak> adios guys.
<dont_know_at_all> idiot
* mekaniak is now known as mekaniak_dinner
<Jacensolo> me?
<dont_know_at_all> not this time
[/quote]

[quote]
<dont_know_at_all> A_Enchanter_00, how the fuck should i know? it's your code[/quote]

I love quoting IRC chat.

mekaniak
a hill giant
a hill giant
Posts: 290
Joined: Thu Sep 18, 2003 3:21 pm

Post by mekaniak » Fri Jan 23, 2004 4:47 pm

NM he is just a tardass.
I love the Power Glove, it's so bad

Say hello to M.C. Smurf!

[quote]<mekaniak> adios guys.
<dont_know_at_all> idiot
* mekaniak is now known as mekaniak_dinner
<Jacensolo> me?
<dont_know_at_all> not this time
[/quote]

[quote]
<dont_know_at_all> A_Enchanter_00, how the fuck should i know? it's your code[/quote]

I love quoting IRC chat.

a9
orc pawn
orc pawn
Posts: 12
Joined: Mon Jan 26, 2004 10:16 am

Did a small change to it.

Post by a9 » Tue Jan 27, 2004 5:38 pm

This is the version i used when training.

Code: Select all

|lazyrogue2.mac Updated by A9, original by mekaniak.
|Syntax /macro lazyrogue2 

Sub Main 
/echo I'm a rogue. Fear my skills...In about a few hours. 
:start 
/call Hide
/delay 1s
/call Sneak
/delay 1s
/call Begging
/delay 1s
/call Disarm
/delay 1s 
/call Intimidate
/delay 1s 
/call Pocket 
/delay 2s
/goto :start 

Sub Sneak 
   /if n $char(ability,"Sneak")!=-2 { 
   /doability Sneak 
   /doability Sneak 
   } 
/return 

Sub Hide 
   /if n $char(ability,"Hide")!=-2 { 
   /doability Hide 
   /doability Hide 
   } 
/return 

Sub Begging 
   /if n $char(ability,"Sneak")!=-2 { 
   /doability begging  
   } 
/return 

Sub Disarm 
   /if n $char(ability,"Sneak")!=-2 { 
   /doability disarm  
   } 
/return 

Sub Intimidate 
   /if n $char(ability,"Hide")!=-2 { 
   /doability Intimidation  
   } 
/return 

Sub Pocket 
   /if n $char(ability,"Pick Pockets")!=-2 { 
   /doability "Pick Pockets" 
   } 
/return 
Syntax Error:

A9 at work.

a9
orc pawn
orc pawn
Posts: 12
Joined: Mon Jan 26, 2004 10:16 am

Post by a9 » Tue Jan 27, 2004 5:51 pm

Will try to make a version that counts success and such like the lockpick version i did see earlier.

For some reason begging will not work for me, starts pick pocket.
Any sugestions why?
Syntax Error:

A9 at work.

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

Post by GD » Tue Jan 27, 2004 8:38 pm

Maybe this is why....

Code: Select all

Sub Begging 
   /if n $char(ability,"[color=red]Sneak[/color]")!=-2 { 
   /doability begging  
   } 
/return 
Opinions are like assholes, everyone has one, but most of them stink.

mekaniak
a hill giant
a hill giant
Posts: 290
Joined: Thu Sep 18, 2003 3:21 pm

Post by mekaniak » Tue Jan 27, 2004 10:25 pm

yeah, looking at your code you actually have 3 "/if n $char(ability,"Sneak")!=-2 { " lines there. 1 at begging, 1 at actual sneak, and the last one at disarm. I don't know if thats the problem but you should probably change that.
I love the Power Glove, it's so bad

Say hello to M.C. Smurf!

[quote]<mekaniak> adios guys.
<dont_know_at_all> idiot
* mekaniak is now known as mekaniak_dinner
<Jacensolo> me?
<dont_know_at_all> not this time
[/quote]

[quote]
<dont_know_at_all> A_Enchanter_00, how the fuck should i know? it's your code[/quote]

I love quoting IRC chat.

a9
orc pawn
orc pawn
Posts: 12
Joined: Mon Jan 26, 2004 10:16 am

Post by a9 » Wed Jan 28, 2004 2:21 am

I definitialy need to go to sleep earlier it seems :oops:.

Thanks for help ill fix it and see how it works.
Syntax Error:

A9 at work.

a9
orc pawn
orc pawn
Posts: 12
Joined: Mon Jan 26, 2004 10:16 am

changed it but it didnt help.

Post by a9 » Wed Jan 28, 2004 5:48 am

Tried with sense trap instead and it worked.
I didnt get the counting to work though. Likely i have missed a very important point somewhere. Been messing with the code tofind the problem and now its likely more errors in it. Would be glad if someone could look at it for me. Problem seems to be with the variables

Code: Select all

Rogueskills.mac 
|Syntax /macro Rogueskills 

#turbo

| Try to set the events that shall count the training effect.

#event SkillUpSneak "You have become better at Sneak" 
#event SkillUpDisarm "You have become better at Disarm" 
#event SkillUpHide "You have become better at Hide" 
#event SkillUpPick "You have become better at Pick" 
#event SkillUpSense "You have become better at Sense" 
#event SkillUpInt "You have become better at Intimi"
#event skillups "You have become better at" 

| Declare the variables with values and run the skilluse.

Sub Main 
/echo I'm a rogue. Fear my skills...In about a few hours. 

   /declare SkillUpSneak global
   /declare SkillUpDisarm global
   /declare SkillUpHide global
   /declare SkillUpPick global
   /declare SkillUpSense global
   /declare SkillUpInt global
   /declare SkillUps global 
   /declare DurationHr global 
   /declare DurationMin global 
   /declare DurationSec global 

   /varset SkillUpSneak 0 
   /varset SkillUpDisarm 0 
   /varset SkillUpHide 0 
   /varset SkillUpPick 0 
   /varset SkillUpSense 0 
   /varset SkillUpInt 0
   /varset SkillUps 0 
 

:start 
/call Hide
/delay 1s
/call Sneak
/delay 1s
/call SenseTraps
/delay 1s
/call Disarm
/delay 1s 
/call Intimidate
/delay 1s 
/call Pocket 
/delay 2s
/doevents
/call Showstats
/goto :start 

/return

Sub Sneak 
   /if n $char(ability,"Sneak")!=-2 { 
   /doability Sneak 
   /doability Sneak 
   } 
/return 

Sub Hide 
   /if n $char(ability,"Hide")!=-2 { 
   /doability Hide 
   /doability Hide 
   } 
/return 

Sub sensetraps 
   /if n $char(ability,"Sense traps")!=-2 { 
   /doability "Sense Traps" 
   } 
/return 

Sub Disarm 
   /if n $char(ability,"disarm")!=-2 { 
   /doability disarm  
   } 
/return 

Sub Intimidate 
   /if n $char(ability,"Intimidation")!=-2 { 
   /doability Intimidation  
   } 
/return 

Sub Pocket 
   /if n $char(ability,"Pick Pockets")!=-2 { 
   /doability "Pick Pockets" 
   } 
/return 

Sub ShowStats
   /echo Test
   /echo ! $int(@SkillupSneak) Sneak!
   /echo ! $int(@SkillupDisarm) Disarm!
   /echo ! $int(@SkillupHide) Hide!
   /echo ! $int(@SkillupPick) Pick pocket!
   /echo ! $int(@SkillupSense) Sense Trap!
   /echo ! $int(@SkillupInt) Intimidate!
   /echo ! $int(@SkillUps) skill ups!   
   /call GetDuration
/return 

Sub GetDuration 
   /varset DurationSec $calc($running%60) 
   /varset DurationMin $calc($calc($running%3600)\60) 
   /varset DurationHr $calc($running\3600) 
   /echo Time Elapsed: $int(@DurationHr) Hours, $int(@DurationMin) Minutes, $int(@DurationSec) Seconds. 
/return 

Sub Event_SkillUpsneak 
   /varadd SkillUpsneak 1 
  /return 
Sub Event_SkillUphide 
   /varadd SkillUphide 1 
  /return 
Sub Event_SkillUpDisarm 
   /varadd SkillUpDisarm 1 
  /return 
Sub Event_SkillUpSense 
   /varadd SkillUpsneak 1 
  /return 
Sub Event_SkillUpInt 
   /varadd SkillUpInt 1 
  /return 
Sub Event_SkillUpPick 
   /varadd SkillUpPick 1 
  /return 


Sub Event_SkillUps 
   /varadd SkillUps 1 
  /return

Syntax Error:

A9 at work.

Light Knight
OMGFZ WARE R TEH SPAWNZ!1 I REINSTALLED
Posts: 33
Joined: Wed Apr 23, 2003 3:49 pm

Rogue skill up worked great

Post by Light Knight » Thu Jan 29, 2004 6:25 pm

You just had a few variable problems..I believe they are case sensitive..

and I changed the event names just in case.

Code: Select all

|Syntax /macro Rogueup

#turbo 

| Try to set the events that shall count the training effect. 

#event SkillUpsneakEvent "You have become better at Sneak" 
#event SkillUpDisarmEvent "You have become better at Disarm" 
#event SkillUpHideEvent "You have become better at Hide" 
#event SkillUpPickEvent "You have become better at Pick" 
#event SkillUpsenseEvent "You have become better at Sense" 
#event SkillUpIntEvent "You have become better at Intimi" 
#event SkillUpsevent "You have become better at" 

| Declare the variables with values and run the skilluse. 

Sub Main 
/echo I'm a rogue. Fear my skills...In about a few hours. 

   /declare SkillUpSneak global 
   /declare SkillUpDisarm global 
   /declare SkillUpHide global 
   /declare SkillUpPick global 
   /declare SkillUpsense global 
   /declare SkillUpInt global 
   /declare SkillUps global 
   /declare DurationHr global 
   /declare DurationMin global 
   /declare DurationSec global 

   /varset SkillUpSneak 0 
   /varset SkillUpDisarm 0 
   /varset SkillUpHide 0 
   /varset SkillUpPick 0 
   /varset SkillUpsense 0 
   /varset SkillUpInt 0 
   /varset SkillUps 0 


:start 
/call Hide 
/delay 1s 
/call Sneak 
/delay 1s 
/call SenseTraps 
/delay 1s 
/call Disarm 
/delay 1s 
/call Intimidate 
/delay 1s 
/call Pocket 
/delay 2s 
/doevents 
/call Showstats 
/goto :start 

/return 

Sub Sneak 
   /if n $char(ability,"Sneak")!=-2 { 
   /doability Sneak 
   /doability Sneak 
   } 
/return 

Sub Hide 
   /if n $char(ability,"Hide")!=-2 { 
   /doability Hide 
   /doability Hide 
   } 
/return 

Sub sensetraps 
   /if n $char(ability,"Sense traps")!=-2 { 
   /doability "Sense Traps" 
   } 
/return 

Sub Disarm 
   /if n $char(ability,"disarm")!=-2 { 
   /doability disarm  
   } 
/return 

Sub Intimidate 
   /if n $char(ability,"Intimidation")!=-2 { 
   /doability Intimidation  
   } 
/return 

Sub Pocket 
   /if n $char(ability,"Pick Pockets")!=-2 { 
   /doability "Pick Pockets" 
   } 
/return 

Sub ShowStats 
   /echo ! $int(@SkillUpSneak) Sneak! 
   /echo ! $int(@SkillUpDisarm) Disarm! 
   /echo ! $int(@SkillUpHide) Hide! 
   /echo ! $int(@SkillUpPick) Pick pocket! 
   /echo ! $int(@SkillUpsense) Sense Trap! 
   /echo ! $int(@SkillUpInt) Intimidate! 
   /echo ! $int(@SkillUps) skill ups!    
   /call GetDuration 
/return 

Sub GetDuration 
   /varset DurationSec $calc($running%60) 
   /varset DurationMin $calc($calc($running%3600)\60) 
   /varset DurationHr $calc($running\3600) 
   /echo Time Elapsed: $int(@DurationHr) Hours, $int(@DurationMin) Minutes, $int(@DurationSec) Seconds. 
/return 

Sub Event_SkillUpsneakEvent
   /varadd SkillUpSneak 1 
  /return 
Sub Event_SkillUphideEvent
   /varadd SkillUpHide 1 
  /return 
Sub Event_SkillUpDisarmEvent
   /varadd SkillUpDisarm 1 
  /return 
Sub Event_SkillUpsenseEvent
   /varadd SkillUpsense 1 
  /return 
Sub Event_SkillUpIntEvent
   /varadd SkillUpInt 1 
  /return 
Sub Event_SkillUpPickEvent 
   /varadd SkillUpPick 1 
  /return 


Sub Event_SkillUpsevent
   /varadd SkillUps 1 
  /return 

a9
orc pawn
orc pawn
Posts: 12
Joined: Mon Jan 26, 2004 10:16 am

Post by a9 » Fri Jan 30, 2004 4:24 am

Thanks i will check it out tonight :)
Syntax Error:

A9 at work.

tranze204
a lesser mummy
a lesser mummy
Posts: 39
Joined: Tue Mar 02, 2004 6:26 pm

/doability ???

Post by tranze204 » Tue Apr 20, 2004 8:58 pm

Hey there i suck at these things...so at that ive been having problems with this macro...and its /doability im getting spammed about this and my skills arent being practiced...anyway someone can help by posting wha i need to do?

tranze204
a lesser mummy
a lesser mummy
Posts: 39
Joined: Tue Mar 02, 2004 6:26 pm

PLEASE

Post by tranze204 » Tue Apr 20, 2004 10:11 pm

Can you please help me please....

mekaniak
a hill giant
a hill giant
Posts: 290
Joined: Thu Sep 18, 2003 3:21 pm

Post by mekaniak » Wed Apr 21, 2004 9:55 am

This was written a very long time ago, it needs to be updated to the new stuff. If I understood te new params and stuff i would do it, but its early and I dont feel like looking stuff up. Sorry. :?
I love the Power Glove, it's so bad

Say hello to M.C. Smurf!

[quote]<mekaniak> adios guys.
<dont_know_at_all> idiot
* mekaniak is now known as mekaniak_dinner
<Jacensolo> me?
<dont_know_at_all> not this time
[/quote]

[quote]
<dont_know_at_all> A_Enchanter_00, how the fuck should i know? it's your code[/quote]

I love quoting IRC chat.

a9
orc pawn
orc pawn
Posts: 12
Joined: Mon Jan 26, 2004 10:16 am

Post by a9 » Wed Apr 21, 2004 10:05 am

What kind of messages do you get?
Ill check tonight or tomorrow if this one still works for me.
Syntax Error:

A9 at work.

tranze204
a lesser mummy
a lesser mummy
Posts: 39
Joined: Tue Mar 02, 2004 6:26 pm

/doability

Post by tranze204 » Wed Apr 21, 2004 11:39 am

it says something about the ability is not set to a /doability button or something like that, if you could help me it would be very useful to me and i would appreciate it alot.