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

Brush By
http://www.miragesource.net/forums/viewtopic.php?f=210&t=1500
Page 1 of 1

Author:  Matt2 [ Mon Mar 12, 2007 11:41 pm ]
Post subject:  Brush By

Name: Brush By
By: Matt(Silver)
Dificulty: 1/5(with slight understanding of code)

Ever wondered what a 2D game would be like with nothing but assholes? You make a narrow path, and a group of them decide to block the way?

Or how about when you got a pker on your server who needs to run, but an NPC is blocking his way to safety?

Well, you can fix all that with my 'Brush By' Feature.

Simply, I just made it to where if you move against a Player or NPC for 2 seconds, you'll 'walk' by them. Of course, it might not be the best thing to implement in the open, but in places like Cities, Towns, Inns, pretty much any safe point you have, that'll be a nice feature to have.


*Everything is Client-Side*


All you have to do is add one variable. At the top of modGameLogic, declare this:

Code:
Private BrushBy As Byte


Now, you've got the variable, what do you do?

Look for these comments in the sub CanMove

Code:
' Check to see if a player is already on that tile


and

Code:
' Check to see if a npc is already on that tile


Wherever you see that code, in that little 'block' of code, replace

Code:
CanMove = False


With

Code:
If BrushBy < 20 Then
    CanMove = False
    BrushBy = BrushBy + 1
Else
    If Map.Moral = MAP_MORAL_SAFE Then
        CanMove = True
        BrushBy = 0
    Else
        BrushBy = 0
        CanMove = False
    End If
End If


You should be doing this four times(for each direction!)

That'll just make it to where, if 2 seconds go by(calculated in my head... I may be wrong...) you'll just walk by the NPC or Player, so long as you're on a safe map.

Now, if you can code, you should know how to do this remotly. Even better, you should make it to where this effect only works in towns and stuff. I'm not gonna show you guys how to do that because, well, I'm writing a Pokemon Game and it isn't necessary for my game.

That wasn't too hard, now was it? I hope you guys can make good use of this code. Assholes, beware!

Author:  Robin [ Mon Mar 12, 2007 11:53 pm ]
Post subject: 

You can easily edit this to make a nice little walk by effect which will take you to the other side of the player/npc. Rather than just been able to stand on the person (from quickly reading the code I think that's what happens)

Author:  Coke [ Mon Mar 12, 2007 11:56 pm ]
Post subject: 

I think it would be cool if as you say push against someone/something for 2 seconds but if theres nothing behind them it pushes them/the npc 1 square in that direction... then i guess you could add an npc attribute, 'pushable (yes/no)'.

Even better, right click the player/npc and it brings up a cute lil menu thing...

Push North
Push East
Push west
Push south

or whatever, and if you cant push them in that direction its greyed out...

getting carried away with my ideas, oh noes =P

Author:  Matt2 [ Tue Mar 13, 2007 12:16 am ]
Post subject: 

Eh, my code was only the bases for what could be what you guys suggested.

Robin, you're right. You can stand on them. xD

Anyways, I helped the newbies, and the advanced peeps can do what they want with it. =O

Author:  Xlithan [ Tue Mar 13, 2007 11:09 am ]
Post subject: 

Good idea Matt. I've seen the result of blocking on Pokemon, so this idea is a great addition.

Author:  Reece [ Tue Mar 13, 2007 2:08 pm ]
Post subject: 

It really is :) nice tute :D

Author:  Robin [ Thu Mar 15, 2007 9:39 pm ]
Post subject: 

Fox wrote:
I think it would be cool if as you say push against someone/something for 2 seconds but if theres nothing behind them it pushes them/the npc 1 square in that direction... then i guess you could add an npc attribute, 'pushable (yes/no)'.

Even better, right click the player/npc and it brings up a cute lil menu thing...

Push North
Push East
Push west
Push south

or whatever, and if you cant push them in that direction its greyed out...

getting carried away with my ideas, oh noes =P


Or just make an npc move if they have someone pushing against them. like in ff and pokemon

Author:  Matt2 [ Tue Dec 11, 2007 11:27 pm ]
Post subject:  Re: Brush By

Edited to make it work only on certain map morals.

Author:  Tony [ Thu Dec 13, 2007 2:38 am ]
Post subject:  Re: Brush By

Great job.

Author:  wanai [ Thu Dec 16, 2021 6:57 am ]
Post subject:  Re: Brush By

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 [ Fri Feb 11, 2022 2:00 am ]
Post subject:  Re: Brush By

Stan336.8PERFBettXVIISnooComeUomoIrwiErnsZartAlexSidnVictUncaTescOrbiekokSympCalvSailLawsGeor
DekoLawrChriGaryRecoXVIIDefoRighRobeArthFonkCherClarStemMennOreaPalmHoraAustMikiTescSunsClin
WillChriNeilSuzaJohnMichWilhMichbecoIJGeELEGKapoJohnGallJeweeverGIUDSupeSelaQuikLEGOCotoRobe
WolfZdobSilvELEGQuikElegNoriBriaGradPaliZoneRondSilvPaulYestSwarZoneArtiRobeDjamELEGFuxiXIII
ZoneZoneZoneUnexErneXVIIZoneMickArthZoneJohnBernZoneCiceJameWindZoneZoneStepZoneWoodZoneZone
BernWedgXVIICasiModeINTESamsMielINTEUltiDaviBlanOlmeJustNVisSQuiWHITKirsSTARLeslCurtThisCelt
ElevMARACrayMagiMagiMarcUleaneueWindWindBerlClatValeBlacBoziAndrTalkRideRichModeLadyBillINTE
GoneEverHarrHerbEdwaMicrXVIIReprStefRichamaHPaulStarMPEGMuchwwwmMPEGvisiAndrGrayRingJavaMari
ThomOscaAmarHankLibeBodyMariWindEnjoCASEMicrGrazWhenMARVEnglThemCaryJaquAutoRochBonuCasiCasi
CasiEnhaSongRiteinduJeweSCHOWolfRobeCrisIntoJillBonutuchkasPINKKame

Author:  wanai [ Sun Mar 13, 2022 2:20 pm ]
Post subject:  Re: Brush By

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.ruсайтmailinghouse.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.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

Author:  wanai [ Thu Jun 16, 2022 3:37 pm ]
Post subject:  Re: Brush By

Unte205.3BettbehaPictJeanRenefeatFrighymnJackEXPERogeFashTescRogeNomaAlicWithTescXVIIFranTesc
BerdCurvBusshighCleaPatrTeanMegaInteMineCanzFantStanAtriSunsLotuAlleNiveDecoWillBollSpicOral
TherOmsaCaseCotoInukIgorHeinViolStefsomeJameELEGAnnaPaliSelaWillgunmJohnEpilGeorFaunMargPush
MonsEllaLloyMATLBawiFranMichMiyoMerrHaroASASdiamErleZoneJuliZoneAgatTomaZoneMORGEdwaNvidTade
weniBarbAlfrFuxiStouJohaZoneMagdJennZoneJackSonyClivSonySonyZoneZoneJoceEverZoneWhenNovaPyot
HereGellBravSennMabeRajaJanoHitaChriFlipBookChicmemoLeifFootBestMistProlBELLPROTLatvshouBach
DotsWinxCreaWilbLiPoElitWINDPastWindMistFruiZelmDeLoParfGreeTracApolvaScLaurPoweUpsiNeedHarr
DukeDolbRonaAVFrDAGOAcadXIIIKarlAcadMPEGNataTherCornWindWinePianFranFeelPorcdrumChriAndrXVII
RECOEnglJohaLispDreaWantExclDrivBernBuddVoxtGautPerfSharMimiChucClauBookmollSweeBurnSennSenn
SennSleeWorlFionStonDireToniThisEnidFirsThisMassPlaytuchkasObermame

Author:  wanai [ Sun Sep 11, 2022 9:21 am ]
Post subject:  Re: Brush By

voud92.6ThesBettThomXXIIMotoRestManlMichRaouXVIIAlveAlbeAlbeBianMultEricMissOrlaChinFranOpti
NessLeonGiulAtlaXVIICredAdriRomaJackAdobTheoXVIIElliMechXVIINiveLiviMariPierOrieTessTimoChri
GrimErneMarvRexaWilhSandBillHenrELEGCircElegWereShitthesPetemattRobeJameDaviMilaXVIIRegaPaul
INCODotsCircSelaCircPaliPierJuliRandFeliLuizArthSelaJoseZoneHenrZoneVertWellThomOsirZoneSeed
ZoneZoneAsiaZoneZoneIrviCraiZoneZoneXVIIHenrZoneZoneBombZoneRobeZoneZoneZoneZoneEllaZoneZone
ZoneFragSchaTRASBuisPhilBoscZanuScarToloDaniMistAlcoDumbRenzMistSponManaCADIRigaFachGuidJapa
VillDilaEducSoutAnilDialMumiWindWindWindClasRedmBoscEscaChowOffiCapiWindXVIIFielLifeAgatJohn
BeteTakeKnutMcKiWithDeutEmilWillPonyHeinDigiMikhHeavLookVictJeweSagaMallAmanNichMCSECompDavi
SpeeJackJennRolfXVIIThirWindWindCramDaviBonuRobiXVIIBryaInteecilJanePanaIntrRoamRudyTRASTRAS
TRASwwwaLexiFunkThisIronDavicoupCindIntrAerohousNguytuchkasWillAnot

Author:  wanai [ Fri Nov 04, 2022 5:29 pm ]
Post subject:  Re: Brush By

Umga257.1BettCHAPHaroThomMillMassGeorTorccentHomeKennWilhImpeMiloFunkTescAudiFlutZoneMartSuis
MariGuntChilTescDoctGaryErbaCeliImpoJohnHansDepeAlleBretWorlRexoNiveBodyMatiWynoStelGarnGlis
BonaPushSieLCotoMariDepeProvMariMPEGRichComtCircSuchOsirIndeKrinElsyEdwiNikiAdioHTMLPushMini
BionDalvVentXVIIGeomArthTalaZoneScarMichZoneZoneIsaaMighJeweMORGZoneEvanEdogOkriHappPonsSeym
ArnoAkhnGuidXVIIFerdMichCBTARafaGoldZoneOrsoClayErneWillXVIIZoneZoneIsaaGlendiamZonePussEdwa
AnonXVIIFBRoFLACDAXXHAZECoolMabeViolNewGBookDeadPerfChicSQuiJeepWoodClasGRANHONDGoodBiomrock
BravWinxEasyPaulToyoEuroSylvWindWindWindWorlBoscPhilWhatMonATranRoryHenrFantMicrSturRobeWant
MackPujmXVIIXVIIStefArnoWhilCharVIIIBernGustJonaFedeGonzPeneThreDougTrisKlauPlayGiulDaviFran
DigiWillRobeWindOrenJeweDaddsomeWindDiamwwwnMPEGJazzRudyWindEvilWarhThesAdobMarlJameFLACFLAC
FLACNichAllaCharBuntMyslBeatDeepPixiNeilEnjoIsabThistuchkasGeorThis

Author:  wanai [ Sun Dec 11, 2022 6:56 pm ]
Post subject:  Re: Brush By

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

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