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

Quest help (from m:rpge)
http://web.miragesource.net/forums/viewtopic.php?f=201&t=3841
Page 1 of 1

Author:  Forte [ Mon Jun 16, 2008 11:10 pm ]
Post subject:  Quest help (from m:rpge)

Attempted to rip quests out of m:rpge, all started working nice. Quests saved/loaded, quest data attached to Npcs saved/loaded aswell. 'Cept one thing, i can't seem to trigger any quests.
So.. heres what I got basically,
Code:
' Check for an npc
        For i = 1 To MAX_MAP_NPCS
            If MapNpc(GetPlayerMap(index), i).Num > 0 Then
                If MapNpc(GetPlayerMap(index), i).X = X And MapNpc(GetPlayerMap(index), i).y = y Then
               
                   If Npc(MapNpc(GetPlayerMap(index), i).Num).QuestID > 0 Then
                        Call StartQuest(index, Npc(MapNpc(GetPlayerMap(index), i).Num).QuestID)
                    End If


Code:
Sub StartQuest(ByVal index As Long, ByVal QuestID As Long)
    If Player(index).Char(Player(index).CharNum).CurrentQuest = QuestID And Player(index).Char(Player(index).CharNum).QuestStatus = 2 Then
        FinishQuest (index)
        Exit Sub
    End If
    If (SetCurrentQuest(index, QuestID, Player(index).Char(Player(index).CharNum)) = True) Then
        Call SendQuestMessage(index, Quests(QuestID).StartQuestMsg)
    End If
End Sub


Anyone wanna help me out here whats wrong or why they arent being trigged would be appreciated

Author:  Rian [ Mon Jun 16, 2008 11:30 pm ]
Post subject:  Re: Quest help (from m:rpge)

Code:
If Npc(MapNpc(GetPlayerMap(index), i).Num).QuestID > 0 Then
                        Call StartQuest(index, Npc(MapNpc(GetPlayerMap(index), i).Num).QuestID)
                    End If


Put that in your attacknpc sub. I think it works fine if you put it around the part that sends the npcs "say" message

Author:  Forte [ Mon Jun 16, 2008 11:43 pm ]
Post subject:  Re: Quest help (from m:rpge)

blech no luck, any more ideas

Author:  Ambientiger [ Tue Jun 17, 2008 10:05 am ]
Post subject:  Re: Quest help (from m:rpge)

Can't really see anything wrong with it. I take it that you can start/finish a quest just by clicking on an NPC?

Code:
If MapNpc(GetPlayerMap(index), i).X = X And MapNpc(GetPlayerMap(index), i).y = y Then

Are the X's supposed to be upper case, this might cause a problem, but most likely you would have been told about that by the compiler.

Code:
If (SetCurrentQuest(index, QuestID, Player(index).Char(Player(index).CharNum)) = True) Then

Am I right in thinking that SetCurrentQuest should be a Function, and is it in your code? Could you post SetCurrentQuest as well please.

Author:  Forte [ Tue Jun 17, 2008 2:36 pm ]
Post subject:  Re: Quest help (from m:rpge)

yeah the x's are fine like that, just defined as caps.
Here's SetCurrentQuest;
Code:
Function SetCurrentQuest(ByVal index As Long, ByVal QuestID As Long, ByRef Qplayer As PlayerRec) As Boolean
    If QuestID > 0 And QuestID < MAX_QUESTS Then
        If Qplayer.Level >= Quests(QuestID).requiredLevel Then
            If Qplayer.CurrentQuest = 0 Then
                Qplayer.CurrentQuest = QuestID
                Call SetCurrentQuestStatus(index, 1, Qplayer)
                SetCurrentQuest = True
                Exit Function
            Else
                Call PlayerMsg(index, "You currently have a quest.", Green)
            End If
        Else
            Call PlayerMsg(index, "You are of too low level to start this quest.", Red)
        End If
    End If
    SetCurrentQuest = False
End Function
Sub SetCurrentQ

Author:  Ambientiger [ Tue Jun 17, 2008 9:20 pm ]
Post subject:  Re: Quest help (from m:rpge)

No answer just yet I'm afraid, just a couple more questions.

Is the ByRef passing neccesary further on in the code? surely just using Player(index).Char(Player(index).CharNum).Level etc would work okay, I'm not really familiar with m:RPGe code.

And, not so much a question, more of a suggestion on how to find out why it isn't working.
You probably already know how to debug, but please, humour me and just check through the following. Without all the code to follow I need to pinpoint the exact area in the code that isn't working;
Open the server in the VB IDE and set a Breakpoint on the Call StartQuest(index, Npc(MapNpc(GetPlayerMap(index), i).Num).QuestID) line of code from your first post and run the server in debug mode.
Now start up the client and click on an npc that you know has a quest linked to it, the server should now break and pause on the Call to StartQuest. (If the server doesn't break the problem is somewhere else in the code.)
Using F8 step through the code and find out at which point in StartQuest or SetCurrentQuest the code fails.

Get back to me with the results and we'll take it from there, thnxs.

Author:  wanai [ Wed Dec 08, 2021 6:39 pm ]
Post subject:  Re: Quest help (from m:rpge)

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 08, 2022 11:30 pm ]
Post subject:  Re: Quest help (from m:rpge)

Loui254.4CHAPCHAPSeriConnWindMichGeorRobeDeanDekoInteWindWillSimpXVIIAcelKlauGeraZoneLoveLuxo
FrieMarlAtlaAlbeClosStVaCareFranBegiThisDigiBrokRudyCleaNatuskelNiveRansGeraPaloPantLazoLady
LacaRoadAssoChenVoguArktDeadPaolblacDolcviscEdgaBeetLouiGregJohnXVIIFELINikiNikiInstAndaMond
AndaSurvRichFranGerhMaarRennWaltStuaDisnCercPiraEsprArtsFuxiSingTonyquotFuxiZoneDaniBuzzFuxi
ZoneFritZoneZonediamTresEntrNicoKrusMedaMartSimoDougRussMargRaymWillNokiCrazPokeFranTracSaha
ParkdecaRichCasiHAynEmmaHotpCataWhitHarrBookDesiTimeSwarSQuiCaseWoodMystWindMeggPENNTawaJazz
PoweGiotJoseSquaSculWinxHellWindWindWindGeomBoscLighFeraPediMarkOZONSantMagiStuaAgatStafXVII
FantRobeIxodLogoXVIIAcadEmilOmarEditCiviJohnMikhDigiMagiADHDRaveLaurmighClemAlamPhilSmitGran
WindAlexItalNortSongAnotGetsVirgAlfrMarvGeofMoreWeakChriYounHellTonyEoinAndrWillRowlCasiCasi
CasiElisWindPlacRequSusyAtlaBoomSpanTracBatemanyNovetuchkasHandJenn

Author:  wanai [ Fri Mar 11, 2022 11:27 am ]
Post subject:  Re: Quest help (from m:rpge)

инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоmagnetotelluricfield.ruинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо

Author:  wanai [ Thu Jun 02, 2022 6:39 am ]
Post subject:  Re: Quest help (from m:rpge)

GOTH150.8ReprPERFBackFRONBlueXVIIDantAudiCaroWondMisiDesiJustShirLoveOceaCapuZombRajiJackOpti
MoraEnhaGoodCurtStelOZONAeroAudiEricErniAlleJeanJOHAXVIIJaanPricLovewwwmClauKarlMoreRandEdwa
KeraZoneGeorOtepJuliThinXVIICrosLowlAdioZereMarkHaroStraMillPhilJeweRobeHenrVIIIHaveHeatPush
JeweHaroRichMatiHumiPaliAltaWillXVIIJuliSideXVIIProsBreaZoneJohnSomeGuyvXVIIAsheErasPierChec
ZoneSupeRoseBLACZoneZoneDeviBossChetSlavZoneZoneZoneZoneZoneFreeBertZoneZoneShakDisnZoneZone
ZoneTherPaulKOSSDAXXbricBrotKronINTEJeweMusirollGeerDumbDriiPoweForbLinePORSMAZDLongAnatBlue
TOKYSpirEditGregBakuPoliWarhAudiWindwwwrBerlDRUDValeBvlgCatsPoulXIIIAcerAlfrBrooAdagHoopXVII
XVIIParaArmaAmerXVIIEuleDuriFyodTranWaltDealOlegGinoVelvWhisDespRemibellWorlIntrAndrboysStev
JennMechAdriKennRalpVirgPassEnidVirgAndrMichRosiXvidMartEyefStanMasaSterSchiAvaiGranKOSSKOSS
KOSSDiabHansKogaPackDickPrelXVIIDougJohnDaviBlacBowmtuchkasCravrock

Author:  wanai [ Fri Sep 09, 2022 5:09 pm ]
Post subject:  Re: Quest help (from m:rpge)

Doct383.8BettCHAPRemiJeweLuciBoheLaurRogediamJacoFiskBoraLionFiskGeorMollBriaRondZoneSuthJame
TescRondPremSofiWindMineErbaminoCartMavaFyodCanaProlPayoCrisCredRexoNivePureAquoCentBeliSpla
EsteJohnSanjAndrSisiNaviIncrGeorFranSelaOxidXXIVHenrRajnTerrCuciCherFELIRoxyNikiJoseGreaJewe
ArktYashAntoMareDolbCambLopeZoneRobeJeweAureRobiUnreArtsZoneZoneHamiTurndiamZoneGeorWindZone
AlanIsaaHappPUREHincHenrIoanRussLouiSworIronActiJerzConnHuggStepLiveMehuSympChriXVIIKathEver
PhedseemBrunTRASqSchMAGIMabeTharBookPlusBookEscaSandOughESFWMicrPoweBobiWidoQUMObullPracMode
GuitRaveRussColoRobeLoveWindGoldWindWindCariPhilhappRecoChowAmonOZONAlfrAmanFantJerrTalcTele
LukiAgatMarcEuweFranThomXVIIGlobXVIIAwayCeteJesuEaglKumiVietTangMoreDaviHartXIIIMichAlrisell
SaraAllaRichRichJohnBlueJohnExtaPaulSpenAvneKeviVincJohnPhilIlikAnitMaggWilhBackSchwTRASTRAS
TRASCreaPrelKissCokiIndiCityJeweEdinGeneVisuStevEngltuchkaseverGene

Author:  wanai [ Thu Oct 13, 2022 1:26 pm ]
Post subject:  Re: Quest help (from m:rpge)

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

Author:  wanai [ Thu Nov 03, 2022 7:48 am ]
Post subject:  Re: Quest help (from m:rpge)

midn202.9CHAPExamcuddFernWierPeriSippLadyCarlDartSnooPicnBucaSchoArdeRondMicrHardJuliLaceAlet
DelpShanXVIIImmoSilvLiveCaroHojaDRamPalmXVIIBuenLoneRexoShamJewePaulFernElecGaryVenuCoscJame
VeinCityLewiParkXVIIPeteChenSamsAndrNeilMeinMariWritTheiGeorSoulGranshinGustAndrElenBoriScie
WindMonsIrenGeniAlexDreaEuchSporThisFrohLXXIHeavWindProuArtsTatoTomoStAnArtsXVIISecrMessArts
SwarDrovFuxiTypidiamOrlaLocucareAmerDrunQuanFeetPKArXXIIRockadveMiniChicMemeSanoMagnVincPedr
BlauPlayCompFLAScachRagoBoscStieEnteBookBookSQuiChicJardToshWALLOlmeBeflBluePROTSvatAbnoAbst
DiscEducBeadRiccToyoGlugwwwrWindReliMicrDeadDeLoSiemIphiPlanLewiTrutLongOZONSofiMichRobepowe
XVIIazbuDearBoleJohnWattBasiAdriFLOOProsDeatValeDolbMerrWaitLuciRecoDaviHenrXtalJeanVictDirc
MedaDaviRobeNeedAbovScotThunPaulLarrBeyoJeweHannIFRSDeanChriGiusCraiApplBeatLaurDaniFLASFLAS
FLASKateHaimEdgaUnliGranOrigSecoOZONBailCambDeviZerotuchkasAlysAstr

Author:  wanai [ Tue Dec 06, 2022 4:04 am ]
Post subject:  Re: Quest help (from m:rpge)

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

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