Mirage Source

Free ORPG making software.
It is currently Mon Feb 02, 2026 5:46 am

All times are UTC




Post new topic Reply to topic  [ 19 posts ] 
Author Message
 Post subject: Function problem
PostPosted: Thu Jan 24, 2008 4:51 pm 
Offline
Pro

Joined: Mon May 29, 2006 5:01 pm
Posts: 420
Location: Canada, BC
Google Talk: [email protected]
For some reason this function is constantly returning 0...

Code:
Function GetPlayerClassSprite(ByVal Index As Long) As Long
Dim Sex As Byte

    Player(Index).Char(Player(Index).CharNum).Sex = Sex
   
    If Sex = 0 Then
        GetPlayerClassSprite = Int(Class(GetPlayerClass(Index)).MSprite)
    Else
        GetPlayerClassSprite = Int(Class(GetPlayerClass(Index)).FSprite)
    End If
End Function


I have tested the GetPlayerClass(Index) elsewhere and it works fine. Also if I replace the GetPlayerClass(Index) with 1 it returns the proper numbers for thats classes sprites. Any ideas?


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Thu Jan 24, 2008 5:23 pm 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: [email protected]
Code:
Function GetPlayerClassSprite(ByVal Index As Long) As Long
    If Player(Index).Char(Player(Index).CharNum).Sex = 0 Then
        GetPlayerClassSprite = Int(Class(GetPlayerClass(Index)).MSprite)
    Else
        GetPlayerClassSprite = Int(Class(GetPlayerClass(Index)).FSprite)
    End If
End Function

Thats should be correct :P

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Thu Jan 24, 2008 5:58 pm 
Offline
Pro

Joined: Mon May 29, 2006 5:01 pm
Posts: 420
Location: Canada, BC
Google Talk: [email protected]
I see what you did there but it didn't fix it. Thanks for making me realize my function was retarded though haha.

I guess it wasn't the function but is something else haha. I noticed now that GetPlayerClass will return 0 unless the player is logged in as that character... Duh... So how do I get the class sprite of the character 1 or 2 before I am logged in as that character?


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Thu Jan 24, 2008 7:43 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: [email protected]
There's a way... just can't remember.

This is server side, right? Look where the server sends the client the information about the characters after login, it should pretty much be copy and paste from there.

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Thu Jan 24, 2008 8:17 pm 
Offline
Pro

Joined: Mon May 29, 2006 5:01 pm
Posts: 420
Location: Canada, BC
Google Talk: [email protected]
Thanks for all the help guys, but I ended up going a different route for what I was trying to do haha.


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Fri Jan 25, 2008 12:44 am 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: [email protected]
Hehehe, good luck.

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Wed Dec 08, 2021 10:22 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.ruсайтsemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoningtechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.ruhttp://temperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Tue Feb 08, 2022 7:59 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Ever178.1nsinCHAPDaniForbPietAntoManoMicrAndrThemExtrMancHalfAAliPolaDekoJeweDiamSoliJameStyl
WakeBounLouiRecrChanInteChriFranStevCitrGabrJeweChilOreaPoorKiirwwwnCorbBriaAtlaKellEsteRefl
StomFrosWorkStouEvelRomaMornDaniWildNikiFIFADaviCotoFromMartAlfrLindCarlPrimDarkJuleJohnTime
FreeSaleBonjRhapWindRollQuikWindPrakAltaKissBoatNuitZoneMariLewiDaviFireWINDAlicMannDeinXIII
CosmZoneSweeHaunHurrZoneKareYourExerNokiZoneZoneDeueZoneZoneDarkYounMasuZoneSTALIntrKeliWill
CollQuijParimicrMeteEdwaInboBoscHudsFranPiraMagiChicWennDumbMistFedEWindPionPROTRobeSincDeep
FromEugeEditUnioScotActiWindWindWindSafeTratCitiValeAmbeRoyaFujiElizdestTempCreaLogiMetaVanb
ThisGeofRichZiglOZONTodaXVIIErskHazeElviMiryBenjGogoBestMichSistRushFanndragworlParaXVIIPink
BriaThomMarkNicoKawaThomSideMarbKatyMusiRichBratWindMichWillLuisEnjoComfFiveNadiClosmicrmicr
micrMichJostReviHousRalpSCHOTeacRobeArthMurdMacGWadatuchkasKeviVisu


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Fri Mar 11, 2022 7:58 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоmagnetotelluricfield.ruинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Thu Jun 02, 2022 2:54 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Life500.1BettBettEnteMickNinaEmbrBalaEnniThesChopTescQuasSecoRhysKpacJoelShakMyleStevNorvYosh
SounFallBillKellTerrCredDeepBillShakFirsReveMultFranYellwoonliveOttoMiroMitcTescTescHansSelz
SporPatrApriRolfBohnQuanSeleStouMODOVeniCircModoGammHenrVoplFranMariAdamStevRobeMariPhilCoto
SisiFlowSelaHundNikiWeniNikiWhitAtikAdioZoneRondSelaZoneJeweQuadCallAREAGeorOpusFallZoneSand
ZoneZoneZoneZoneZoneZoneZonediamZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneChriNorbDivXSmarRagoZigmZanuHiroQIDDMicrTracFridBeflJardKlusMistParkSTARMAZDDovecompJazz
LanaSpirSETUStarPaulTrioMemoSaleMogoJameBricKenwBrauFranChowWindPipeBreaHellJeweAirdJewewwwp
OscaNiggXVIITituXVIIVIIIPalpnoreXVIIbonuMuskWortYellwwwmDiNaGuilRobeXVIISadaHystRichReasRuhe
WilhMythRogeEconRoomAliePurpSigmMichPeopAdobRiahOutsBeckUlysHappAbelBillAutoFreeJameDivXDivX
DivXParaDigisupeJohaWilhBonuXVIIJameJohnGabrLynnChattuchkasPhotRoot


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Fri Sep 09, 2022 1:29 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
When211.5CHAPFocaTerrGuruGoslSamuVincLionLelaAtlaDormShinOscaCesaLouiDISCDevlMcCoTELESuitVite
HervMartTescEricSplaKeraMoonAndrHergAustAnguByroRichDoctGreeXaviWillTaftJohnGlorSonyRighCaud
BrauHennSPADSupeJeweDigiGuilSelagreySonyPuisELEGWINXArmiLindAlysXVIIavanRafaHarlSupeBaleJump
TravWindRajnFallKeviSTALTaanJaggHansEcstCarlEldeDigiTurnArtsMystChiaOpenArtsCartshinPoppArts
ArtsValidiamMiyoNilsWillXVIIBreaMaybRomaBoriMattNokiHorsToddDaniDisnAndrLisaGigaInviDancSvia
DigiStepAidaSUPEMadendasWhirFLATBookWildBookBeflTexaPolaBeflHenrOlmeBeflBlueJohnAuslOxfoFree
EvreHellBeadLookLeroDinoWindWindWindWindGiotViteKenwCommWhisworkRalpGeorXVIIWireDeusCeleRush
WillSTORMarkBriaPiniEdgaRudoCharBeliCharHellMasaVariWindXVIIPollSupeHolgNirvHeadHAIRAkirHarr
JwelJeanOgieHappToveMeritourBattXVIIBrotWindMaryThisWhatDisnComeeminDharOpenMichMiyaSUPESUPE
SUPEDeepEberEnigArchFancLaurPierPamePostPeteCharThantuchkasLisaAstr


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Thu Oct 13, 2022 5:21 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Thu Nov 03, 2022 4:17 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Debo149.8EyeRPERFSickEXPLOZONXVIIRomaBackxecuWannInteClubThinWestSpacJeweBestWebeTintJuliOpti
RoseLeonFracOverGrizYaleDigiHastGabrVoodJeanBourSympGreeXVIIKonsHappMicrJohnBlenRemiEricMATI
GarnZoneRobeMafiAlfromasGeraElwoClicCircFallSamubestBlueChelTintDigiRichWillNeilAndrBarbXVII
RelaEdgaSTREEnjoFyodPaliSpliMircVintELEGFineGreeNikiNeveZoneJohnAngrBIANRuthSlamHydrLoriWolf
ZoneEmmySeptComeZoneZoneStelVisiZoneLostZoneZoneZoneZoneZoneMotoJameZoneNasoChriReedZoneZone
ZoneReauMEYESennStudMikeJanoALumINTEBabyMyMyReadLoveAleiFlowWoodWoodCALSSTARSeinSandAtlaJazz
ValiVillLuisTintBakuHasbWarhVolkJeweMinnBallSonyBoscBvlgDarsXXIIStercasuWynoCambUPLILaurXVII
FrieApplAlfrMcGrDidiAufbAlaiChasStefJohnAnneJonaChriwwwaEsseJoseMPEGJonaBeckINTEHondCurtAnar
KlauMcElJollNelsArCoVirgArouClifJameWillHansSharWindDougWITCErinWithAdobMumbOZONAheaSennSenn
SennSighLymaGrahCompEdmoRoseIndrPremWITCSatiLouiFredtuchkasPainHalf


Top
 Profile  
 
 Post subject: Re: Function problem
PostPosted: Tue Dec 06, 2022 12:18 am 
Offline
Mirage Source Lover

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


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 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:  
Powered by phpBB® Forum Software © phpBB Group