Mirage Source http://web.miragesource.net/forums/ |
|
HP Bars Under NPCs http://web.miragesource.net/forums/viewtopic.php?f=210&t=95 |
Page 1 of 1 |
Author: | Tutorial Bot [ Fri Jun 02, 2006 7:09 pm ] |
Post subject: | HP Bars Under NPCs |
Author: GodSentDeath Difficulty: 1/5 :: SERVER SIDE :: In modHandleData add the following anywhere: Code: ' ::::::::::::::::::::::::::: ' :: Npc hp request packet :: ' ::::::::::::::::::::::::::: Dim Pack As String If LCase(Parse(0)) = "getnpchp" Then Pack = "npchp" & SEP_CHAR For i = 1 To MAX_MAP_NPCS n = MapNpc(GetPlayerMap(index), i).Num Pack = Pack & MapNpc(GetPlayerMap(index), i).HP & SEP_CHAR & GetNpcMaxHP(n) & SEP_CHAR Next i Pack = Pack & END_CHAR Call SendDataTo(index, Pack) Exit Sub End If :: CLIENT SIDE :: In modHandleData add the following anywhere: Code: ' ::::::::::::::::::: ' :: Npc hp packet :: ' ::::::::::::::::::: If LCase(Parse(0)) = "npchp" Then n = 1 For i = 1 To MAX_MAP_NPCS MapNpc(i).HP = Val(Parse(n)) MapNpc(i).MaxHP = Val(Parse(n + 1)) n = n + 2 Next i Exit Sub End If In modTypes find "Type MapNpcRec under HP As Long" add: Code: MaxHP As Long Now in modGameLogic, under: Code: ' Blit out the npcs For i = 1 To MAX_MAP_NPCS Call BltNpc(i) Next i Add: Code: ' Blit out NPC hp bars Dim GSD2 As Long If GetTickCount > GSD2 + 500 Then Call SendData("getnpchp" & SEP_CHAR & END_CHAR) GSD2 = GetTickCount End If For i = 1 To MAX_MAP_NPCS If MapNpc(i).Num > 0 Then Call BltNpcBars(i) End If Next i Finally, at the very bottom of modGameLogic add: Code: Sub BltNpcBars(ByVal Index As Long) Dim x As Long, y As Long x = MapNpc(Index).x * PIC_X + MapNpc(Index).XOffset y = MapNpc(Index).y * PIC_Y + MapNpc(Index).YOffset - 4 If MapNpc(Index).HP = 0 Then Exit Sub Call DD_BackBuffer.SetFillColor(RGB(255, 0, 0)) Call DD_BackBuffer.DrawBox(x, y + 32, x + 32, y + 36) Call DD_BackBuffer.SetFillColor(RGB(0, 255, 0)) Call DD_BackBuffer.DrawBox(x, y + 32, x + ((MapNpc(Index).HP / 100) / (MapNpc(Index).MaxHP / 100) * 32), y + 36) End Sub That's all! |
Author: | FrankJScott [ Tue May 24, 2022 8:44 am ] |
Post subject: | Updated Outsourced CFO Details |
In response to the guy talking about can an llc be a benefit corporation, best cover letter for cfo position, how much to cfo make, outsourced cfo services, what is outsourced bookkeeping services, what is outsourced payroll services, I highly recommend this new outsourced cfo url or what it services can be outsourced, how much does a cfo make per hour, how much money does a president of a hospital make, how much do amazon get paid, can an llc have a president, how much does a ceo make a day, as well as this top rated outsourced cfo advice alongside all can an llc have two ceos, what does a financial.controller do, what is outsourcing and how does it work, what is outsourced bookkeeping services, what does an outsourced cfo do, can a single-member llc have multiple owners, as well as this recommended outsourced cfo details which is also great. Also have a look at this awesome outsourced cfo details and don't forget how do you write a cover letter for an executive position, can an llc be only one person, how much do cfos make in nyc, outsourced cfo services engagement letter, how much does amazon get paid, how to write a cover letter for a vice president position, as well as this top rated outsourced cfo link and don't forget outsourced cfo services hedge fund, how much money does a private hospital make, does an llc need a ceo, outsourced cfo services kansas city, how much does an owner of a hedge fund make, how much did amazon ceo make, on top of new outsourced cfo site which is also worth a look. I also recommend this awesome outsourced cfo info alongside all can an llc be owned by one person, how much money does a president of a hospital make, how much money do cfos make a year, how much does a hedge fund make, how much does a hedge fund make per year, how much does a cfo make in australia, and don't forget this great outsourced cfo tips alongside all how much money does a private hospital make, is the owner of an llc the president, what is outsourced cfo services, how much money does a chief of a hospital make, should i create an llc or a corporation, can an llc be converted to a corporation, as well as great outsourced cfo tips which is also great. Finally, have a look at this recommended outsourced cfo url for good measure. Check more Updated Found Business Online Url db38eb8 |
Author: | FrankJScott [ Wed Aug 03, 2022 8:58 pm ] |
Post subject: | High Rated Crystal Hair Remover Tips |
In response to the people talking about bosidin permanent hair removal, ladies hair removal, vellus hair removal, laser hair removal pubic area cost, underarm laser hair removal near me, finishing touch flawless legs hair remover, I highly recommend this top magic crystal hair remover forum or kenzi hair removal, roseskinco laser hair removal, underarms laser treatment, laser hair removal legs, xsoul hair removal, soprano ice laser hair removal, as well as this great crystal hair eraser details on top of laser hair removal prices, permanent armpit hair removal, permanent beard removal, upper lip hair removal at home naturally permanently, no no micro, laser hair removal butt, on top of this useful magic crystal hair eraser tips which is also great. Also have a look at this high rated crystal hair eraser details alongside all laser hair removal offers, nood hair removal, depilatory roll, veet near me, fotona laser hair removal, rem spring facial hair remover, as well as this awesome magic crystal hair eraser site not to mention smooth glide hair removal, underarms laser treatment cost, no no micro, underarm laser hair removal cost, best at home hair removal, best laser hair removal for dark skin, as well as top rated crystal hair remover blog which is also worth a look. I also recommend this great jeelly crystal hair eraser advice as well as epilate, hair removal cost, permanent hair removal cost, hair threading, peach fuzz on face, flawless hair, on top of this excellent magic crystal hair remover forum on top of hair removal for women, personal laser hair removal, depilatory, ear hair removal, ipl underarm, full body electrolysis, alongside all updated crystal hair eraser info which is also great. Finally, have a look at this great crystal hair eraser link for good measure. Check more Excellent Crystal Hair Eraser Blog 06_f701 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |