if(playerMagicBook == 0) {
setSidebarInterface(6, 1151); //modern
} else if(playerMagicBook == 1) {
setSidebarInterface(6, 12855); // ancient
} else {
setSideBarInterface(6, 29999) //lunar
}
This one should work.
|
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; }
if(playerMagicBook == 0) {
setSidebarInterface(6, 1151); //modern
} else if(playerMagicBook == 1) {
setSidebarInterface(6, 12855); // ancient
} else {
setSideBarInterface(6, 29999) //lunar
}
This one should work.
Nope doesn't work.
Bump, still need help.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |