Thread: firemaking on emulous

Results 1 to 3 of 3
  1. #1 firemaking on emulous 
    Registered Member
    Join Date
    Dec 2009
    Posts
    200
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    I've recently coded firemaking and not totally sure how i could make the player do the lighting logs animation for about a second and then continue moving with the walkTo command.

    yea so here is part of the code that i need to add a variable to that stops the animation after about a sec?

    Code:
    		if(c.actionTimer == 0) {
    		c.startAnimation(733);
    		c.SpawnObject(c.getX(), c.getY(), objectid, 0, 10);
    		c.fmwalkto(-1, 0);
    		c.getItems().deleteItem2(remove, 1);
    		c.getPA().addSkillXP(xp, c.playerFiremaking);
    		c.getPA().refreshSkill(c.playerFiremaking);
    		c.turnPlayerTo(c.getX()+ 1, c.getY());
    		c.actionTimer = 4;
    		}
    Reply With Quote  
     

  2. #2  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Quote Originally Posted by philby93 View Post
    I've recently coded firemaking and not totally sure how i could make the player do the lighting logs animation for about a second and then continue moving with the walkTo command.

    yea so here is part of the code that i need to add a variable to that stops the animation after about a sec?

    Code:
    		if(c.actionTimer == 0) {
    		c.startAnimation(733);
    		c.SpawnObject(c.getX(), c.getY(), objectid, 0, 10);
    		c.fmwalkto(-1, 0);
    		c.getItems().deleteItem2(remove, 1);
    		c.getPA().addSkillXP(xp, c.playerFiremaking);
    		c.getPA().refreshSkill(c.playerFiremaking);
    		c.turnPlayerTo(c.getX()+ 1, c.getY());
    		c.actionTimer = 4;
    		}


    You will need to put a delay in...
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2009
    Posts
    200
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by RogueX View Post
    You will need to put a delay in...
    Yes I know but what delays are available for Emulous, or post a new one thankyou.
    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
  •