PDA

View Full Version : /nickname help?


Shihan
02-06-2007, 10:31 AM
I'm trying to use a nickname for my current 'item nuke'. Basically I keep a staff w/ the best DPS nuke in my inventory ( or wielded ) so I can alternate using it between spell casts.

I understand that I can do:
/itemuse "Xexias' Gavel"
before every cast in my hotkeys but what I want to do is have a nickname 'wpn' for the item so I could do something like this:

/nickname wpn Xexias' Gavel

Now in all of my spell macros I want to be able to do this:
/itemuse wpn
/cast "Some Spell IV"

This way when I get a new weapon to substitute I can just change the nickname association.

HERE ARE THE PROBLEMS

1) Apparently my 'wpn' nickname is not being expanded in the /itemuse command. Is this due to the ' in the name? I have tried with the ""'s around the name and without so this isn't the issue either.
2) If I'm currently WIELDING my staff ( the Gavel ) then I cannot use the /itemuse command even when I spell out the name. As soon as I unwield the same command will suddenly find the item. Basically /itemuse is ONLY for inventory... so what can I use for an item that's wielded?

Any help would be greatly appreciated.

BTW, is there a forum for scripting info at all?

Thanks!

unst4blec0d3r
02-06-2007, 02:56 PM
I'm trying to use a nickname for my current 'item nuke'. Basically I keep a staff w/ the best DPS nuke in my inventory ( or wielded ) so I can alternate using it between spell casts.

I understand that I can do:
/itemuse "Xexias' Gavel"
before every cast in my hotkeys but what I want to do is have a nickname 'wpn' for the item so I could do something like this:

/nickname wpn Xexias' Gavel

Now in all of my spell macros I want to be able to do this:
/itemuse wpn
/cast "Some Spell IV"

This way when I get a new weapon to substitute I can just change the nickname association.

HERE ARE THE PROBLEMS

1) Apparently my 'wpn' nickname is not being expanded in the /itemuse command. Is this due to the ' in the name? I have tried with the ""'s around the name and without so this isn't the issue either.
2) If I'm currently WIELDING my staff ( the Gavel ) then I cannot use the /itemuse command even when I spell out the name. As soon as I unwield the same command will suddenly find the item. Basically /itemuse is ONLY for inventory... so what can I use for an item that's wielded?

Any help would be greatly appreciated.

BTW, is there a forum for scripting info at all?

Thanks!

The only example I saw of the nickname was being used for a player. So if somebodies name was Zhackmafrazanaf, you could nickname him to Zhack to be easier to whisper. But I could be and am known to be totally wrong.

Shihan
02-06-2007, 03:04 PM
The only example I saw of the nickname was being used for a player. So if somebodies name was Zhackmafrazanaf, you could nickname him to Zhack to be easier to whisper. But I could be and am known to be totally wrong.



Yeah that wouldn't surprise me to be the case. I hope, however, that they will simply expand this functionality to all macros. It would be VERY simple to add in the 1 line of code to make the call ( I'm sure it's a simple 1 line function call: str = ExpandNickname( str ) where ExpandNickname would simply return the same value if a valid nickname doesn't exist.... very simple.

I wish I knew who to talk to in this as it would be a 15 minute implementation ( or less if their code is modulized enough ).