mIRC Home    About    Download    Register    News    Help

Topic Options
#185292 - 07/09/07 07:56 PM Menu
Glibber Offline
Pikka bird

Registered: 06/10/05
Posts: 10
hep hey


menu channel {
# Other stuff
.Add User:/msg $chan !provadd $$?="Nick::" $$?="Province Name": [$$?="Race:" $$?="Personality:"]
# Other stuff
}

above dont work, for reasons i dont know:P (guess i wouldn't be posting if I did:P)

THe purpose is to get 4 popups where you enter stuff and after that you msg it to the channel where it ads the format to a bot

4 popups, Nick - Province Name - Race - Personality
in that particular order and the output should look like

!provadd Nick Province Name [Race:Personality]
in the channel where its used



Top
#185293 - 07/09/07 08:07 PM Re: Menu [Re: Glibber]
Lpfix5 Offline
Hoopy frood

Registered: 10/08/05
Posts: 1052
Loc: Canada
your problem is witht he [ ] and : near your commands

use

$+([,$$?="Race:") $+($$?="Personality:",]) for the race personalility part

and use

$+($$?="Province Name",:) for the province name part smile

errors are...


$$?="Province Name": [$$?="Race:" $$?="Personality:"]

red pieces are to close to cmds

_________________________
Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Top
#185295 - 07/09/07 08:47 PM Re: Menu [Re: Lpfix5]
Glibber Offline
Pikka bird

Registered: 06/10/05
Posts: 10
missing the : between race & personality =)?

or?

Top
#185297 - 08/09/07 12:37 AM Re: Menu [Re: Glibber]
Masterkiller Offline
Pikka bird

Registered: 14/05/07
Posts: 10
The script evaluate the characters : and [ ] (the first is delimiter between menu name and command, the second is (or are) evaluation brackets that evaluate any text between then as a script). One way to fix the problem is to do it as the post above. The second way is to use $chr() to write this characters without being evaluated as a sctipt. Example:

Code:
menu channel {
  # Other stuff
  .Add User:/msg $chan !provadd $$?="Nick::" $$?="Province Name" $+ $chr(58) $chr(91) $+ $$?="Race:" $$?="Personality:" $+ $chr(93)
  # Other stuff
}


$chr(58) returns :
$chr(91) returns [
$chr(93) returns ]


Edited by Masterkiller (08/09/07 12:38 AM)

Top
#185331 - 08/09/07 07:24 PM Re: Menu [Re: Masterkiller]
Glibber Offline
Pikka bird

Registered: 06/10/05
Posts: 10
yep it worked with your way Masterkiller

edited it abit

Code:
.Add User:/msg $chan !provadd $$?="Nick::" $$?="Province Name::" $chr(91) $+ $$?="Race:" $+ $chr(58) $+ $$?="Personality:" $+ $chr(93)


however, the pops come in this order:
Nick Race Personality Province Name, where it should be Nick - Province Name - Race - Personality

Top
#185390 - 09/09/07 03:36 AM Re: Menu [Re: Glibber]
Lpfix5 Offline
Hoopy frood

Registered: 10/08/05
Posts: 1052
Loc: Canada
Originally Posted By: Glibber
missing the : between race & personality =)?

or?


no your missing a space between your command HERE$$?="whtever"HERE should be HERE $$?="whatever" HERE like that but if you want it to appear squashed togheter then either do this

HERE $+ $$?="whatevver" $+ HERE

or

$+(here,$$?="whatever",here) is the same.
_________________________
Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Top