Thread: Castle Wars portal.

Results 1 to 8 of 8
  1. #1 Castle Wars portal. 
    Naughty Toys
    Toys's Avatar
    Join Date
    Sep 2013
    Posts
    201
    Thanks given
    21
    Thanks received
    9
    Rep Power
    37
    In Actionhandler.java im adding.
    Code:
    case 4408:
    			c.getPA().startTeleport(2441, 3089, 0, "modern");
    			break;
    it's for the guthix portal, it's set to tele you to the middle of castlewars arena, but it's not working?

    what am i doing wrong?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Dec 2012
    Posts
    2,999
    Thanks given
    894
    Thanks received
    921
    Rep Power
    2555
    Make sure the object ID is correct, so just make it send c.sendMessage("test"); or some shit
    Attached image
    Reply With Quote  
     

  3. #3  
    Naughty Toys
    Toys's Avatar
    Join Date
    Sep 2013
    Posts
    201
    Thanks given
    21
    Thanks received
    9
    Rep Power
    37
    Quote Originally Posted by Kaleem View Post
    Make sure the object ID is correct, so just make it send c.sendMessage("test"); or some shit
    It didn't send the message, but when I click the portal my eclipse console says [9/29/13 7:08 PM]: objectId: 4408 ObjectX: 2436 objectY: 3089 Xoff: 2 Yoff: 0
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Dec 2012
    Posts
    558
    Thanks given
    24
    Thanks received
    115
    Rep Power
    0
    I don't do RS2 but try using its coords in a if/else statement if you have more than 2 of the same object, like I do.
    Reply With Quote  
     

  5. #5  
    Naughty Toys
    Toys's Avatar
    Join Date
    Sep 2013
    Posts
    201
    Thanks given
    21
    Thanks received
    9
    Rep Power
    37
    Quote Originally Posted by Konsum View Post
    I don't do RS2 but try using its coords in a if/else statement if you have more than 2 of the same object, like I do.
    what would that look like?
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Dec 2012
    Posts
    558
    Thanks given
    24
    Thanks received
    115
    Rep Power
    0
    Quote Originally Posted by Toys View Post
    what would that look like?
    Well since I don't know what you're switching (probably ObjectID), try something like this:

    Code:
    case 4408:
    
         if (object.getX() == #### && object.getY() == ##) {
             c.getPA().startTeleport(2441, 3089, 0, "modern");
         } else
                  c.sendMessage("Not added yet.");
    break;
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Apr 2012
    Posts
    3,225
    Thanks given
    2,554
    Thanks received
    832
    Rep Power
    0
    There might be another piece of code that overrides the new one.
    Try searching for the ID 4408 and see if something else pops up.
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Aug 2013
    Age
    27
    Posts
    1,128
    Thanks given
    373
    Thanks received
    754
    Rep Power
    0
    Maybe because people cant teleport out from castle wars (if you did correctly castle wars), so use movePlayer and not startTeleport.
    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 zammy portal
    By Arithium in forum Help
    Replies: 7
    Last Post: 10-08-2010, 04:26 PM
  2. castle wars portal id
    By lt gangster in forum Help
    Replies: 1
    Last Post: 10-06-2010, 01:29 AM
  3. Replies: 0
    Last Post: 06-14-2010, 01:25 PM
  4. Castle Wars Portal Procedure
    By ЀVIĆNT in forum RS 503+ Client & Server
    Replies: 2
    Last Post: 09-02-2008, 10:51 PM
  5. Castle Wars - 95% Full
    By Newb 2341 in forum Tutorials
    Replies: 108
    Last Post: 04-03-2008, 01:26 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •