PDA

View Full Version : Warcamping Wizard script help



vamosj
05-22-2011, 03:12 PM
Trying to generate a script to help my wand waving in a warcamp.. I came up with the following but it states I'm having an error with line 53. If anyone can help out on what I'm doing wrong and also give some pointers on how to make this work better or look cleaner let me know.

Thanks.



put inventory hands
match ROD rod
match WAND wand
matchwait
ROD:
save rod

WAND:
save wand

put look
match CLE Cleric
match ACO Acolyte
match INI Initiates
match EMP Empath
match SCO Scourge
match HEA Healer
match PAL Paladin
match ZEA Zealot
match CRU Crusader
match WRA Wrathbringer
match DES Destroyer
match BLA Blackguard
match RAN Ranger
match HUN Hunter
match HUN Huntmaster
match HUN Huntmistress
match RAI Raider
match SKI Skirmisher
match PIL Pillager
match ARC Archer
match SNI Sniper
match SCO Scout
match SOR Sorcerer
match SOR Sorceress
match DIS Dissembler
match WIT Witch
match WAR1 Warlock
match WAR2 Warrior
match MAR Marauder
match FIG Fighter
match BAR Barbarian
match SOL Soldier
match CHA Champion
match VET Veteran
match WIZ Wizard
match MAG Mage
match ADE Adept
match ELE Elementalist
match WAR3 Warmage
match ARC Archmage
match GUA Guard
matchwait

CLE:
put wave %s at cleric
exit

ACO:
put wave %s at acolyte
exit

INI:
put wave %s at initia
exit

EMP:
put wave %s at empath
exit

SCO:
put wave %s at scout
exit

HEA:
put wave %s at healer
exit

PAL:
put wave %s at paladin
exit

ZEA:
put wave %s at zealot
exit

CRU:
put wave %s at crusader
exit

WRA:
put wave %s at wrathbring
exit

DES:
put wave %s at destroyer
exit

BLA:
put wave %s at blackguard
exit

RAN:
put wave %s at ranger
exit

HUN:
put wave %s at hunter
exit

RAI:
put wave %s at raider
exit

SKI:
put wave %s at skirmisher
exit

PIL:
put wave %s at pillager
exit

ARC:
put wave %s at archer
exit

SNI:
put wave %s at sniper
exit

SCO:
put wave %s at scout
exit

SOR:
put wave %s at sorcer
exit

DIS:
put wave %s at dissemb
exit

WIT:
put wave %s at witch
exit

WAR1:
put wave %s at warlock
exit

WAR2:
put wave %s at warrior
exit

MAR:
put wave %s at marauder
exit

FIG:
put wave %s at fighter
exit

BAR:
put wave %s at barbarian
exit

SOL:
put wave %s at soldier
exit

CHA:
put wave %s at champion
exit

VET:
put wave %s at veteran
exit

WIZ:
put wave %s at wizard
exit

MAG:
put wave %s at mage
exit

ADE:
put wave %s at adept
exit

ELE:
put wave %s at elementalist
exit

WAR3:
put wave %s at warmage
exit

ARC:
put wave %s at archmage
exit

ARC:
put wave %s at guard
exit

WRoss
05-22-2011, 03:13 PM
You have "initiates" instead of "initiate" about all I looked at.

Smythe
05-22-2011, 04:07 PM
Ya should be gettin' da actual error.

>MATCH table is full; only 32 MATCHes allowed!

- Smythe

vamosj
05-22-2011, 05:47 PM
You have "initiates" instead of "initiate" about all I looked at.

Then I will only have a problem waving my wand at them.. Thanks for pointing that out though.

vamosj
05-23-2011, 01:29 PM
I've also got a thread going in mechanics complaints that I may have gotten my answer to this and I may not need a script. I'll keep this one open for now until I can ensure the problem is fixed. I may use any fix to this script as an educational benefit for when I make other scripts too if someone can find what is going wrong.

Danical
05-23-2011, 04:36 PM
Use the ID method and use left/right if deciding between wand/rod or even checkleft/checkright.



GameObj.npcs.each { |mob|
if mob.status != "dead"
put "wave my wand at ##{mob.id}"
end
}


NEG REP: Are you just temp banned for afk scripting? Or did you really quit :P

Don't be a fucking coward; post like you got a pair, champ. Also, I would have no reason to sell off my items, as I did, if I was temp banned and wouldn't have been able to if I was perma-banned. Please employ more intelligence when using the interwebs, and less emoticons.

vamosj
05-23-2011, 06:20 PM
That's Ruby scripting right? I was trying to accomplish this using SF script. I will have to learn Ruby if it can only be done in that then.

Danical
05-23-2011, 06:41 PM
I would have stopped playing GS in 2004/5 if Murray didn't create and make Lich public.

vamosj
05-23-2011, 06:48 PM
Once I was able to get it working (issue on my end) I have pretty much fallen in love with the lich project. Before then I had to make all my own scripts and even that it was few and far between on what I would actually sit down and make for such things as travel...

Tgo01
05-23-2011, 07:06 PM
Been a while since I've written a script but I think you need to put LOOK: right above the 'put look' part in your script and add 'goto look' after both the save rod and save wand parts otherwise if you match ROD first it will keep running and run the 'save wand' part before moving onto the 'put look' part.

I've never used the save command so I'm not sure what's wrong with that. Instead of 'save rod' and 'save wand' you could try 'setvariable weapon rod' and 'setvariable weapon wand' (change 'weapon' to whatever you want to name the variable.) Then just change 'put wave %s at' to 'put wave %weapon at.'

vamosj
05-23-2011, 07:57 PM
Been a while since I've written a script but I think you need to put LOOK: right above the 'put look' part in your script and add 'goto look' after both the save rod and save wand parts otherwise if you match ROD first it will keep running and run the 'save wand' part before moving onto the 'put look' part.

I've never used the save command so I'm not sure what's wrong with that. Instead of 'save rod' and 'save wand' you could try 'setvariable weapon rod' and 'setvariable weapon wand' (change 'weapon' to whatever you want to name the variable.) Then just change 'put wave %s at' to 'put wave %weapon at.'


Could you give me an example? I'm having a little difficulty following what you are saying. Use that top part of mine and show me please..


:thanx:

vamosj
05-23-2011, 08:43 PM
Well it looks like someone may have given me a solution to all my problems... "WAVE LEFT" seems to do the trick. Least it did outside. Will have to go try it in a warcamp with others now.

Tgo01
05-23-2011, 08:46 PM
Could you give me an example? I'm having a little difficulty following what you are saying. Use that top part of mine and show me please..


:thanx:

Bah more work?

put inventory hands
match ROD rod
match WAND wand
matchwait

ROD:
setvariable weapon rod
goto look

WAND:
setvariable weapon wand
goto look

look:
put look
match CLE Cleric

CLE:
put wave %weapon at cleric
exit


Well it looks like someone may have given me a solution to all my problems... "WAVE LEFT" seems to do the trick. Least it did outside. Will have to go try it in a warcamp with others now.

Well yeah if you want to do things the easy way, but what fun is there in that?

vamosj
05-24-2011, 12:58 AM
Well I will use the Wave Left verb but I will use your example in the future... Thank you.