did you already add the ints to player.java and playerSave.java?
|
im trying to make my switch code require quest1 done to use it what do i need to add to this code for that to work
do i add something likeCode:if (playerCommand.equalsIgnoreCase("switch")) { if(c.playerMagicBook == 1) { c.sendMessage("You switch to modern magic."); c.setSidebarInterface(6, 1151); c.playerMagicBook = 0; } else { c.sendMessage("You switch to ancient magic."); c.setSidebarInterface(6, 12855); c.playerMagicBook = 1; } } }
for it to work please help?Code:quest1 = 15;
did you already add the ints to player.java and playerSave.java?
There you go.Code:if (playerCommand.equalsIgnoreCase("switch")) { if(quest1 == 15) { if(c.playerMagicBook == 1) { c.sendMessage("You switch to modern magic."); c.setSidebarInterface(6, 1151); c.playerMagicBook = 0; } else { c.sendMessage("You switch to ancient magic."); c.setSidebarInterface(6, 12855); c.playerMagicBook = 1; } } else { c.sendMessage("You need to complet Desert Treasure before you can do this!"); } } }
i get this error]
.\server\model\players\packets\Commands.java:159: cannot find symbol
symbol : variable quest1
location: class server.model.players.packets.Commands
if(quest1 == 15) {
^
1 error
Press any key to continue . . .
go into player.java and add inthen just add in the saving methodsCode:public int quest1;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |