Thread: A little Event/Action help

Results 1 to 6 of 6
  1. #1 A little Event/Action help 
    Registered Member
    IngeniousPentaSquid's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    993
    Thanks given
    47
    Thanks received
    140
    Rep Power
    79
    Base : Java
    Pictures: None
    Cimpile errors: None


    So i have this simple problem.

    I have tried using "try" and "finally" statements for this but it doesn't work.

    So what i am trying to do is basicly

    Code:
     button = someKindOfButton {
    doThis(999); -> doThisThing(999); -> whenDoThis && whendoThisThing isDone ->doThat -> when doThat isDone -> doThisThat -> end
    I've done many things such as registerAction and such & such, but i've gotten nowhere.
    ©®
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    May 2011
    Posts
    1,010
    Thanks given
    78
    Thanks received
    64
    Rep Power
    0
    u mean for a emote? like with dung cape? (it changes into npc and does emote then changes into another npc and does emote etc...?)
    Reply With Quote  
     

  3. #3  
    Registered Member
    IngeniousPentaSquid's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    993
    Thanks given
    47
    Thanks received
    140
    Rep Power
    79
    something like that, except it's a bit more complicated, it involves teleporting.
    ©®
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    May 2011
    Posts
    1,010
    Thanks given
    78
    Thanks received
    64
    Rep Power
    0
    ooh lol idk then xD
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    May 2011
    Posts
    1,010
    Thanks given
    78
    Thanks received
    64
    Rep Power
    0
    maybe u can use this ? and change it?
    Code:
    public void dungemote(final Client c) {
    			    EventManager.getSingleton().addEvent(new Event() {
    				int dungtime = 13;
    				 public void execute(EventContainer dung) {
    				   if (dungtime == 13) {
    				       c.gfx0(2442);
    					c.startAnimation(13190);
    				    }
    				   if (dungtime == 12) {
    					c.npcId2 = 11228;
    					 c.isNpc = true;
    					 c.updateRequired = true;
    					c.appearanceUpdateRequired = true;
    					c.startAnimation(13192);
    				    }
    				   if (dungtime == 8) {
    					c.npcId2 = 11227;
    					 c.isNpc = true;
    					 c.updateRequired = true;
    					c.appearanceUpdateRequired = true;
    					c.startAnimation(13193);
    				    }
    				   if (dungtime == 5) {
    				       c.gfx0(2442);
    				    }
    				   if (dungtime == 4) {
    					c.npcId2 = 11229;
    					 c.updateRequired = true;
    					c.appearanceUpdateRequired = true;
    					c.startAnimation(13194);
    				    }
    				   if (dungtime == 0) {
    					c.isNpc = false;
    					 c.updateRequired = true;
    					c.appearanceUpdateRequired = true;
    				    }
    				   if (c == null || dungtime <= 0) {
    				       dung.stop();
                                                                             return; 
    				    }
    				   if (dungtime >= 0) {
    					dungtime--;
    				    }
    				}
    			    }, 600);
    			}
    Reply With Quote  
     

  6. #6  
    Registered Member
    IngeniousPentaSquid's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    993
    Thanks given
    47
    Thanks received
    140
    Rep Power
    79
    ok
    ©®
    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. Replies: 20
    Last Post: 02-06-2011, 12:52 AM
  2. Replies: 6
    Last Post: 01-18-2011, 09:56 PM
  3. Replies: 7
    Last Post: 07-30-2010, 06:52 AM
  4. Replies: 6
    Last Post: 12-29-2009, 02:36 PM
  5. Event inside an event?
    By Mrquarterx in forum Help
    Replies: 1
    Last Post: 09-28-2009, 10:53 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
  •