Thread: Teleporting

Results 1 to 6 of 6
  1. #1 Teleporting 
    Registered Member Glabay's Avatar
    Join Date
    Jul 2008
    Age
    33
    Posts
    1,301
    Thanks given
    261
    Thanks received
    105
    Rep Power
    595
    hey this is just for the people out there that want the teleporting like in the 508 server's

    you know emote, and gfx, then tele end with gfx, and emote


    Code:
    	    public int teleX = -1;
    	    public int teleY = -1;
    	    public int teleDelay = -1;
    	    public int teleFinishGFX = 0;
    	    public int teleFinishAnim = 0;
    	    public int teleportToX = -1;
    	    public int teleportToY = -1;
    	    public int clickDelay = -1;

    method

    Code:
    	/**
    	 * Teleporting by Glabay of Rune-Server
    	 * Riped from Boneyard508
    	 * boneyard.servegame.com
    	 */
    	public void teleportTo(int x, int y, int height, int delay, int distance, int emoteStart, int emoteEnd, int gfxStart, int gfxEnd) {
    	clickDelay = delay + 2;
            teleDelay = delay;
            toX = x;
            toY = y;
            heightLevel = height;
            setAnimation(emoteStart);
            specGFX(gfxStart);
            teleFinishGFX = gfxEnd;
            teleFinishAnim = emoteEnd;
        }
    and if you don't have this

    Code:
        public void setCoords(int x, int y, int height) {
            teleportToX = x;
            teleportToY = y;
            heightLevel = height;
            didTeleport = true;
        }


    Timers in Process

    Code:
    	/*
    	 * Teleporting timers by GLabay of Rune-Server
    	 */
        if (teleDelay == 0) {
            teleDelay = -1;
            setCoords(toX, toY, heightLevel);
            setAnimation(teleFinishAnim);
            specGFX(teleFinishGFX);
            toX = toY = -1;
        }
        if (teleDelay > 0) {
            teleDelay--;
        }
    	// END OF Glabay's Timers

    useage command

    Code:
    		if (cmd[0].equals("lumby")) {
    			c.teleportTo(3221, 3219, 0, 4, 0, EMOTE1, EMOTE2, GFX1, GFX2);
    		}

    post errors if any I will fix
    PI * 13.37 = 42
    Attached image
    Attached image
    Reply With Quote  
     

  2. #2  
    Registered Member
    minutes's Avatar
    Join Date
    Apr 2008
    Posts
    1,926
    Thanks given
    2
    Thanks received
    19
    Rep Power
    465
    heh you made this for me and now you realse this nice job



    click banner to join gtracer!
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    May 2008
    Posts
    2,327
    Thanks given
    55
    Thanks received
    67
    Rep Power
    0
    cmd[0].equals
    isnt that 508+?

    shuld it be like
    command.startsWith or... command.equalsIgnoreCase
    Reply With Quote  
     

  4. #4  
    Registered Member
    Jammy780's Avatar
    Join Date
    May 2008
    Posts
    1,319
    Thanks given
    13
    Thanks received
    47
    Rep Power
    619
    Quote Originally Posted by silabgarza View Post
    isnt that 508+?

    shuld it be like
    command.startsWith or... command.equalsIgnoreCase
    I think you might be right.
    Reply With Quote  
     

  5. #5  
    Registered Member Glabay's Avatar
    Join Date
    Jul 2008
    Age
    33
    Posts
    1,301
    Thanks given
    261
    Thanks received
    105
    Rep Power
    595
    lmao, you can make them what ever you want to, I have been useing my 508 for so long and got so used to it, that I made my 317 look and feel like a 508
    PI * 13.37 = 42
    Attached image
    Attached image
    Reply With Quote  
     

  6. #6  
    Squidward
    Guest
    Code:
    	public void teleport(final int x, final int y, final int h){
    		wizard.gfx100(111);
    		wizard.setAnimation(714);
    		EventManager.getSingleton().addEvent(null, new Event() {
    
    			@Override
    			public void execute(EventContainer cont) {
    				wizard.teleportToX = x + misc.random(2);
    				wizard.teleportToY = y + misc.random(2);
    				wizard.heightLevel = h;
    				wizard.setAnimation(715);
    				cont.stop();
    			}
    
    			@Override
    			public void stop(){
    			}
    		}, 1500);
    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
  •