Thread: Teletabs above 20wild?

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Teletabs above 20wild? 
    Shake n Bake

    Organic's Avatar
    Join Date
    Apr 2010
    Posts
    2,499
    Thanks given
    204
    Thanks received
    324
    Rep Power
    588
    How would i make it so i cant use teletabs past 20 wild heres my wild code and its not working

    Code:
    if(item_id == 7811){
    deleteItem(7811, 1);
    setAnimation(794);
    toX = 3222;
    toY = 3222;
    if(wildyLevel > 20 && isInWilderness(absX, absY, 1));
    sM("You cannot teleport above level 20 wilderness!");
    }
    thanks

    Just live life at its fullest.

    LOL
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2008
    Posts
    411
    Thanks given
    9
    Thanks received
    64
    Rep Power
    38
    Code:
    if(item_id == 7811){
    if(wildyLevel > 19 && isInWilderness(absX, absY, 1));
    sM("You cannot teleport above level 20 wilderness!");
    }else{
    deleteItem(7811, 1);
    setAnimation(794);
    toX = 3222;
    toY = 3222;
    }
    It checks the top of the code first, therefore that'll need to be at the top
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2008
    Posts
    2,084
    Thanks given
    1,908
    Thanks received
    1,053
    Rep Power
    5000
    Code:
    if (item_id == 7811 && wildyLevel < 21) {
    	deleteItem(7811, 1);
    	setAnimation(794);
    	toX = 3222;
    	toY = 3222;
    } else {
    	sM("You cannot teleport above level 20 wilderness!");
    }

    If you're wondering why it's less than 21, you can't teleport above level 20 as stated so in your code provided.
    Reply With Quote  
     

  4. #4  
    Shake n Bake

    Organic's Avatar
    Join Date
    Apr 2010
    Posts
    2,499
    Thanks given
    204
    Thanks received
    324
    Rep Power
    588
    Thanks for you help it worked
    now just need the real emote getting the gfx atm

    Just live life at its fullest.

    LOL
    Reply With Quote  
     

  5. #5  
    Registered Member MonsterDev's Avatar
    Join Date
    Mar 2009
    Posts
    503
    Thanks given
    60
    Thanks received
    47
    Rep Power
    21
    I love how you have no idea what the code does, but this isnt the place to flame so I shall say no more.
    Retired
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    make instead of toX toY triggerTele(X,Y,H);
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Oct 2008
    Posts
    411
    Thanks given
    9
    Thanks received
    64
    Rep Power
    38
    Quote Originally Posted by theowner123 View Post
    make instead of toX toY triggerTele(X,Y,H);
    If you do that, it'll use the teleport gfx and emote, I think he's trying to make his teletab emote/gfx work
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Feb 2008
    Posts
    2,084
    Thanks given
    1,908
    Thanks received
    1,053
    Rep Power
    5000
    Quote Originally Posted by Theukpk View Post
    If you do that, it'll use the teleport gfx and emote, I think he's trying to make his teletab emote/gfx work
    If that is the case, just make a tabTele method using the same concept as the triggerTele method.
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    Quote Originally Posted by Jeff View Post
    If that is the case, just make a tabTele method using the same concept as the triggerTele method.
    Example..
    Reply With Quote  
     

  10. #10  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    Quote Originally Posted by theowner123 View Post
    Example..
    You'd better not be serious. Read what he wrote and figure it out on your own. 'Use the triggertele method as a base for that.'

    OR better yet add some parameters to the existing method so you can set the gfx & animation in there...
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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
  •