Thread: PI - Lighting fire - on fire partially fixed

Results 1 to 6 of 6
  1. #1 PI - Lighting fire - on fire partially fixed 
    Registered Member
    Rock_Gyo's Avatar
    Join Date
    Oct 2009
    Posts
    505
    Thanks given
    27
    Thanks received
    35
    Rep Power
    104
    Okay so i added this in my firemaking.java and it stops my account from lighting a fire on the last fire I started; but once I light a secondary fire, I will be able to light a new fire on the first fire... so it kinda remembers only the last fire I lighted, not all of them.

    This is what I added:

    Code:
    if(c.absX == Objects.getObjectX() && c.absY == Objects.getObjectY() && Objects.getObjectId() > 0) {
      c.sendMessage("You can't light a fire here!");
      return;
     }
    it got partially fixed, any idea how to make it stop my character from lighting on all the fires, not just on the last one?
    Reply With Quote  
     

  2. #2  
    Contaminated

    Radiated's Avatar
    Join Date
    Mar 2011
    Age
    27
    Posts
    928
    Thanks given
    255
    Thanks received
    164
    Rep Power
    240
    if (Server.objectManager.objectExists(c.absX, c.absY)) {
    c.sendMessage("You cannot light a fire here.");
    return;
    }
    This should fix your problem I think
    fuckoff
    Reply With Quote  
     

  3. #3  
    Registered Member
    Rock_Gyo's Avatar
    Join Date
    Oct 2009
    Posts
    505
    Thanks given
    27
    Thanks received
    35
    Rep Power
    104
    Quote Originally Posted by A7mad View Post
    This should fix your problem I think
    Getting this error =\ can't manage to fix it...

    Code:
    src\server\model\players\skills\Firemaking.java:93: error: cannot find symbol
            if (Server.objectManager.objectExists(c.absX, c.absY)) {
                                    ^
      symbol:   method objectExists(int,int,int)
      location: variable objectManager of type ObjectManager
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  4. #4  
    Registered Member
    Rock_Gyo's Avatar
    Join Date
    Oct 2009
    Posts
    505
    Thanks given
    27
    Thanks received
    35
    Rep Power
    104
    Quote Originally Posted by A7mad View Post
    This should fix your problem I think
    Been trying to convert that or something.. can't manage to get rid of the compiler error
    Reply With Quote  
     

  5. #5  
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    28
    Posts
    2,992
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    Are you rushing an IDE like ecplise. Just by reading the error I can see that ecplise would be able to fix that If not pm your skype and I will take a look myself or just upgrade to a better firemaking class.
    Reply With Quote  
     

  6. #6  
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    28
    Posts
    2,992
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    My mistake are you using*****
    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: 0
    Last Post: 08-01-2012, 07:40 PM
  2. lighting my friends ass on fire
    By `simple. in forum Humor
    Replies: 3
    Last Post: 12-24-2011, 07:48 PM
  3. [PI] Pk point on NPC killing fix
    By Ninja assassin in forum Help
    Replies: 5
    Last Post: 04-04-2011, 02:19 AM
  4. Replies: 8
    Last Post: 11-19-2010, 06:13 AM
  5. Light the world on fire.
    By +eX.God in forum Showcase
    Replies: 2
    Last Post: 04-08-2008, 05:36 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
  •