TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Alias too big?

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
ryan0_o



Joined: 01 Mar 2010
Posts: 171

PostPosted: Fri Apr 16, 2010 5:07 pm    Post subject: Alias too big? Reply with quote

Code:

#alias {bot}
{
   #if {"%1" == ""}
   {
      #showme SYNTAX: bot;
      #showme - spells  (This does all your buff, e.g. armor, shield, sanctuary);
      #showme - refresh;
      #showme - portal;
      #showme - word of recall;
      #showme - teleport;
   };
   #if {"%0" != "" && "%0" != "%i{spells|refresh|portal|word of recall|word|word of|shield|stone|armor|dispel|dispel magic|detect hidden|locate person}"}
   {
      #showme SYNTAX: bot;
      #showme - spells  (This does all your buff, e.g. armor, shield, sanctuary);
      #showme - refresh;
      #showme - portal;
      #showme - word of recall;
      #showme - teleport;
   };
   #if {"%0" == "%i{spells}" && $bot_spells == 0}
   {
      #var bot_spells 1;
      #showme <107>SPELL BOTTING - ON<099>;
   };
   #elseif {"%0" == "%i{spells}" && $bot_spells == 1}
   {
      #var bot_spells 0;
      #showme <107>SPELL BOTTING - OFF;
   };
   #if {"%0" == "%i{refresh}" && $bot_refresh == 0}
   {
      #var bot_refresh 1;
      #showme <174> BOT > REFRESH: <172> ON <099>
   };
   #elseif {"%0" == "%i{refresh}" && $bot_refresh == 1}
   {
      #var bot_refresh 0;
      #showme <174> BOT > REFRESH: <171> OFF <099>
   };
   #if {"%" == "%i{portal}" && $bot_portal == 0}
   {
      #var bot_portal 1;
      #showme <174> BOT > PORTAL: <172> ON <099>;
   };
   #elseif {"%0" == "%i{portal}" && $bot_portal == 1}
   {
      #var bot_portal 0;
      #showme <174> BOT > PORTAL: <171> OFF <099>;
   };
   #if {"%0" == "%i{teleport}" && $bot_teleport == 0}
   {
      #var bot_teleport 1;
      #showme <174> BOT > TELEPORT: <172> ON <099>;
   };
   #elseif {"%0" == "%i{teleport}" && $bot_teleport == 1}
   {
      #var bot_teleport 0;
      #showme <174> BOT > TELEPORT: <171> OFF <099>;
   };
   #if {"%0" == "%i{word|word of|word of recall}" && bot_word == 0}
   {
      #var bot_word 1;
      #showme <174> BOT > WORD: <172> ON <099>;
   };
   #elseif {"%0" == "%i{word|word of|word of recall}" && $bot_word == 1}
   {
      #var bot_word 0;
      #showme <174> BOT > WORD: <171> OFF <099>;
   };
   #if {"%0" == "%i{armor}" && $bot_armor == 0}
   {
   #var bot_armor 1;
   #showme <174> BOT > ARMOR: <172> ON <099>;
   };
   #elseif {"%0" == "%i{armor}" && $bot_armor == 1}
   {
   #var bot_armor 0;
   #showme <174> BOT > ARMOR: <171> OFF <099>;
   };
   #if {"%0" == "%i{shield}" && $bot_shield == 0}
   {
   #var bot_shield 1;
   #showme <174> BOT > SHIELD: <172> ON <099>;
   };
   #elseif {"%0" == "%i{shield}" && $bot_shield == 1}
   {
   #var bot_shield 0;
   #showme <174> BOT > SHIELD: <171> OFF <099>
   };
   #if {"%0" == "%i{stone|stone skin}" && $bot_stone == 0}
   {
      #var bot_stone 1;
      #showme <174> BOT > STONE: <172> ON <099>
   };
   #elseif {"%0" == "%i{stone|stone skin}" && $bot_stone == 1}
   {
      #var bot_stone 0;
      #showme <174> BOT > STONE: <171> OFF <099>
   };
   #if {"%0" == "%i{dispel|dispel magic}" && $bot_dispel == 0}
   {
      #var bot_dispel 1;
      #showme <174> BOT > STONE: <172> ON <099>;
   };
   #elseif {"%0" == "%i{dispel|dispel magic}" && $bot_dispel == 1}
   {
      #var bot_dispel 0;
      #showme <174> BOT > STONE: <171> OFF <099>
   };
   #if {"%0" == "%i{detect hidden}" && $bot_deth == 0}
   {
      #var bot_deth 1;
      #showme {<174> BOT > DETECT HIDDEN: <172> ON <099>} {-1}
   };
   #elseif {"%0" == "%i{detect hidden}" && $bot_deth == 1}
   {
      #var bot_deth 0;
      #showme {<174> BOT > DETECT HIDDEN: <171> OFF <099>} {-1}
   };
   #if {"%0" == "%i{locate person}" && $bot_locp == 0}
   {
      #var bot_locp 1;
      #showme {<174> BOT > LOCATE PERSON: <172> ON <099>} {-1}
   };
   #elseif {"%0" == "%i{locate person}" && $bot_locp == 1}
   {
      #var bot_locp 0;
      #showme {<174> BOT > LOCATE PERSON: <171> OFF <099>} {-1}
   };
   #if {"%0} == "%i{chain|chain lightning}" && $bot_chain == 0}
   {
   #var bot_chain 1;
   #showme {<174> BOT > CHAIN LIGHTNING: <172> ON <099>} {-1}
   };
   #elseif {"%0} == "%i{chain|chain lightning}" && $bot_chain == 1}
   {
   #var bot_chain 0;
   #showme {<174> BOT > CHAIN LIGHTNING: <171> OFF <099>} {-1}
   }
}


When I try to read my script, it tells me I am missing 2 '{' in this alias.
I'm fairly positive I am not missing two '{'. So is my alias too big? Or is there another culprit perhaps?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Fri Apr 16, 2010 5:20 pm    Post subject: Reply with quote

Code:

#if {"%0} == "%i{chain|chain lightning}" && $bot_chain == 0}

Should be #if {"%0" rather than #if {"%0}

Same for the elseif check following it.
Back to top
View user's profile Send private message Send e-mail
ryan0_o



Joined: 01 Mar 2010
Posts: 171

PostPosted: Fri Apr 16, 2010 6:48 pm    Post subject: Reply with quote

Yeah I tried to delete this, but you replied too fast ;P
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group