Thread: Two Noobish Questions

Results 1 to 8 of 8
  1. #1 Two Noobish Questions 
    Registered Member Sirius's Avatar
    Join Date
    Mar 2011
    Posts
    269
    Thanks given
    18
    Thanks received
    14
    Rep Power
    7
    Two noobish questions that I never did understand
    If you can answer either of these I will rep you.

    #1:
    How can I declare a loop in dementhium?

    #2:
    When I make a skill or whatever, I always do it in the packethandler.
    For example if I made fishing I would declare the fishing spot as a case in the NpcHandler. I want to put it in a separate file though. Is there a simple way of doing that?
    Attached image
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Nov 2008
    Posts
    885
    Thanks given
    13
    Thanks received
    35
    Rep Power
    100
    1.for/while/switch are considered loops. i don't understand what your asking for.

    2. create a new fishing.java (or whatever you feel like making it) and then make a method to be called upon such as startfishing and have it called upon once the npc is clicked?
    Reply With Quote  
     

  3. #3  
    Registered Member Sirius's Avatar
    Join Date
    Mar 2011
    Posts
    269
    Thanks given
    18
    Thanks received
    14
    Rep Power
    7
    Quote Originally Posted by Silicity View Post
    1.for/while/switch are considered loops. i don't understand what your asking for.

    2. create a new fishing.java (or whatever you feel like making it) and then make a method to be called upon such as startfishing and have it called upon once the npc is clicked?
    I wanted to loop an animation over and over.

    I will try the method out.

    Thanks, repped.
    Attached image
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Nov 2008
    Posts
    885
    Thanks given
    13
    Thanks received
    35
    Rep Power
    100
    so you wanted the animation to keep playing?

    like:

    Code:
    if (anim == youranimid) {
    startAnim(9075,0)
    }
    or

    Code:
    switch (yourvariable) {
    case 1:
    startAnim(9075,0)
    default:
    }
    do not attempt to use that code, as it isn't a working one lol.
    Reply With Quote  
     

  5. #5  
    pride, love, happiness
    .alycia's Avatar
    Join Date
    Jun 2010
    Age
    28
    Posts
    4,106
    Thanks given
    1,714
    Thanks received
    2,062
    Rep Power
    5000
    Base it off his Woodcutting.java class..
    Reply With Quote  
     

  6. #6  
    #Winning

    Join Date
    Apr 2011
    Age
    28
    Posts
    2,245
    Thanks given
    367
    Thanks received
    388
    Rep Power
    1187
    Good point Copying his Woodcutting.java would be a good idea, then you only have to switch a few id's around to make it work for fishing.


    Vouches
    Spoiler for Vouches:

    Quote Originally Posted by Exile rsps View Post
    Vouch thanks for that pic
    Quote Originally Posted by bwuk _im_pb View Post
    i vouch for charlie hes legit
    Quote Originally Posted by Pastaway
    Vouch for 'Charlie. Added a tut to my server I couldn't add and payed him after =]
    Quote Originally Posted by mongolias
    Vouch for 'Charlie. Sold me a banner, the trade went quick and efficiently.
    Quote Originally Posted by Lane
    Vouch for charlie, he is #1
    Quote Originally Posted by Raw Envy View Post
    Vouch for Charlie.
    Quote Originally Posted by -Null Code-
    Vouch Legit bought rs membership
    Quote Originally Posted by tucybro
    Traded with Charlie, went smoothly I went first and he paid promptly without and issues, great trader!



    Reply With Quote  
     

  7. #7  
    pride, love, happiness
    .alycia's Avatar
    Join Date
    Jun 2010
    Age
    28
    Posts
    4,106
    Thanks given
    1,714
    Thanks received
    2,062
    Rep Power
    5000
    Quote Originally Posted by xCharliex View Post
    Good point Copying his Woodcutting.java would be a good idea, then you only have to switch a few id's around to make it work for fishing.
    I used it as a base for my Mining.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Stacx's Avatar
    Join Date
    Jun 2009
    Posts
    463
    Thanks given
    166
    Thanks received
    105
    Rep Power
    125
    Code:
    while(action) {}
    .
    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. Uh, this may sound noobish..
    By Riskeh in forum Help
    Replies: 3
    Last Post: 02-20-2011, 04:04 AM
  2. Item.cfg Guide [Very noobish >.<;;]
    By `Avoid` in forum Snippets
    Replies: 4
    Last Post: 03-20-2010, 02:31 AM
  3. Drew Noobish RS Account.
    By sly__ in forum Media
    Replies: 5
    Last Post: 11-20-2009, 10:46 PM
  4. this may sound noobish but =p
    By Demonicpure in forum Help
    Replies: 11
    Last Post: 02-23-2009, 10:56 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
  •