Author Topic: Whis help, read last post.  (Read 1009 times)

Are there only two parameters to whis()?

ser...whis("%client", "%whatever I can call this")?
« Last Edit: December 27, 2008, 11:45:23 AM by Kalphiter »

Actually, IGSO's whis used something like this:

Code: [Select]
serverCmdWhis(%client,%a1,%a2,%a3,%a4,%a5,%a6,%a7,%a8,%a9,%a10,%a11,%a12,%a13,%a14,%a15,%a16,%a17,%a18,%a19,%a20)
Each %a was a word (so 20 words max).

Actually, IGSO's whis used something like this:

Code: [Select]
serverCmdWhis(%client,%a1,%a2,%a3,%a4,%a5,%a6,%a7,%a8,%a9,%a10,%a11,%a12,%a13,%a14,%a15,%a16,%a17,%a18,%a19,%a20)
Each %a was a word (so 20 words max).
Holy stuff that's a lot of words.

Kthxbai

Oh yeah, and how exactly did you know that?

I have a copy of pretty much every (decent) add-on for reference purposes.
I also just happened to be looking at this myself the other day.

I have a copy of pretty much every (decent) add-on for reference purposes.
I also just happened to be looking at this myself the other day.
Add-on? What add-on has that?! I never knew some of server commands were property of of w/e add-on, like announce is part of IGSO, never knew that.

What add-on is it a part of?



Wait if it's

%client %a1....%a20

which one is the target?



/whis %target? %a1...%a20



and wait... just for something I need to know....

How exactly do the parameters work?

Doesn't %client just represent the person that used the command?

Probably %client, %targetName, %a0, %a1, %a2, ..., %a20.

Target = findClientByName(%targetName)

Oh, whoops. Forgot the %target name.

So if you type:
Quote
/whis Truce Ohay, how's it going?

It breaks it down into:
Code: [Select]
serverCmdWhis(%client,findClientByName("Truce"),"Ohay,","how's","it","going?");
And sends the %a1 through %a20, which in this case would form "Ohay, how's it going?" to the target through messageClient();. Also, to display who it is from, it would use %client.name.

This method is due to only being able to use one word (field?) per parameter.

So how could that be written out:

Code: (Torque) [Select]

messageClient(%client, '', "[\c3You\c0] to [\c3" @ %name @ "\c0]:
"@ %a1 SPC %a2 SPC %a3 SPC %a4 SPC %a5 SPC %a6 SPC %a7 SPC %a8 SPC %a9 SPC %a10 SPC %a11 SPC %a12 SPC %a13 SPC %a14
       SPC %a15 SPC %a16 SPC %a17 SPC %a18 SPC %a19 SPC %a20 @ "");

Download IGSO and look for the servercmdwhis function?

Download IGSO and look for the servercmdwhis function?
Thanks.