[Req] Npc Boss HP Bar

Submit your code requests, and if you are good at coding come help others with their requests.
Blizaga
Regular
Posts: 68
Joined: Sat Jul 08, 2006 7:39 pm

Post by Blizaga »

<span style='color:green'>Hello, I would like to know if someone can post how to set up (or how you think it should be made) a HP bar like this, from Ultima-Alianza server:

<a href='http://imageshack.us' target='_blank'>Image</a>

Something I've found out is that It's a sprite with only the HP bar, not added with the Boss sprite, and that the monster HP may have some commands related with the magic Scan, but trully I don't have a clue of how they made it work.

Thanks in advance!.</span>
<a href='http://imageshack.us' target='_blank'><img src='http://img224.imageshack.us/img224/2738/screenqu8.jpg' border='0' alt='user posted image' /></a><br>drajwer draw<br><a href='index.php?showtopic=7299' target='_blank'>index.php?showtopic=7299</a>
youth89
Loyal fan
Posts: 239
Joined: Sun Mar 07, 2004 8:57 pm

Post by youth89 »

I honestly know just a tinsy bit about programming, so take my advice with as a grain of salt: perhaps creating a new button, then synchronizing it with a monster. Then create a new button that will decrease along with the monsters health.

Hope that helps =(
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

all monsters have a Sting in code for when your mouse is on them showing there name, i dont know how HB did there progress bar but i guess u can just copy progress bar of your HP and add it to the NPC, im sure somewere in Npc info it has there Helth, cuz how els would it tell its alive or dead ;)
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
Blizaga
Regular
Posts: 68
Joined: Sat Jul 08, 2006 7:39 pm

Post by Blizaga »

<span style='color:green'>This is how the sprite looks like the name is 'New Buffer':

<a href='http://imageshack.us' target='_blank'>Image</a>

A full bar and an empty bar, post some ideas like before

Many Thanks.</span>
<a href='http://imageshack.us' target='_blank'><img src='http://img224.imageshack.us/img224/2738/screenqu8.jpg' border='0' alt='user posted image' /></a><br>drajwer draw<br><a href='index.php?showtopic=7299' target='_blank'>index.php?showtopic=7299</a>
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

the server does not (by default w/o editing) send the monsters health information, scan recieves a text string of the hp from the server, but otherwise the client has no way of knowing, so you need to append the monster send/read data, and then follow the things already listed here
-><-
Blizaga
Regular
Posts: 68
Joined: Sat Jul 08, 2006 7:39 pm

Post by Blizaga »

<span style='color:green'>How come the client knows when some npc dies then?.</span>
<a href='http://imageshack.us' target='_blank'><img src='http://img224.imageshack.us/img224/2738/screenqu8.jpg' border='0' alt='user posted image' /></a><br>drajwer draw<br><a href='index.php?showtopic=7299' target='_blank'>index.php?showtopic=7299</a>
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Its either Alive or dead is what the Client I believe knows. But i'm no genius at this..
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

this is how the client knows its dead

Code: Select all

SendEventToNearClient_TypeA(iNpcH, DEF_OWNERTYPE_NPC, MSGID_EVENT_MOTION, DEF_OBJECTDYING, sDamage, sAttackerWeapon, NULL);
	m_pMapList[m_pNpcList[iNpcH]->m_cMapIndex]->ClearOwner(10, iNpcH, DEF_OWNERTYPE_NPC, m_pNpcList[iNpcH]->m_sX, m_pNpcList[iNpcH]->m_sY);
	m_pMapList[m_pNpcList[iNpcH]->m_cMapIndex]->SetDeadOwner(iNpcH, DEF_OWNERTYPE_NPC, m_pNpcList[iNpcH]->m_sX, m_pNpcList[iNpcH]->m_sY);
	m_pNpcList[iNpcH]->m_cBehavior = DEF_BEHAVIOR_DEAD;
-><-
Blizaga
Regular
Posts: 68
Joined: Sat Jul 08, 2006 7:39 pm

Post by Blizaga »

<span style='color:green'>Where is Shetar, he could do this easily :D .</span>
<a href='http://imageshack.us' target='_blank'><img src='http://img224.imageshack.us/img224/2738/screenqu8.jpg' border='0' alt='user posted image' /></a><br>drajwer draw<br><a href='index.php?showtopic=7299' target='_blank'>index.php?showtopic=7299</a>
Drazz
Regular
Posts: 52
Joined: Mon Dec 08, 2003 4:10 pm
Contact:

Post by Drazz »

Blizaga wrote: <span style='color:green'>Where is Shetar, he could do this easily :D .</span>
me too :lol:
<img src='http://drazzt.iespana.es/Drazzt/logo2.jpg' border='0' alt='user posted image' />
Blizaga
Regular
Posts: 68
Joined: Sat Jul 08, 2006 7:39 pm

Post by Blizaga »

<span style='color:green'>You are not going to post it.</span>
<a href='http://imageshack.us' target='_blank'><img src='http://img224.imageshack.us/img224/2738/screenqu8.jpg' border='0' alt='user posted image' /></a><br>drajwer draw<br><a href='index.php?showtopic=7299' target='_blank'>index.php?showtopic=7299</a>
Blizaga
Regular
Posts: 68
Joined: Sat Jul 08, 2006 7:39 pm

Post by Blizaga »

<span style='color:red'>biatch!!</span>
<a href='http://imageshack.us' target='_blank'><img src='http://img224.imageshack.us/img224/2738/screenqu8.jpg' border='0' alt='user posted image' /></a><br>drajwer draw<br><a href='index.php?showtopic=7299' target='_blank'>index.php?showtopic=7299</a>
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Stop spamm Blizaga.

Drazz if you can do it , do it.
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Blizaga
Regular
Posts: 68
Joined: Sat Jul 08, 2006 7:39 pm

Post by Blizaga »

Tafka12 wrote: Stop spamm Blizaga.

Drazz if you can do it , do it.
<span style='color:green'>He's ultima alianza coder, he won't give it away.</span>
<a href='http://imageshack.us' target='_blank'><img src='http://img224.imageshack.us/img224/2738/screenqu8.jpg' border='0' alt='user posted image' /></a><br>drajwer draw<br><a href='index.php?showtopic=7299' target='_blank'>index.php?showtopic=7299</a>
siemprefuertes
just visiting
Posts: 5
Joined: Sun Jan 01, 2006 7:24 pm

Post by siemprefuertes »

Que tonto eres Prisma... primero intentas pillarte un PJ en el UA con fotos de hace ya un año, y ahora intentando pillarte los códigos de Drazz para a saber la mierda de server que tienes o lo que quieras hacer xD
Post Reply