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...
|
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:
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...
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]; } }
lol xema, how wuld u use that.... like
something in npchanlder u put loopThrough();?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |