Thread: Adding a req. to teles PI 317

Results 1 to 5 of 5
  1. #1 Adding a req. to teles PI 317 
    Registered Member
    Join Date
    Feb 2013
    Posts
    45
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    How do I add a rank requirement to teleports inside of my spells tab (magic book)..? yes i did search for this nothing was relevant or even close,
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    May 2011
    Posts
    1,773
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    Clickingbuttons to the button id of your spell right under the case add something like this

    Code:
    		if (!c.getItems().playerHasItem(995, 1)) {
    			c.sendMessage("You need 1 coin to teleport to this location.");
    			return;
    		}
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2013
    Posts
    45
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Poesy700 View Post
    Clickingbuttons to the button id of your spell right under the case add something like this

    Code:
    		if (!c.getItems().playerHasItem(995, 1)) {
    			c.sendMessage("You need 1 coin to teleport to this location.");
    			return;
    		}
    That's only checking if they have a air rune though :L
    Reply With Quote  
     

  4. #4  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Quote Originally Posted by jame233 View Post
    That's only checking if they have a air rune though :L
    lol..if (c.playerRights == 3) { think about it.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2013
    Posts
    45
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Karma_K View Post
    lol..if (c.playerRights == 3) { think about it.
    Lol OOoooOOOooo thanks
    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. Cannot connect to server [PI] 317 (will thank)
    By GhostedRebel in forum Help
    Replies: 13
    Last Post: 09-03-2012, 03:39 AM
  2. Adding dungeoneering reqs to items.
    By AndrewBlakeM in forum Help
    Replies: 5
    Last Post: 12-20-2011, 10:08 AM
  3. Adding dungeoneering reqs to items.
    By AndrewBlakeM in forum Help
    Replies: 0
    Last Post: 12-18-2011, 11:12 AM
  4. (req) adding 554 gameframe to a pi (req)
    By Lord Stark in forum Requests
    Replies: 0
    Last Post: 01-10-2011, 05:19 AM
  5. Replies: 9
    Last Post: 07-11-2010, 05:14 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
  •