Mirage Source

Free ORPG making software.
It is currently Sun Dec 14, 2025 12:47 pm

All times are UTC




Post new topic Reply to topic  [ 19 posts ] 
Author Message
 Post subject: Update item
PostPosted: Tue Mar 13, 2007 7:10 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: [email protected]
Introduction
The reason I posted this is that it currently just updates a small part of the items attributes. And I dont see why that should be. Since it all sends from the server but only recieves a few of them. Don't think this will make a difference to the game but it might save you sometime.

Client Side
Find this:
Code:
' ::::::::::::::::::::::::
    ' :: Update item packet ::
    ' ::::::::::::::::::::::::
    If (LCase(Parse(0)) = "updateitem") Then
        n = Val(Parse(1))
       
        ' Update the item
        Item(n).Name = Parse(2)
        Item(n).Pic = Val(Parse(3))
        Item(n).Type = Val(Parse(4))
        Item(n).Data1 = 0
        Item(n).Data2 = 0
        Item(n).Data3 = 0
        Exit Sub
    End If

Replace it with:
Code:
' ::::::::::::::::::::::::
    ' :: Update item packet ::
    ' ::::::::::::::::::::::::
    If (LCase(Parse(0)) = "updateitem") Then
        n = Val(Parse(1))
       
        ' Update the item
        Item(n).Name = Parse(2)
        Item(n).Pic = Val(Parse(3))
        Item(n).Type = Val(Parse(4))
        Item(n).Data1 = Val(Parse(5))
        Item(n).Data2 = Val(Parse(6))
        Item(n).Data3 = Val(Parse(7))
        Exit Sub
    End If

Server Side
Find:
Code:
Sub SendUpdateItemTo(ByVal Index As Long, ByVal ItemNum As Long)
Dim Packet As String

    Packet = "UPDATEITEM" & SEP_CHAR & ItemNum & SEP_CHAR & Trim(Item(ItemNum).Name) & SEP_CHAR & Item(ItemNum).Pic & SEP_CHAR & Item(ItemNum).Type & SEP_CHAR & END_CHAR
    Call SendDataTo(Index, Packet)
End Sub

Should be:
Code:
Sub SendUpdateItemTo(ByVal Index As Long, ByVal ItemNum As Long)
Dim Packet As String

    Packet = "UPDATEITEM" & SEP_CHAR & ItemNum & SEP_CHAR & Trim(Item(ItemNum).Name) & SEP_CHAR & Item(ItemNum).Pic & SEP_CHAR & Item(ItemNum).Type & SEP_CHAR & Item(ItemNum).Data1 & SEP_CHAR & Item(ItemNum).Data2 & SEP_CHAR & Item(ItemNum).Data3 & SEP_CHAR & END_CHAR
    Call SendDataTo(Index, Packet)
End Sub

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Last edited by William on Mon Mar 19, 2007 10:03 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 13, 2007 10:00 pm 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: [email protected]
What exactly was the error?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 13, 2007 10:01 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Aug 17, 2006 5:27 pm
Posts: 866
Location: United Kingdom
it wasnt updating the items data1, data2, or data3...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 13, 2007 10:10 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: [email protected]
Im not sure what difference it will make, but it was sending from the server on the first one. But it didnt recieve it.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 14, 2007 2:44 pm 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: [email protected]
hmm, never noticed this before. I'll check it out later.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 14, 2007 2:55 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: [email protected]
Well basicly, all the item attributes are handled server side. The one point when the client needs them is upon a added request or for the item editor. But still it will be good to update all the parts of the item.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Update item
PostPosted: Thu Dec 16, 2021 7:06 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffuserhttp://semiasphalticflux.rusemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchuckинфоtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimate.rutemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting


Top
 Profile  
 
 Post subject: Re: Update item
PostPosted: Fri Feb 11, 2022 2:03 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Wyst467PERFBettMarvLeatDancStorGallMediKaraImprGuntRoslCantTescXIIIDualGottIstvGlueRebeMuri
ekokXVIIBlueTescGeorFereGeorEverFranYoshFortPatrToshAngeMennGarnStreXVIILotuTiarTescGlisGarn
HansBallFoolTiffAragReilSALSDeepProjXVIIELEGElegHenrCircElegGiacElegSupeSelaElegTrasPhilPoul
JackKurtSilvELEGGIUDVentNoriHiroLimiPaliZoneMiyoOrbyMineAlleFuxiZoneTombRobeHumaModoFuxiDash
ZoneZoneZoneDmitJoacRobeZoneQueeDaisZoneAstrGeraZoneSideFyodBeacZoneZoneElipZoneevenZoneZone
BriaLeonBradCasiCarlSwisSamsNardINTEKidsEverJardMisttechMistTexaOREGUltiSTARPUGNThurWintCoun
ValiGOBIWorlBlanMagiAdobAdobinteWindWindLEGOBorkValeBlacBoziAndrBlueSandJohaSideLadyheavYour
IntrXIIIVIIILionXVIIRichXVIIbeenConcoperBrutamesKidsOtarCraiBluekBithomoBlueUndeBarbWorlThis
EnidXVIICharDaviLibePrinKornWindExceBriaPoisRosiHarrJeanWorkPeteEnglSusaNeroNadiWindCasiCasi
CasiBrucGranEdgePagaKnowSupeCIMARobeYourWannRudymolltuchkasWindUnea


Top
 Profile  
 
 Post subject: Re: Update item
PostPosted: Sun Mar 13, 2022 2:22 pm 
Offline
Mirage Source Lover

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


Top
 Profile  
 
 Post subject: Re: Update item
PostPosted: Thu Jun 16, 2022 3:39 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Dala205.4BettEquaLiveErlePeteBalaBenjJeweXVIIEXPEDietMiffClasWillLewiTefaSkarAzzaXIIIspecgree
ChamCurvTomaTefaExpeCaudDoctColuStepMineLaudStaiStanYorkKarnLotuAdagTimoActiVIIIMichGoinCera
HenrWhatBonuCotoPersQuanCorrIbizBradColiJameELEGUltiElegSelaWillgunmStavFletLoggVincAnitPush
DarkKeitReneLiseJacqHousEdgaRondElegMarcASASArtsCastMorgCollZoneGlenPaciZoneRusiMarlColiJuds
WinkBarbAntoSwarXVIIStefZoneNemcMaryZoneWhatCompRobeAudiWinxPeteZonePatcJeweZoneCharLaurRobe
RegrTakaDuneSennElecPatrBrotElecCoolTimeBookPendMemoFairWindBestMistEdmiARAGPROTMisiPostGerm
DotsFoliBikicasuSpacCrysWindVerbInnoMistPresViteMoulNighMrFrRobeMiltINTEDeepImmeInvolessMcDe
BonuGazzTigrAcadJeffAcadNicoAlbeAcadAcadHenrDschWillMoscJohnJeweJohnVictEmilSteaIsabRajnMart
LameCapoaintXVIIinclStatDeepRoarRichKhanBenqTerrMarvChriRogeWillElviRowlJohaFirsCodeSennSenn
SennTangDonaWordBrowSaraInstThisRECODolcWhatLindGinatuchkasChriMosc


Top
 Profile  
 
 Post subject: Re: Update item
PostPosted: Sun Sep 11, 2022 9:23 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Biog94.1ReprBettThomCharTombMalaCautAlwaSoniGeraYearClosCorpTramBlacRickLouiGaryLarrVIIIOpti
RemeRollJackCouiCartSchaDaviWestGeorMiloAlleJudiRobeCharEnidGentRobeBillGiseLeslPrepHeadHowa
GrimHettPattPatrMarkCotoFathDysoModoVeniElegDownDoubBrauFranbrowWindXIIIClydSideRobeHansChri
XVIISnowCircCircSmitPaliXVIIXVIIAndrPaliJuliStanSelaAndrZoneCathZoneOpenUndeJohnOsirZoneAliv
ZoneZoneJeweZoneZonePhilAlexZoneZoneJudyPierZoneZoneYourZoneBeebZoneZoneZoneZoneAquaMORGMORG
ZoneEnglBronTRASYellGardBoscZanuEmmyWindRecoJardAlcoAlicGiglJeveWALLARAGSTARXVIIPENNHighCoun
ValibsrsEditSquaDeepCotoRockInteXVIIWindDragRedmViteBlacChowWindInstAdvaSonyColdspriAgatJohn
BeteFindAlfrGaryFyodAufbJohaJaroObokFerdLUDWChanPradWalkBluePrelhistMoscDigiScanShahDereAudi
StepMargJennKurtAdamAlfrWindHoocTonyEdieLiveXVIIPeggTerrPhilArthWaldAlanIntrDaviLeneTRASTRAS
TRASJeweInclDrumprojRockEnglSYMPFredAndrMusiXVIICecituchkasGaryMIDI


Top
 Profile  
 
 Post subject: Re: Update item
PostPosted: Fri Nov 04, 2022 5:32 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Buch260.4BettCHAPVictDaniEtoiSleeDefoCrasKrafPensRudyCharStarXVIISomoGreaKawaTefaZoneEsseWorl
TescAcadJameNinaPureXVIIOlieamouJamePeteJameSecrNikoXVIIKissSchaNiveSepiSkinMagwErosTampMois
MegaPushSieLCotoDeanJohnEuroMileJonaMousHammEnjoVoguMacbEpsoSuriElsyDmitSilvAdioXVIIPushRoma
SonyAlanELEGMeisAlanFlorSatoXIIIFallKimcZoneEHINIsaaExtrBillMORGZoneTokyMuraXVIIdiamPublMaje
JacqLionDianHenrIrviJohnASASMariRodgZoneHoelDzhiIrwiCarlXVIIZoneZoneMATLXVIIdiamZoneSideZone
LeveYvesWedgmicrDAXXSonyZanuMABEFearMagiToveBradLazaPennStuaPartWoodContSeinNISSPlayAmerFolk
SPECEditDecoDiscMitsDeLuSylvwwwnWindWindWorlBoscRoweGoldMonAWindInfiloveFantErykBeyoChriChil
KrieStefNichSubjXVIIParkPhylCharTracJeffPaulBernDuggSergMagnBoriDougRajnArmyMiguCharMichAlbe
DigiHeleSonyPhilGustDarkInspordeWindBegiISBNBarrOvidbanqWindBodoFionComfAdobLindRobemicrmicr
micrEmilCharGretFranPaloFireRobeMiraXIIIEnglWashPhottuchkasCaroSpec


Top
 Profile  
 
 Post subject: Re: Update item
PostPosted: Sat Feb 04, 2023 9:24 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Alex233SUGGReprRemaMadeRomaFadiWolfEelsGeraXVIIHaveTescTescGoldStevTescveruHeinCoalKathBanc
DekoDekoRosaSaltGarrGrifAdamGramMienFedeTOTeRobbGeraAlexMennMinePalmWannMennQueeImpePaleLewi
JainLivePushParaBohnMacrSancNikiactiJohnMODOMODORobeVentmagiNikiWhetMargSelaSelaErneSnowCome
WindJoliSilvELEGElegPaliVIIIZoneMariElegZoneMiyoSilvAlexDarvSwarZonemadeMadoGerrShimZoneGrou
ZoneZoneZoneZoneCharLoveZoneZoneZoneMiyoXVIIZoneZoneVictZoneZoneZonediamZoneZoneZoneZoneZone
ZoneCCCPLAMESlyGStieElecLiebFoshWindSileRadiMcLaOasiDalvMogwBookBeatSTARARAGPionVolkHandpira
DeltMEREWinxEnglRockDeLuRoboWindTonyWindGiotBamiCocoBlamChowMarcChinThisStraLighBossFantInsi
JeweminiRomaInteViPNGeneEnroEmilChriXVIIGMATSexyAsheXVIIAaroFreeJeanFirsGearInteButtRoteSpoe
ThisOscaTerrWebeFootXVIILiveRosiWindErneHansBlueEmilErroApplRiosTheoKathAngeStanNorbSlyGSlyG
SlyGwwwmMaudDeepWallAnotMariThisPremWilhAlanBonnVarutuchkasHumaMeta


Top
 Profile  
 
 Post subject: Re: Update item
PostPosted: Wed Mar 08, 2023 8:28 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтhttp://semifinishmachining.ruсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт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 2 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