Thread: Npc Vs. Npc?

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Npc Vs. Npc? 
    Registered Member
    Join Date
    Aug 2008
    Posts
    56
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    Well ive been workin on a quest and i was tryin to make one npc attack another. In actual RS the Kahazard(i think?) warriors would attack the gnomes south of ardy... you know. so there must be a way to work it. any help would be nice.
     

  2. #2  
    brb ridin da storm

    blakeman8192's Avatar
    Join Date
    Dec 2012
    Age
    31
    Posts
    2,012
    Thanks given
    818
    Thanks received
    1,361
    Rep Power
    329
    Well, all you need for combat is the animations and the hit update block.
    NPCs have both of those functions, but you would have to write the combat system from scratch on your own.
    rest in peace Qemist, Izzy, Colton, TeChNo PuNk, Impulser, & bootnecklad
     

  3. #3  
    Seecon
    Guest
    Is it tough..?
     

  4. #4  
    pureiiipker
    Guest
    Quote Originally Posted by Seecon View Post
    Is it tough..?
    it will be tough if you are not experienced with java

    also

    this is an RSPS, so npc's fighting eachother may not happen


    sorry
     

  5. #5  
    Banned

    Join Date
    Jul 2008
    Posts
    1,043
    Thanks given
    209
    Thanks received
    46
    Rep Power
    0
    Quote Originally Posted by pureiiipker View Post
    it will be tough if you are not experienced with java

    also

    this is an RSPS, so npc's fighting eachother may not happen


    sorry
    YES IT HAPPENS... go south ardougne in runescape.
    they fight themselves and its possible to do that.
     

  6. #6  
    Registered Member
    Join Date
    Jul 2008
    Posts
    221
    Thanks given
    0
    Thanks received
    52
    Rep Power
    20
    No he means it wont happen on a RSPS mate not in Real Runescape. It would have to be coded from scratch as someone said up there ^. Good luck if you go ahead with it.
     

  7. #7  
    Seecon
    Guest
    All you need is the mask ... animations are less important.
     

  8. #8  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,335
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    People already have the masks -_- Its called the hit update mask? You use it every time you attack a npc
     

  9. #9  
    Registered Member
    Coder Alex's Avatar
    Join Date
    Apr 2009
    Age
    30
    Posts
    1,755
    Thanks given
    86
    Thanks received
    83
    Rep Power
    231
    Try out Pali's method.
    add this in process
    Code:
    if (NpcType == 158 || NpcType == 3741 || NpcType == 3751
    	    || NpcType == 479) {
    	    for (int i = 0; i < Server.s.npcHandler.maxNPCs; i++) {
    		if (Server.s.npcHandler.npcs[i] != null) {
    		    if (NpcType == 158) {
    			if (Server.s.npcHandler.npcs[i].NpcType == 158
    			    && NpcSlot != i && RandomWalk
    			    && WithinDistance(absX, absY,
    					      Server.s.npcHandler.npcs[i].absX,
    					      Server.s.npcHandler.npcs[i].absY,
    					      3)) {
    			    RandomWalk = false;
    			    NpcToKill = i;
    			    KillingNpc = true;
    			    break;
    			}
    Declare this
    public boolean KillingNpc = false;
    public int NpcToKill = 0;
    public boolean RandomWalk = true;


    Should work , well works for Pali =P

    P.S.
    I'm 99,9% Sure you must edit some stuff in the code. I just gave you raw one , Gl with serv.
    My english skills back in the days.
    Quote Originally Posted by Coder Alex
    Well, if it's gooded decent, it's good.
     

  10. #10  
    Banned

    Join Date
    Jul 2008
    Posts
    1,043
    Thanks given
    209
    Thanks received
    46
    Rep Power
    0
    Quote Originally Posted by Le Jitt View Post
    No he means it wont happen on a RSPS mate not in Real Runescape. It would have to be coded from scratch as someone said up there ^. Good luck if you go ahead with it.
    Quote Originally Posted by Witch King View Post
    YES IT HAPPENS... go south ardougne in runescape.
    they fight themselves and its possible to do that.
    Read what I posted.
     

Page 1 of 2 12 LastLast

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
  •