Register for your free account! | Forgot your password?

You last visited: Today at 16:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Companion HP Bar

Discussion on Companion HP Bar within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 204
Companion HP Bar

Hey all, so I'm working on companions on a 5517 source. I have them spawning with one issue. The HP bar doesn't show. I'm spawning them just i would spawn a monster. Am I missing anything?

Monsters spawn with HP bars no issue and I'm spawning them just the same. Is there something different in 10014 for companions?



InsomniacPro is offline  
Old 12/21/2016, 08:14   #2
 
elite*gold: 200
Join Date: Sep 2011
Posts: 189
Received Thanks: 85
Quote:
Originally Posted by InsomniacPro View Post
Hey all, so I'm working on companions on a 5517 source. I have them spawning with one issue. The HP bar doesn't show. I'm spawning them just i would spawn a monster. Am I missing anything?

Monsters spawn with HP bars no issue and I'm spawning them just the same. Is there something different in 10014 for companions?
Hm perhaps you're not sending their HP at the correct offset?
It should be 48 or 52 as a ushort (?) if I recall correctly. Not sure on such high patches.


Nyorai is offline  
Old 12/21/2016, 08:38   #3
 
elite*gold: 0
Join Date: Feb 2013
Posts: 92
Received Thanks: 12
I fixed this problem before, iirc i think you need to make sure the Hitpoints must be the same in client and server..
EOS 60D is offline  
Old 12/21/2016, 15:06   #4
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 204
Quote:
Originally Posted by EOS 60D View Post
I fixed this problem before, iirc i think you need to make sure the Hitpoints must be the same in client and server..
I verified that the HP was correct in both server and client.

Quote:
Originally Posted by Nyorai View Post
Hm perhaps you're not sending their HP at the correct offset?
It should be 48 or 52 as a ushort (?) if I recall correctly. Not sure on such high patches.
The HP offset is correct, any other monster spawns with the HP bar above their head. Unless there's something different about the way companions are spawned.


InsomniacPro is offline  
Old 12/21/2016, 15:51   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,347
For HP bar to show it needs the name being sent to match what's in monstertype.dat
pro4never is offline  
Old 12/21/2016, 16:07   #6
 
elite*gold: 0
Join Date: Jun 2005
Posts: 691
Received Thanks: 346
CallPets fall into the 700000-799999 ID range. Don't forget to send MsgCallPetInfo (2035) to the owner of the CallPet. Otherwise, yes, it's just the normal MsgPlayer (1014/10014) to spawn it.
nTL3fTy is offline  
Old 12/22/2016, 04:42   #7
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 204
Quote:
Originally Posted by nTL3fTy View Post
CallPets fall into the 700000-799999 ID range. Don't forget to send MsgCallPetInfo (2035) to the owner of the CallPet. Otherwise, yes, it's just the normal MsgPlayer (1014/10014) to spawn it.
I'm following the 700k-799k for their ids, but no luck. Even setting a spawn in the db like a normal mob, they appear with no health bar.

S/n:
do you have any documentation on 2035?
InsomniacPro is offline  
Old 12/22/2016, 05:38   #8
 
elite*gold: 0
Join Date: Jun 2005
Posts: 691
Received Thanks: 346
Quote:
Originally Posted by InsomniacPro View Post
do you have any documentation on 2035?
OffsetDataTypeName
4DWORDUID (700000-799999)
8DWORDLookface
12DWORDAIType
16WORDPositionX
18WORDPositionY
20char[16]Name

Pretty basic stuff, the only point worth mentioning is the AIType which informs the client (the owner) how it should control the CallPet, since it is the client that controls the movement, attacking, etc.

idnamelookfaceai_type
9000IronGuard9201
9001CopperGuard9201
9002SilverGuard9201
9003GoldGuard9201
9005GhostBat1482
9006FastBat1482
9007SwiftBat1482
9008MagicBat1482
9010GhostBatBoss5482
9011FastBatBoss5482
9012SwiftBatBoss5482
9013MagicBatBoss5482
9015EvilBatA2063
9016EvilBatB2063
9017EvilBatC2063
9018EvilBatD2063
9020FireRatA2094
9021FireRatB2094
9022FireRatC2094
9023FireRatD2094
9025SkeletonA2115
9026SkeletonB2115
9027SkeletonC2115
9028SkeletonD2115
nTL3fTy is offline  
Thanks
2 Users
Old 12/23/2016, 00:49   #9
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 204
Quote:
Originally Posted by nTL3fTy View Post
OffsetDataTypeName
4DWORDUID (700000-799999)
8DWORDLookface
12DWORDAIType
16WORDPositionX
18WORDPositionY
20char[16]Name

Pretty basic stuff, the only point worth mentioning is the AIType which informs the client (the owner) how it should control the CallPet, since it is the client that controls the movement, attacking, etc.

idnamelookfaceai_type
9000IronGuard9201
9001CopperGuard9201
9002SilverGuard9201
9003GoldGuard9201
9005GhostBat1482
9006FastBat1482
9007SwiftBat1482
9008MagicBat1482
9010GhostBatBoss5482
9011FastBatBoss5482
9012SwiftBatBoss5482
9013MagicBatBoss5482
9015EvilBatA2063
9016EvilBatB2063
9017EvilBatC2063
9018EvilBatD2063
9020FireRatA2094
9021FireRatB2094
9022FireRatC2094
9023FireRatD2094
9025SkeletonA2115
9026SkeletonB2115
9027SkeletonC2115
9028SkeletonD2115

So I've followed this, sent the packet once the minion is spawned. Ensured the UID is between 700000-799999, spawn entity packet is correct. Yet HP bar is still not showing up. You have any ideas as to what other issues could be?

Btw, thanks a lot lefty. Shit helps.

So Chris was so correct. Apparently in 5517, the monster.dat names them as escorts instead of guards.


InsomniacPro is offline  
Thanks
1 User
Reply


Similar Threads
Companion Gifts Guide
05/08/2018 - SWTOR Guides & Strategies - 3 Replies
http://www.oldrepublic.net/content/attachments/691 d1324887164-impsheet.png/ http://www.oldrepublic.net/content/attachments/69 2d1324887166-repsheet.png/ Source: SWTOR Companion Gifts Guide: How to buy your love - OldRepublic.NET http://img252.imageshack.us/img252/2176/imperialg ift.png
Revive Companion everywhere
12/27/2011 - SWTOR Hacks, Bots, Cheats & Exploits - 4 Replies
If your companion dies and you run away at that time and are able to get out of the fight just summon an other companion and after that the dead one again.
SWTOR Res Companion Anywhere
12/20/2011 - SWTOR Hacks, Bots, Cheats & Exploits - 1 Replies
SWTOR Resurrect Companion From Anywhere Exploit/Bug/Glitch - YouTube
[Help]Hit a companion (5165)
06/19/2010 - CO2 Private Server - 0 Replies
hey guys i tried to add the attacks so that the companions can get meeled (or ranged/magic'ed)...i managed to make skills (scatter,ss,fb, guard to hit other guard) but i can't make skills like thunder,tornado,normal hit(from archer), or normal hit(meele) anyone can help me with this? guards are really anoying when they can't be hitted... thanks
Priest companion bot
08/27/2009 - PW Hacks, Bots, Cheats, Exploits - 46 Replies
Is there any 'bot' program out there specific for EP only (=PR for ID ^^), which can do any as follow : 1. Always follows main char, by flying at certain height or on foot, 2. Heals main char when hp reached certain point/percentage, 3. gives buffs after x minutes have passed, 4. can be set on/off to spam heal a char with the 'instant heal' skill (not the regen one, forgot what its called), number four is useful when having a char tanking a boss coz switching windows to do this is...



All times are GMT +2. The time now is 16:11.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2019 elitepvpers All Rights Reserved.