----- Original Message ----- From: "Bejhan Jetha" <nhlstar6@YAHOO.COM> > Is the actual code but I want level 91+ to recall to 1203 for free and > level 99 to recall to room 503 for free... Here's a code I tried and didn't > work, what am I doing wrong?: > > ACMD(do_recall) > { > extern sh_int r_mortal_start_room; > > if (IS_NPC(ch)) { > send_to_char("Monsters can't recall!!\r\n", ch); > return; > } > if (GET_LEVEL(ch) <= 10) { > send_to_char("Recalling for FREE, courtesy of Newbie > Transportation...\r\n", ch); <snip of working code>> return; > } - else (GET_LEVEL(ch) >= 91) { + else if ((GET_LEVEL(ch) >= 91) && (GET_LEVEL(ch) < 99)) { > send_to_char("Recalling for FREE, courtesy of Immortal > Transportation...\r\n", ch); <snip of working code> > return; > } - else (GET_LEVEL(ch) = 99) { + else if (GET_LEVEL(ch) = 99) { > send_to_char("Recalling for FREE, courtesy of Chaos...\r\n", ch); <snip of working code> > return; > } > else { > send_to_char("Recalling for 200 gold per level...\r\n", ch); <snip of working code> > return; > } > } > } > I assume you've assigned r_1203 and r_503 just like r_mortal_start_room, etc. Welcor -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT