Thread: Setting a Specified NPC Walking Path? (377)

Results 1 to 5 of 5
  1. #1 Setting a Specified NPC Walking Path? (377) 
    Long-Term Community Veteran
    Zamorak Zxt's Avatar
    Join Date
    Nov 2006
    Age
    32
    Posts
    256
    Thanks given
    0
    Thanks received
    0
    Rep Power
    62
    Well, Its been well over a Year since I've touched a Private Server, or even a Client Source.
    I was looking through my old Clients/Servers I'de worked on in the past, and came across my an Old Client I was working on, in which I turned Unused NPC's into "Fake Players"

    Anyhow, to get on with the request, I'm looking for someone that could develop a Code to make a Specific NPC Follow a Specified walking Path.
    The reason I wish to do so, is to make the "Fake Players" Walk from lets say, Varrock East Bank, To The General Store, and stand in the Shop for lets say, 20 Seconds, Then walk back to the Bank, and Repeat.

    Its probebly a complicated code to develop. Then again, it might not be for some of you that are STILL Coding.

    Hope somebody can develop a Code, and thanks for the Help.
    ________________________

    OLD Picture of the WIP of the Server and Client:
    Thanks, Codykins
    _____________________
    ~Zamorak Zxt~
    Reply With Quote  
     

  2. #2  
    xema
    Guest
    Eezy:

    Use hashmaps or use arrays<-- multidimension integers then loop through them and make it so the MoveX and MoveY are added to the x and y absoulute points...
    Reply With Quote  
     

  3. #3  
    「 m e o w 」「 m e o w 」

    Thee Wolf's Avatar
    Join Date
    Sep 2008
    Posts
    3,692
    Thanks given
    695
    Thanks received
    1,678
    Rep Power
    5000
    Best of luck finding an individual who is capable of completing your request; I apologize for not being able to be any more bit of an assistance.
    Reply With Quote  
     

  4. #4  
    xema
    Guest
    Example:
    Code:
    int[][] movePoints = {{0, -1}, {1, 1}, {1, 1}, {0, 0}};
    public void loopThrough()
    {
        for(int[] noob:movePoints)
        {
              NPC n =  server.npcHandler.npcs[npcId];
             n.moveX = n.absX+noob[0];
             n.moveY = n.absY+noob[1];
         }
    }
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    May 2008
    Posts
    2,327
    Thanks given
    55
    Thanks received
    67
    Rep Power
    0
    lol xema, how wuld u use that.... like

    something in npchanlder u put loopThrough();?
    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
  •