Thread: teleing from castle wars game

Results 1 to 4 of 4
  1. #1 teleing from castle wars game 
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    how would i stop people from using the magic book to tele out of castle wars game and kill everyone
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jun 2011
    Posts
    2,549
    Thanks given
    539
    Thanks received
    402
    Rep Power
    683
    Code:
    if (c.inCastleWars()) {
    c.sendMessage("You can't teleport in the middle of a Castle Wars game!")
    return;
    }
    Add that under your teleporting restrictions, or something like that, make sure you replace inCastleWars with whatever your variable is named.
    All the best,
    Nirvana

    Reply With Quote  
     

  3. #3  
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    Quote Originally Posted by Valedictorian View Post
    Code:
    if (c.inCastleWars()) {
    c.sendMessage("You can't teleport in the middle of a Castle Wars game!")
    return;
    }
    Add that under your teleporting restrictions, or something like that, make sure you replace inCastleWars with whatever your variable is named.
    mine is (c.inCw())
    im just not too sure where exactly my teleporting restrictions are v_v
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Jun 2011
    Posts
    2,549
    Thanks given
    539
    Thanks received
    402
    Rep Power
    683
    Quote Originally Posted by Pastaway View Post
    mine is (c.inCw())
    im just not too sure where exactly my teleporting restrictions are v_v
    Check your PlayerAssistant class and CastleWars class, add

    Code:
    if (c.inCw)) {
    c.sendMessage("You can't teleport in the middle of a Castle Wars game!")
    return;
    }
    There you go.

    ------------

    Open PlayerAssistant and search for

    Code:
    Teleporting
    you should see

    Code:
    if(c.inWild() && c.wildLevel > Config.NO_TELEPORT_WILD_LEVEL) {
    			c.sendMessage("You can't teleport above level "+Config.NO_TELEPORT_WILD_LEVEL+" in the wilderness.");
    			return;
    		}
    Above or under that, add

    Code:
    if (c.inCw)) {
    c.sendMessage("You can't teleport in the middle of a Castle Wars game!")
    return;
    }
    All the best,
    Nirvana

    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] Castle Wars End Game Timer [pi]
    By Usaclub in forum Help
    Replies: 6
    Last Post: 03-07-2011, 12:52 AM
  2. Castle Wars Time until next game please :)
    By Ultimate in forum Configuration
    Replies: 5
    Last Post: 06-23-2009, 02:19 PM
  3. My mini game / Castle wars
    By Bruno in forum Tutorials
    Replies: 31
    Last Post: 05-25-2008, 04:24 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
  •