Thread: [EMULOUS]Spellbook switching Command.

Results 1 to 4 of 4
  1. #1 [EMULOUS]Spellbook switching Command. 
    Super Donator
    Haskell Curry's Avatar
    Join Date
    Nov 2009
    Posts
    850
    Thanks given
    602
    Thanks received
    247
    Rep Power
    0
    I'd like someone to tell me why this code, won't switch the spellbook on a Emulous Server:

    Code:
                    if(c.playerMagicBook == 2) {
                        c.sendMessage("You switch to modern magic.");
                        c.setSidebarInterface(6, 1151);
                        c.playerMagicBook = 0;
                    } else if(c.playerMagicBook == 0) {
                        c.sendMessage("You switch to ancient magic.");
                        c.setSidebarInterface(6, 12855);
                        c.playerMagicBook = 1;
                    } else if(c.playerMagicBook == 1) {
                        c.sendMessage("You switch to lunar magic.");
                        c.setSidebarInterface(6, 29999);
                        c.playerMagicBook = 2;
                    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Purple's Avatar
    Join Date
    Feb 2010
    Age
    29
    Posts
    2,799
    Thanks given
    467
    Thanks received
    260
    Rep Power
    312
    if(playerMagicBook == 0) {
    setSidebarInterface(6, 1151); //modern
    } else if(playerMagicBook == 1) {
    setSidebarInterface(6, 12855); // ancient
    } else {
    setSideBarInterface(6, 29999) //lunar
    }

    This one should work.
    Reply With Quote  
     

  3. #3  
    Super Donator
    Haskell Curry's Avatar
    Join Date
    Nov 2009
    Posts
    850
    Thanks given
    602
    Thanks received
    247
    Rep Power
    0
    Nope doesn't work.
    Reply With Quote  
     

  4. #4  
    Super Donator
    Haskell Curry's Avatar
    Join Date
    Nov 2009
    Posts
    850
    Thanks given
    602
    Thanks received
    247
    Rep Power
    0
    Bump, still need help.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Altar SpellBook Switching [PI]
    By Kickyamom in forum Help
    Replies: 8
    Last Post: 11-24-2010, 02:09 AM
  2. Emulous command help
    By The Turk in forum Help
    Replies: 4
    Last Post: 12-25-2009, 12:34 PM
  3. emulous command help
    By .Chris in forum Help
    Replies: 0
    Last Post: 06-28-2009, 11:16 PM
  4. Npc command for Emulous 1.7!
    By minutes in forum Snippets
    Replies: 6
    Last Post: 06-01-2009, 02:33 AM
  5. Emulous Ban command
    By Core in forum Snippets
    Replies: 12
    Last Post: 02-22-2009, 01:56 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •