Thread: What's wrong with this code?:

Results 1 to 10 of 10
  1. #1 What's wrong with this code?: 
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Okay, for some unknown reason Thieving stalls isn't possible, but all my other first-click object code works.

    What happens is; when the stall is clicked the default 'nothing interesting is happening' message appears and no actions are started. This has NOTHING to do with the EXP being set to 0.

    Code:
    if(objectID == 2561
    	&& absX >= 2654 && absX <= 2669 && absY >= 3313 && absY <= 3309)
    	{
    	if(System.currentTimeMillis() - lastCheck >= 1500)
    		{
    		setAnimation(832);
    		addItem(cake_Stall(), 1);
    		EXP(0, 17);
    		MSG("You steal a Cake from the Cake stall.");
    	lastCheck = System.currentTimeMillis();
    	}
    }

    Reply With Quote  
     

  2. #2  
    Member
    Join Date
    Nov 2008
    Posts
    103
    Thanks given
    5
    Thanks received
    0
    Rep Power
    0
    Code:
    if(objectID == 2561 && absX >= 2654 && absX <= 2669 && absY >= 3313 && absY <= 3309 && System.currentTimeMillis() - lastCheck >= 1500)
    	{
    		setAnimation(832);
    		addItem(cake_Stall(), 1);
    		EXP(0, 17);
    		MSG("You steal a Cake from the Cake stall.");
    		lastCheck = System.currentTimeMillis();
    	}
    How's that look?
    Reply With Quote  
     

  3. #3  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Nope. :/

    Reply With Quote  
     

  4. #4  
    Member
    Join Date
    Nov 2008
    Posts
    103
    Thanks given
    5
    Thanks received
    0
    Rep Power
    0
    I forgot a ";" at the end of the first line if that is the only error.

    EDIT:// there's a pro
    Reply With Quote  
     

  5. #5  
    Registered Member
    tommo's Avatar
    Join Date
    Aug 2008
    Posts
    420
    Thanks given
    30
    Thanks received
    36
    Rep Power
    200
    my stalls were in the object click 2 packet, try it.
    23:06 <t4> of course, you can just reverse their wavygravy cipher to produce the public volatile boolean needed
    22:58 <t4> careful it sends bologna packets to the login servers
    22:58 <t4> very unsafe kernel flash
    Reply With Quote  
     

  6. #6  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Still nothing.. There might actually be something wrong with the objects themselves.

    EDIT: I'll try second click like suggested.

    Reply With Quote  
     

  7. #7  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Much love fusion, thanks

    Reply With Quote  
     

  8. #8  
    Registered Member
    tommo's Avatar
    Join Date
    Aug 2008
    Posts
    420
    Thanks given
    30
    Thanks received
    36
    Rep Power
    200
    no problem, i honestly do not know why they are second click objects.
    23:06 <t4> of course, you can just reverse their wavygravy cipher to produce the public volatile boolean needed
    22:58 <t4> careful it sends bologna packets to the login servers
    22:58 <t4> very unsafe kernel flash
    Reply With Quote  
     

  9. #9  
    Previously Hyperion


    Join Date
    Jan 2009
    Posts
    1,254
    Thanks given
    3
    Thanks received
    18
    Rep Power
    138
    Quote Originally Posted by Fusion T View Post
    no problem, i honestly do not know why they are second click objects.
    First option is null?
    Reply With Quote  
     

  10. #10  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Quote Originally Posted by Mental Piracy View Post
    First option is null?
    No, because it works for other objects such as trees.

    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
  •