Thread: {delta} delta teleport fix

Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11  
    Extreme Donator


    Join Date
    Mar 2009
    Age
    26
    Posts
    954
    Thanks given
    25
    Thanks received
    15
    Rep Power
    213
    Quote Originally Posted by A nipple View Post
    Replace your command with this

    Code:
    if(command.startsWith("home")&& playerRights >= 2)
    ToX = 3211;
    ToY = 3423;
    sM("you teleport home");
    sM("home sweet home");
    }
    What's wrong is that the teleport and send message are different, also (i don't know if this is relevant) the "command.equalsIgnoreCase" needs to be "command.startsWith"

    Hope this helped & hopefully it works lol
    Code:
    if(command.equalsIgnoreCase("home")&& playerRights >= 2) {
    ToX = 3211;
    ToY = 3423;
    sM("you teleport home");
    sM("home sweet home");
    }
    (you forgotz the "{")

    why do people use "startsWith", "startsWith" is for commands like pickup that need something else after that main command word. "equalsIgnoreCase" is for commands that only need that word for the command to work like "home". also if you use "startsWith" you might do type-o and put "Home" and look what happens NOTHING.

    sorry for this stupid thing, but seriously.
    Reply With Quote  
     

  2. #12  
    Registered Member
    Arizona's Avatar
    Join Date
    May 2009
    Age
    26
    Posts
    275
    Thanks given
    11
    Thanks received
    12
    Rep Power
    113
    is it rlly that hard?

    lowercase.
    Code:
    if(command.startsWith("home")&& playerRights >= 2)
    toX = 3211;
    toY = 3423;
    sM("You teleport home");
    sM("home sweet home");
    }
    TRUETECH LOL:
    Spoiler for Rofl:
    Reply With Quote  
     

  3. #13  
    Extreme Donator


    Join Date
    Mar 2009
    Age
    26
    Posts
    954
    Thanks given
    25
    Thanks received
    15
    Rep Power
    213
    why are people forgetting the ' { ' your giving him 100 errors.

    last post as its all be figured out in 12 posts...
    Reply With Quote  
     

  4. #14  
    Member
    Join Date
    Aug 2009
    Posts
    26
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Wow. Nothing is wrong with Delta. Learn to code, Cortney.
    working on A Lost Red Ball.
    look for in the iOS store soon.
    Reply With Quote  
     

  5. #15  
    Registered Member Queer's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    781
    Thanks given
    210
    Thanks received
    33
    Rep Power
    33
    Quote Originally Posted by Courtney View Post
    Okay listen, And listen CLOSELY!, Delta is the worst source on the internet. It has so many bugs and glitches and so unstable many people will log on your server and say "danm it another fucking delta source". Find a cleaned version of czar and code that. I did it and my server is stable and no lag.
    stfu ez
    Reply With Quote  
     

  6. #16  
    Fuck yeah!
    Mergim's Avatar
    Join Date
    May 2009
    Age
    28
    Posts
    2,309
    Thanks given
    218
    Thanks received
    187
    Rep Power
    1619
    Code:
    if(command.equalsIgnoreCase("home")&& playerRights >= 2)
    teleportToX = 3211;
    teleportToY = 3423;
    sendMessage("you teleport home");
    sendMessage("home sweet home");
    }
    Delta uses sM instead of sendMessage.

    And delta doesnt use;
    Code:
    teleportToX = 3211;
    teleportToY = 3423;
    They use
    Code:
    ToX = 3211;
    ToY = 3423;
    Reply With Quote  
     

  7. #17  
    Diamond League Player

    Mr James's Avatar
    Join Date
    Jan 2009
    Age
    25
    Posts
    493
    Thanks given
    4
    Thanks received
    8
    Discord
    View profile
    Rep Power
    372
    Quote Originally Posted by wind444 View Post
    well on my delta scape source. in client.java when i put in correct ints for a home teleport there is a error. this is what i put it in

    so i dont knw whats wrong so if you could help that woold be cool thx
    Delta uses sM

    not sendMessage
    Quote Originally Posted by Nathan View Post
    So if you stabbed somebody with a knife you would say "not my fault, blame the inventors of the knife" ?
    Reply With Quote  
     

  8. #18  
    Registered Member Ikea4Life's Avatar
    Join Date
    Aug 2009
    Posts
    200
    Thanks given
    87
    Thanks received
    4
    Rep Power
    46
    Try this:

    Code:
    if(command.equalsIgnoreCase("home")&& playerRights >= 2) {
    ToX = 3211;
    ToY = 3423;
    sM("You teleport home");
    sM("Home sweet home");
    }
    Reply With Quote  
     

  9. #19  
    Banned

    Join Date
    Sep 2009
    Posts
    85
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Code:
    if(command.equalsIgnoreCase("home")&& playerRights >= 2) {
    triggerTele(3211, 3423, 0);
    resetfollowers();
    followID = 0;
    followID2 = 0;
    sM("You teleport home");
    sM("Home sweet home");
    }
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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
  •