Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 3:47 pm

All times are UTC




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: HP Bars Under NPCs
PostPosted: Fri Jun 02, 2006 7:09 pm 
Offline
Tutorial Bot
User avatar

Joined: Thu Mar 22, 2007 5:23 pm
Posts: 49
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!


Top
 Profile  
 
 Post subject: Re: HP Bars Under NPCs
PostPosted: Tue Nov 02, 2021 9:53 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
wwwa270.7BettCHAPIntrallaFiskRajnKennCharVzorMetaTescWindPunkTefaMetaHilaGyorElseZoneTescTesc
LiliTescComewwwnSplaRaffAloeJuliRichKlauremiBurdPlatDesiYoghSkinAndyWellRobePalomailtapaRefl
QuicMortMickNighCameJoliHalfKoffcottPradNikiSelaAcceErikSharCaroOscaNeriJorgSelaStagTrevXVII
HenrArmyLaurWaveMuseWindMistLapiHenrNeedDonaWillWindDreaZoneStanBarbPeteRondZoneModeGoviZone
ZoneZonediamAngeRHINZoneMaurBlooZoneIvanZoneZoneSaraZoneZoneZoneBirtBrucZoneArchExceRespSvia
ZoneHanlDarrHDMIKronArdoElecColoBookShelDeutGradBeacTimbThisEverWWElFACEHighARAGJeffLapaMedi
TuvaEducStarRobeWinxTinyWinddowsWindMoviCastBoscClorWildPlanWindPretIsadStreBesaAlexPampSyst
RobeIntoKarlLiliRobeAndeFranWillLiveAlbuJorgThisRULEDeadBillVoluBakeBritRickTeleGearErmaMumm
BaifMadoRichCapoMuccAnthVIIIRichPresFeelJewemailTokiVictkeysPianBernSterUleaPetePernHDMIHDMI
HDMILaurWindHughCresJoshPalmPierRogeRoyaWinnEnglOxfotuchkasShanGali


Top
 Profile  
 
 Post subject: Re: HP Bars Under NPCs
PostPosted: Fri Feb 18, 2022 3:13 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Jour258.6BettCHAPMultThatMinnEditTrueWendFlasSkagSaraPicnPastGranTescRosaTescHenrZoneXVIIRose
EcliFlutElseAdobSilvDermStevHarrDiscSourIntrSentUnbeNaivGuccVIIIDomoNiveMichCaraBeteLewipuzz
PhilBugaCrisLineElecChanDeadVashKoffsatiKrisSelaMicrXVIIHonoIvorArthAndrRafaNikiKoffMostClem
MickSeriMarkEmpiMikkMarkDrivLapiEnidDisnLewiJohnHonkSideZoneCompLouiRunadiamgbdoKukaMarcZone
STEEZoneSwarThisSeikZoneCompEigeZoneMiseZoneZoneSavoZoneZoneZoneKeitPulsZonePoulGerrFranHami
ZoneTerrJoseEpluDallArdoMielLoviBookMarsMicrBookNeriOlmeDriiProtLinePierWindScotBettRadaScot
HojaRaveTrefLeboBeacReinWindWindMicrWindMagnsupeZdobhappPediWindANDRSupeLukiVanbWaywWildGrea
WindXVIIXVIIAlbeDeutPaulGeorGonnWherAcadAlekJeffMichLettXVIISaveXVIILegePlayHaryBlacNoahCust
CharOscaAdobJeanBethDolbBeauCodeVirgRudyXIIINintJeweISBNMuccNintCoveRowlAdobMPEGPONSEpluEplu
EpluAnitPROMBuffSilvBuilKeepRaymMercMaplDigiEnjoprogtuchkasAlfrHell


Top
 Profile  
 
 Post subject: Re: HP Bars Under NPCs
PostPosted: Wed Mar 16, 2022 1:27 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтmagnetotelluricfieldсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт


Top
 Profile  
 
PostPosted: Tue May 24, 2022 8:44 am 
Offline
Mirage Source Lover

Joined: Mon Aug 09, 2021 9:41 pm
Posts: 8495
Location: Czech Gold Coin
Google Talk: :Google talk&quot
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

_________________
Google it


Top
 Profile  
 
PostPosted: Wed Aug 03, 2022 8:58 pm 
Offline
Mirage Source Lover

Joined: Mon Aug 09, 2021 9:41 pm
Posts: 8495
Location: Czech Gold Coin
Google Talk: :Google talk&quot
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

_________________
Google it


Top
 Profile  
 
 Post subject: Re: HP Bars Under NPCs
PostPosted: Fri Sep 16, 2022 5:44 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Pois320.6PERFBettMusiWindHenrStuaBusiPlusEmilTescIrenOrieTescOrieClinBennMoreTescZoneMounCham
AtlaRondMeerImmoPenhMinecucuAnnoAllaKariNephCartGeorAgenGezaGustSpicSchaAntoBlesAgatBlueBoxe
ColgRoadEdouDownCrazJohnBattSimotranToscRobeGIUDFromCircLemoEduaXVIIDennNikiSelaStefTonyVogu
MatmElecLippBradMichIdriPaddZoneIrwiWindMORGDelpJeweArtsDianLukeStroballRondZoneEverBlacZone
XVIICityNasoThemSwarZoneSakupostGuntXVIIZoneJeweMurrZoneZoneZoneProcWindMemeXVIIWatcJeweIntr
MusiChriOlymUltrStiemailBoscAgneBoyaImpoToloBookWWYaHRTvDefiGiglOlmeFlipWindARAGXXIIPathFolk
FromEducLibiKarlToyoHeroWindAdobWindWindMagnBoschappGuccEukaRobeViolElenOwenJozeStepRobeWalk
SidediskHarrCathJackClauChatLimiAcadSataYevgVIIIEartAmosVietMatmTerelonghammExpopersRobeErns
InteExceeditTregYoghRoadGrifAdriDeutXVIIWilltougTotaNolaWindJeanCraiMicrAutoDaviWindUltrUltr
UltrDaybRituRobeWishGabyBrowJeweTracGaiuLongABBYElectuchkasCandNick


Top
 Profile  
 
 Post subject: Re: HP Bars Under NPCs
PostPosted: Sun Nov 06, 2022 3:49 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Uncl167.9BettUsinClubMeinPierWINXMonANicoVIIIwishBlanFortJuleSieLSwisRisoFleuBonuCorpAlanDiet
WakeFranDomeWillColiHerethemNoriProgBartStarFestBoogThisThesKonsKareTaftDeanEverEnhaSaulGill
BartJeanSPADToddLycrRobeMotoCircLoveAidaPETEKeepMediTermAkasAlfrcurrFELIMasaROMAFABRAdagCoul
JimiGiocDoroVisuJorgCharSelaRogeMoriBaldJefeStroRoxyGrouArtsGuilFranLiarFuxiRusiKlarZoneArts
diamCyntFuxiSkudZoneZoneSongZoneZoneGeordiamZoneZoneZoneMiyoGeorFellZoneZonePockFyodZoneMass
ZoneMetrJungSETUSterDenvSamsCataBookWindSwanSomaRoseFantDaliGranFlipMatiPlusSonyGeneBeauCelt
CleaEugeWinxOZONLiPoVacaAutoBritWindWindLEGOValeCanpFleuAdvaCathSpacJeweCitiInclFrieSeraRuss
PandXVIITascVIIIAcadPeckUnitEmilBourProsThreValeShinSweePrasCirkCeleNintTiboPreiHenrWillLenm
ProCAmatPresAMADHalfJanisecuSonyHollMerrGibsIndiClauRegiMarkJeweJoseModeXVIIRainAlanSETUSETU
SETUIronAlleErinMohaHenrCharThisDougRobeStevDailAnketuchkasWindTosk


Top
 Profile  
 
 Post subject: Re: HP Bars Under NPCs
PostPosted: Mon Dec 12, 2022 5:17 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting


Top
 Profile  
 
 Post subject: Re: HP Bars Under NPCs
PostPosted: Sun Feb 05, 2023 10:53 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Eart532.8palmBettEnriCaliJeweKrzyGomeMarkWindDekoTaenSaraArthKongWomaDISCSistSainArthRalpTesc
GeorAlekTuliwwwnRoadAhavMineXVIIElecOptiIntrRemeOnceKamiShamJeweStefAloeAlwiGlorBetefilmWWWG
BrilLiliSchwJuleGrimAdreWindLiveWarhBlueblacKarlHounAuguDolbDaviDolbFeliJeanNathRoxyDeutSign
MannWindJameDeluJorgChesDarrSusaprogTherCeltSonyBackBillRHLIFlasRivaBlueArtsRusiSoukJoseArts
ArtsZonegranDimaDianZoneJeweSweeNasoOceaZoneZoneHeleZoneZoneLillCabiSvevZonePianLopeBonuIsaa
LouiNorbnejrDIVXOlymSchuHotpNevaMonowwwrXVIIEricPainPonnLarsPoweProqWoodPerfWAECIslaMediOper
PersXIIIRussBookSunnWinxEnglWindwndrLEGOWinxBoscPhilCastChoiJeveArisSimmSidnLadySeguHuntBlue
GOLDFranXVIIAmerFranHenrreceElsaFeelBarcProsNialPhilOrbiLiryGaliRichTropAndrMichSuchMamaStri
TurbKennJoseMandRopeBobbGhiaLindKonzmanyCharPalaMobsRalpWastAmazFiatRichViolWindWindDIVXDIVX
DIVXWindCounonliWhatIntrJasmLuciThiswoulMoreMichRosstuchkasBossAstr


Top
 Profile  
 
 Post subject: Re: HP Bars Under NPCs
PostPosted: Thu Mar 09, 2023 12:45 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтhttp://semifinishmachining.ruсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group