View Full Version : [codeusa] Npc help
owner lorenzo
June 21st, 2010, 17:10
Hi, im adding Slayer tower but i just made floor 1 but my npc are a bit buggy.
How i give my NPC hp (so hp bar will work) and instal their maxhit etc and pray working
Musicmasta
June 21st, 2010, 18:42
I can answer 3/3 of them just i dont feel like explaining the prayer
1.) open Npclist.cfg and NpcCombat.java
2.) in Npclist.cfg there will be alot of Npc's EX: npc = 5421 69 90 12 2 0 30 60 2 Mutant_Tarn I_preferred_him_when_he_was_human.
Ok So 5421 is the NPC Id, 69 Is the Combat Level and 90 is the HP so your looking to change the Hp Add the Npc's Your adding In Npclist.cfg (You can Copy that and change the Mutant_Tarn and the Examination info which is the I_preferred_Him_When_He_Was_Human.) anyway change the Level (69) to the level of the npc you have the NPC ID (5421) and the Health (90) to what you want XD.
3.) Open NpcCombat.java and search
int getNpcMaxhit() {
Right below that add
if (n.npcType == ####) {
return ##;
}
the #### represents the NPC Id so change that to the ID of the Npc You want
the return ##; represents the maxhit change the ## to whatever the NPC's Maxhit is
There you go lol :D if you still need help with prayer next time i check this section i'll help lol XD
owner lorenzo
June 21st, 2010, 18:59
Thx dude just prayer now ;) i would rep but ya i cant lol
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.