Thread: adding npc emote/gfx/anim helpp

Results 1 to 6 of 6
  1. #1 adding npc emote/gfx/anim helpp 
    Registered Member Wicksyere's Avatar
    Join Date
    Feb 2008
    Posts
    253
    Thanks given
    0
    Thanks received
    1
    Rep Power
    8
    i will explain what ive done


    ive added kbd { king black dragon} to autospawn and autospawncodes.java and added the emote but the dragon doesnt attack me back or deal no damge but i looked in the NPChandler and i find this
    Code:
    if (npcs[NPCID].npcType == 50) { // KBD
    						try {
    							p.animation(0, p.absY, p.absX); // Flames
    							client player = (client) server.playerHandler.players[Player];
    							int bonus = misc.random(player.playerBonus[5]);
    							int dragon_bonus = misc.random(828);
    							if (dragon_bonus > bonus) {
    								hitDiff = misc.random(56);
    							}
    							int random = misc.random(5);
    							if (random == 1) {
    								for (int i = 0; i < npcs[NPCID].Killing.length; i++) {
    									client player2 = (client) server.playerHandler.players[i];
    									if ((player2 != null)
    											&& (npcs[NPCID].Killing[i] > 0)) {
    										int x = player2.absX;
    										int y = player2.absY;
    										// if(Math.abs(npcs[NPCID].absX
    										// - x) <= 50 ||
    										// Math.abs(npcs[NPCID].absY -
    										// y) <= 50){
    										player2.hitDiff = misc.random(60);
    										player2.updateRequired = true;
    										player2.hitUpdateRequired = true;
    										player2.appearanceUpdateRequired = true;
    										try {
    											player2
    													.sendMessage("The enraged dragon's flames burn you!");
    										} catch (Exception e) {
    											e.printStackTrace();
    										}
    do you have to link the autospawn to npc handler or something? because ive spawned it as
    Code:
    spawn = 50	2717	9816	0	0	0	0	0	1
    and in the npc.java the npc id is 50 ..
    Code:
    npc = 50	King_black_dragon		600	600	60

    so does anyone know why it doesnt do what NPChandler.java has told it to do ?
    Hacked by T X
    Reply With Quote  
     

  2. #2  
    Registered Member Wicksyere's Avatar
    Join Date
    Feb 2008
    Posts
    253
    Thanks given
    0
    Thanks received
    1
    Rep Power
    8
    ill rep.
    Hacked by T X
    Reply With Quote  
     

  3. #3  
    Registered Member Wicksyere's Avatar
    Join Date
    Feb 2008
    Posts
    253
    Thanks given
    0
    Thanks received
    1
    Rep Power
    8
    anyone?:{
    Hacked by T X
    Reply With Quote  
     

  4. #4  
    Member
    Join Date
    Jan 2011
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    >.< Your probaly know more but.. I do know 562's have problems with respawning even tho it is there.. like i added corp to his spot compiled everything worked corp was there well.. then a player said there was two corps so.. i just added a extra one anyway my point is ITS THERE and will respawn ;S sooner or later to change the npc respawn rate i'd look up a tut i hope this helped -probaly didn't-
    Reply With Quote  
     

  5. #5  
    Member
    Join Date
    Jan 2011
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by demonscape View Post
    >.< Your probaly know more but.. I do know 562's have problems with respawning even tho it is there.. like i added corp to his spot compiled everything worked corp was there well.. then a player said there was two corps so.. i just added a extra one anyway my point is ITS THERE and will respawn ;S sooner or later to change the npc respawn rate i'd look up a tut i hope this helped -probaly didn't-
    OHHH and uhm if you need the lil respawn code heres mine =\

    <npc>
    <id>50</id>
    <location>
    <x>2271</x>
    <y>4695</y>
    <z>0</z>
    </location>
    <walkType>RANGE</walkType>
    <minimumCoords>
    <x>2259</x>
    <y>4682</y>
    <z>0</z>
    </minimumCoords>
    <maximumCoords>
    <x>2284</x>
    <y>4709</y>
    <z>0</z>
    </maximumCoords>
    </npc>
    Reply With Quote  
     

  6. #6  
    Registered Member Math Class's Avatar
    Join Date
    Oct 2010
    Age
    28
    Posts
    150
    Thanks given
    27
    Thanks received
    23
    Rep Power
    7
    Quote Originally Posted by demonscape View Post
    OHHH and uhm if you need the lil respawn code heres mine =\

    <npc>
    <id>50</id>
    <location>
    <x>2271</x>
    <y>4695</y>
    <z>0</z>
    </location>
    <walkType>RANGE</walkType>
    <minimumCoords>
    <x>2259</x>
    <y>4682</y>
    <z>0</z>
    </minimumCoords>
    <maximumCoords>
    <x>2284</x>
    <y>4709</y>
    <z>0</z>
    </maximumCoords>
    </npc>
    1. You're an idiot, this is RS2 development, not 503+
    2. Nice gravedig. I'm sure he figured it out by now.

    On topic: I'm sure you did spaces rather than tabs, and yes, you put it in auto-spawn.cfg

    ^Made by Kid Kash.
    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
  •