Mirage Source
http://web.miragesource.net/forums/

On event module/sub ?
http://web.miragesource.net/forums/viewtopic.php?f=201&t=1471
Page 1 of 11

Author:  Coke [ Thu Mar 08, 2007 11:44 pm ]
Post subject:  On event module/sub ?

Well i was thinking, everyone here seems to be using complex timers, checks etc blah to send updates on things like experience, skills all that stuff...

Would it be plausable to simply go through the source and avoiding timers etc simply add a call to an 'on event' module. In this module it would basically resend all the players information like exp, hp, skills etc etc. Surely this way your only calling the information when its needed.. i.e. you kill a monster, the server goes yay call on event and sends you your info.

Surely this would eliminate packet spamming.. and even though it is one hell of a tedious job tracking down every single part of code where something related to the player changes wouldnt it be massively beneficial?

Just wondering since i am thinking of going through a version of ms and doing it... the theory sounds perfect to me but i might be being a total retard and barking up the wrong tree... :roll:.

Author:  William [ Thu Mar 08, 2007 11:57 pm ]
Post subject: 

Not sure it will help that much. I made something similar for my buff spells. In:
Code:
Sub GameAI()

This will eliminate the possible timers you have, for example:
At the top add:
Code:
Dim XTickCount as Long, XFirst as Byte

Then at the bottom add:
Code:
If XFirst = 0 Then
  XTickCount = GetTickCount
  XFirst = 1
End if

' Make sure we reset the timer for door closing
If GetTickCount > XTickCount + 1000 Then
  Call CheckSpawnMapItems
  XFirst = 0
End If

That will replace the tmrSpawnMapItems. But it wont make much difference. Could you give an example of a sub that you mean can be done this way? I know you mean a check if something is changed, thats just a matter of adding to the Rec.

Author:  Coke [ Fri Mar 09, 2007 12:01 am ]
Post subject: 

Well, for example a problem i have had in the past is totally live stats and a working live experience bar, the experience bar is easy to make live by just flooding the client with experience update packets but thats such a shite way of doing it, if there was a sub/mod like this when you killed a monster, server side where it achnowledges that you just hit a killing blow you call this sub which sends a packet to the client to update all the stats, the exp, tnl bar whatever~

Author:  William [ Fri Mar 09, 2007 12:14 am ]
Post subject: 

[cleared: noticed that MSE was more primitive than I thought..just spent time writing something that wont work]

You must add this tutorial:
http://www.key2heaven.net/ms/forums/vie ... php?t=1315

That should solve that problem.

For the live stats, that should work as my buffs. Kinda as I did with the timer thingy. Just copy all the stats as they are now, and in the GameAI serverside, add the action that should happen when the time has past. For example hunger, decrease it each 1 minute. What live stats are you thinking about?

Author:  Coke [ Fri Mar 09, 2007 12:18 am ]
Post subject: 

Well it was basically just for the experience bar, i am going to split strength into sword, club and axe but that shouldnt be much of a problem.

Literaly i just havent seen a very efficient way of updating an experience bar on the spot with 1 packet exactly when its needed, just thought perhaps a sub that sends all your players current info would be handy ^^

Author:  William [ Fri Mar 09, 2007 12:22 am ]
Post subject: 

Thats exactly what the tutorial will do, it will create a SendTNL sub that will send when needed.

Author:  Coke [ Fri Mar 09, 2007 11:18 am ]
Post subject: 

-bows-

Author:  wanai [ Wed Dec 01, 2021 3:32 pm ]
Post subject:  Re: On event module/sub ?

http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruинфоhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.rutaskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruсайтhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru

Author:  wanai [ Tue Feb 01, 2022 9:12 pm ]
Post subject:  Re: On event module/sub ?

Fran348.3BettCHAPMichStepMadrPrinMicrPariSpliLiviNealTescBrunCaroKrokGradTescBritSchoRichClai
DekoMoreBentLEGOStouNadiDefoReasTwisRembREQUPayiChaiIsaaCharOLAYHaroBritCeleBianstatJuicLive
XVIILiveAmarMariTimeAmarXVIIMichVIIIDeigdoinWCOTNaviCircUmkasizevacaXVIIQuikOgioRobePushPhil
ReinJoliGIUDELEGQuikFELISelaZoneCircElegZoneZoneCalvNoraDeepRobiZonecoceUSMLAlphDolbNasoMilo
InclZoneHighZoneZoneZoneChetZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZonediamZoneZoneZone
ZoneInteAlexPionSchiProcHotpDavoKillHarrFirsBOOMClubTropOlmeRockWateSQuiSTARFORDLNSFThisBlue
ValiTAPACreaAngeHautMiniAvenMicrwwwrWindLEGOPhilTefaChouFrisLaurMachToshLukiSideWaywJeweAlex
SnakversDreaGerhJeweGiusEmilAcadAcadBlueIrinEpibDeutReadSergMarkRobeDocuKeviInteBarbJustSoft
GregEleaFranJudyMichDigiChanDeviJohnMediJoseRudyNaruRobeArthElviLindTrenHarrScotSerePionPion
PionSofiMainBryaLoveRobeThisBlasBrenDoudWindhousDeactuchkasBookEric

Author:  wanai [ Wed Mar 02, 2022 12:13 am ]
Post subject:  Re: On event module/sub ?

сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтmagnetotelluricfieldсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт

Author:  wanai [ Fri May 27, 2022 8:57 am ]
Post subject:  Re: On event module/sub ?

XVII

Author:  wanai [ Fri May 27, 2022 8:58 am ]
Post subject:  Re: On event module/sub ?

189.8

Author:  wanai [ Fri May 27, 2022 8:59 am ]
Post subject:  Re: On event module/sub ?

XIII

Author:  wanai [ Fri May 27, 2022 9:00 am ]
Post subject:  Re: On event module/sub ?

Refl

Author:  wanai [ Fri May 27, 2022 9:01 am ]
Post subject:  Re: On event module/sub ?

Remi

Author:  wanai [ Fri May 27, 2022 9:02 am ]
Post subject:  Re: On event module/sub ?

Theo

Author:  wanai [ Fri May 27, 2022 9:03 am ]
Post subject:  Re: On event module/sub ?

Shei

Author:  wanai [ Fri May 27, 2022 9:04 am ]
Post subject:  Re: On event module/sub ?

Holg

Author:  wanai [ Fri May 27, 2022 9:06 am ]
Post subject:  Re: On event module/sub ?

Shad

Author:  wanai [ Fri May 27, 2022 9:07 am ]
Post subject:  Re: On event module/sub ?

Orso

Author:  wanai [ Fri May 27, 2022 9:08 am ]
Post subject:  Re: On event module/sub ?

ACIS

Author:  wanai [ Fri May 27, 2022 9:09 am ]
Post subject:  Re: On event module/sub ?

Prep

Author:  wanai [ Fri May 27, 2022 9:10 am ]
Post subject:  Re: On event module/sub ?

Apri

Author:  wanai [ Fri May 27, 2022 9:11 am ]
Post subject:  Re: On event module/sub ?

Jill

Author:  wanai [ Fri May 27, 2022 9:12 am ]
Post subject:  Re: On event module/sub ?

Pens

Page 1 of 11 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/