Thread: [PI] Item spawning

Results 1 to 10 of 10
  1. #1 [PI] Item spawning 
    Registered Member
    Join Date
    Aug 2015
    Posts
    11
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Is there a way I could make an item appear at a location every one hour and when it spawns give it an announcement to the server that it has spawned?
    Reply With Quote  
     

  2. #2  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Probably not.
    Attached image
    Reply With Quote  
     

  3. #3  
    Iceking's Bitch
    N P C's Avatar
    Join Date
    May 2013
    Posts
    215
    Thanks given
    14
    Thanks received
    22
    Rep Power
    43
    Quote Originally Posted by kibou6969 View Post
    Is there a way I could make an item appear at a location every one hour and when it spawns give it an announcement to the server that it has spawned?
    Yes, Timers <- Look up this for a start..

    The rest you can figure out yourself, I'm sure you'll learn things on the way.
    Currently studying: N/A
    Occupation: Software Engineer
    Reply With Quote  
     

  4. #4  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Of course you can do it, it is just a question how exactly you want it to be like?
    For instance, is the item going to swap place every hour if no one found it yet or is it just going to spawn a new one every hour?


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2015
    Posts
    11
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by arch337 View Post
    Of course you can do it, it is just a question how exactly you want it to be like?
    For instance, is the item going to swap place every hour if no one found it yet or is it just going to spawn a new one every hour?
    It would only spawn in one spot every hour. Was trying to figure out how to go about doing it
    Reply With Quote  
     

  6. #6  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by kibou6969 View Post
    It would only spawn in one spot every hour. Was trying to figure out how to go about doing it
    It all comes down to how you got your method for constructing and deconstructing a item that is on the floor.
    The rest should not be to hard to do.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2015
    Posts
    11
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by arch337 View Post
    It all comes down to how you got your method for constructing and deconstructing a item that is on the floor.
    The rest should not be to hard to do.
    Im kinda new to coding, so im not too sure what direction to take to actually go about doing it.
    Reply With Quote  
     

  8. #8  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by kibou6969 View Post
    Im kinda new to coding, so im not too sure what direction to take to actually go about doing it.
    I suggest you to check how dropping a item works and see it step by step in your code.
    If you do not wish to do that, I suggest not even adding something like this.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Nov 2010
    Posts
    1,528
    Thanks given
    1,017
    Thanks received
    348
    Rep Power
    240
    I searched and found this https://www.rune-server.ee/runescape...ml#post2389481
    Looks like its respawning is conveniently changeable from 60 to 3600 (seconds)

    Good luck if u can use it!
    None.
    Reply With Quote  
     

  10. #10  
    Renown Programmer
    Bartvh's Avatar
    Join Date
    May 2017
    Posts
    370
    Thanks given
    89
    Thanks received
    208
    Rep Power
    497
    Create a new timerTask, set the time interval, spawn the item on execution of the task. Really simple.
    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: 1
    Last Post: 03-31-2013, 08:50 PM
  2. pi items spawning
    By mr code in forum Help
    Replies: 4
    Last Post: 02-06-2012, 04:21 PM
  3. [PI] Items spawning on ground
    By Inenting in forum Help
    Replies: 1
    Last Post: 06-04-2011, 11:12 AM
  4. PI item spawning glitch.
    By Arithium in forum Snippets
    Replies: 7
    Last Post: 05-25-2011, 03:41 AM
  5. [PI] Item spawns twice
    By Jmk600 in forum Help
    Replies: 2
    Last Post: 05-08-2011, 08:03 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
  •