Thread: help with emulous

Results 1 to 5 of 5
  1. #1 help with emulous 
    Remember The Name
    .Chris's Avatar
    Join Date
    May 2009
    Posts
    346
    Thanks given
    9
    Thanks received
    32
    Rep Power
    460
    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

    Code:
    			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;
    				}
    			}
    			
    			
    		}
    do i add something like

    Code:
    quest1  =  15;
    for it to work please help?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    did you already add the ints to player.java and playerSave.java?

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2008
    Posts
    110
    Thanks given
    0
    Thanks received
    2
    Rep Power
    64
    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!");
    		}
    	}
    }
    There you go.
    Reply With Quote  
     

  4. #4  
    Remember The Name
    .Chris's Avatar
    Join Date
    May 2009
    Posts
    346
    Thanks given
    9
    Thanks received
    32
    Rep Power
    460
    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 . . .
    Reply With Quote  
     

  5. #5  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    go into player.java and add in
    Code:
    public int quest1;
    then just add in the saving methods

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •