Thread: [PI] Dialogue problem

Results 1 to 7 of 7
  1. #1 [PI] Dialogue problem 
    Registered Member
    Join Date
    May 2013
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hey guys,

    im trying to make a teleport city tab,
    but when i try to add a 'more' option it wont work.

    when i click on 'More' close the window...

    Code:
    if (c.dialogueAction == 9000) {
    					c.getDH().sendDialogues(9001, 0);
    				}
    i've no idea what i did wrong
    if you need more codes tell me
    EDIT: everytime when i relog, it works 1 time.
    thanx

    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2013
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    bump
    Reply With Quote  
     

  3. #3  
    Registered Member Jan Julius's Avatar
    Join Date
    Oct 2011
    Posts
    208
    Thanks given
    61
    Thanks received
    14
    Rep Power
    17
    Add "return true;" to the bottom of it?
    Reply With Quote  
     

  4. #4  
    Registered Member Purple Helix's Avatar
    Join Date
    Jun 2013
    Posts
    93
    Thanks given
    6
    Thanks received
    23
    Rep Power
    33
    You need to declare some sort of stage for your dialogue options a Integer or String would do

    Similar to this
    Code:
    case #BUTTON :
    	if (teleportPhase.equals("City_1")) {
    		Location.Teleport(new Location(3222, 3222, MagicBook.getType()))
    	} else if (teleportPhase.equals("City_2")) {
    		Location.Teleport(new Location(3222, 3222, MagicBook.getType()))
    	}	
    	break;
    Off course you would have to set the string on the magic book tele icon button click.
    Code:
    player.teleportPhase = "City_1";


    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    If you still need help id be glad to help, im really good at this sort of thing!
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2013
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    yeah sure, pm me plz
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    May 2013
    Posts
    201
    Thanks given
    0
    Thanks received
    40
    Rep Power
    0
    Quote Originally Posted by Jan Julius View Post
    Add "return true;" to the bottom of it?
    It isn't a boolean.
    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] Better sendDialogue method
    By Chelsea Grin in forum Snippets
    Replies: 7
    Last Post: 12-03-2012, 05:09 PM
  2. Pi: π
    By Colby in forum Chat
    Replies: 7
    Last Post: 10-23-2009, 04:41 AM
  3. Some pi error??????
    By Oh my gawd in forum Help
    Replies: 20
    Last Post: 05-08-2009, 03:19 PM
  4. player item pi
    By Ishana in forum Help
    Replies: 4
    Last Post: 05-06-2009, 09:17 PM
  5. PI day!!!!!
    By HvSxTornado in forum Chat
    Replies: 5
    Last Post: 03-15-2009, 11:36 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
  •