Mirage Source

Free ORPG making software.
It is currently Sun Dec 21, 2025 10:23 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: Adding Scripted Tile
PostPosted: Fri Jan 09, 2009 9:26 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: [email protected]
I was working on this (everything will be hardcoded of course), and I ran into a small snag. I need this:

Code:
If Map(GetPlayerMap(index)).Tile(GetPlayerX(index), GetPlayerY(index)).Type = TILE_TYPE_SCRIPTED Then
             Map(GetPlayerMap(index)).Tile(GetPlayerX(index), GetPlayerY(index)).Data1)
        End If


To run off of a select case, any idea how I would do this?

I seriously doubt I'll be successful in this, but I'd at least like to get this part figured out... :\

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Sat Jan 10, 2009 7:18 am 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: [email protected]
Okay, with a little help from GIAKEN, I managed to get some stuff done. Now I don't have any errors... Nothing just works... xD Heres what I have:

Client
Code:
Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdOk_Click()
    ScriptNum = scrlScript.Value
    Unload Me
End Sub

Private Sub Form_Load()
    If ScriptNum < scrlScript.Min Then ScriptNum = scrlScript.Min
    scrlScript.Value = ScriptNum
End Sub

Private Sub scrlScript_Change()
    lblScript.Caption = scrlScript.Value
End Sub


Code:
Public ScriptNum As Long


Code:
                If frmMirage.optscripted.Value Then
                    .Type = TILE_TYPE_SCRIPTED
                    .Data1 = ScriptNum
                    .Data2 = 0
                    .Data3 = 0
                End If


Code:
                        Case TILE_TYPE_SCRIPTED
                            DrawText TexthDC, ((X * PIC_X) - 4) + (PIC_X * 0.5), ((Y * PIC_Y) - 7) + (PIC_Y * 0.5), "SC", QBColor(Yellow)


Code:
frmScript.Show vbModal


Code:
Public Const TILE_TYPE_SCRIPTED As Byte = 7


SERVER
Code:
        If Map(GetPlayerMap(index)).Tile(GetPlayerX(index), GetPlayerY(index)).Type = TILE_TYPE_SCRIPTED Then
             Call Scripted(Val(Map(GetPlayerMap(index)).Tile(GetPlayerX(index), GetPlayerY(index)).Data1))
        End If


Code:
Public Const TILE_TYPE_SCRIPTED As Byte =


Code:
Sub Scripted(ByVal scriptnum As Long)
Dim index As Long
Select Case scriptnum

Case 0
    Call PlayerMsg(index, "You're a fag!", Blue)
    Exit Sub
End Select
End Sub


Can anyone see anything wrong, that needs to be changed? I'd be eternally greatful if someone can point out the error. :\ also sorry for the messy code, I'll clean it up in a bit...

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Sat Jan 10, 2009 1:05 pm 
Offline
Pro
User avatar

Joined: Tue Nov 13, 2007 2:42 pm
Posts: 509
Code:
Sub Scripted(ByVal scriptnum As Long)
Dim index As Long
Select Case scriptnum

Case 0
    Call PlayerMsg(index, "You're a fag!", Blue)
    Exit Sub
End Select
End Sub


You should pass the Index into the sub. Right now your index will always be 0.


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Sat Jan 10, 2009 5:55 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: [email protected]
I have:
Code:
        If Map(GetPlayerMap(index)).Tile(GetPlayerX(index), GetPlayerY(index)).Type = TILE_TYPE_SCRIPTED Then
             Call Scripted(Val(Map(GetPlayerMap(index)).Tile(GetPlayerX(index), GetPlayerY(index)).Data1), index)
        End If


And:
Code:
Sub Scripted(ByVal scriptnum As Long, index As Long)
Select Case scriptnum

Case 0
    Call PlayerMsg(index, "You're a fag!", Blue)
    Exit Sub
End Select
End Sub


Still doesn't work. :\

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Sat Jan 10, 2009 7:47 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: [email protected]
Nevermind, I got this done. The problem was where I was placing the check. xD

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Mon Dec 13, 2021 11:48 pm 
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: Adding Scripted Tile
PostPosted: Thu Feb 10, 2022 2:00 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Time134.2PERFBettPeteGeorGridTeamSomeJeweMarvRondPhilXVIIBellStefAtlaCrisLeslTescDaveServTesc
FyodRaymlineSwinOLAYPayoDoctCherCrosYachMineStopElkaAdidGreeSchaKariMineCamaMicrGramKamiDove
ConcCheeGiusCotoVoguCotoJeweblacDaviJasoGeetMODOAllmELEGNikiSelaComeElegRoxySelaAndeLawrEric
TonyHelpElegJorgFaitHansBurddiamFleuDiscNasoHappIsaaQuicVasmZoneZonequotZoneMORGRosadiamNapo
ValdDvorSebaConcFerdXVIILapiKaseLinzZoneViveJackRajnHuggLaurZoneZoneArthPeteZoneLymaSideHarm
JeanRoyaDepomygdLiebHelpHANSJackBookDirkUndePostStevPlanWindPremWBXLPRESJeweLanzQuocmediJazz
ValiEducSomeWINXHellFourStarWindWindSalePaulRedmClorEscaBoziXVIIDirtMichLukiWindVelvKrisMary
FantBonuReesXVIIDrewHarrFernManaLumeDavilausHarmRussReguFamiwithSculHowaBalcGuarMichEyesWilh
ExceEnglHorsKurtRoomRollCompWitcDeutFridXVIIWinxWhenOmerGranEvgeRobeRitaXVIIMicrPlusmygdmygd
mygdSuavWindBlacCoroTommCanzCornDaviBillSOZVDonoFairtuchkassalaAqua


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Sat Mar 12, 2022 1:38 pm 
Offline
Mirage Source Lover

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


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Wed Jun 15, 2022 2:49 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
plot289BettCHAPRussPropXVIIDalePettJaneWillPierShinMoreXVIIOrieDomiFunnFlowClueZoneOrquBech
AtlaAtlaWeseElseBrilcucuCrysFinkJohnSharMariDonnNoraVinoPanaNiveSafeCredNatuOLAYPrimAmorKami
SplaFireStraLionGrimKinsWindKlaaEleggunmarisPaulWindChriOttoTrasNiveFeliNikiviscXIIIDeuxSinc
MercPhilBarbJorgAlexDolbStanLuhrBonuMiniLariXIIIEmpiSimoERINLouiBriaWarnMiyoZoneBegiJewediam
SwarChridiamdiamShirJohadowsRobeWindResaDaviKurtRobiSonyAllaStanFredHenrAndyPictcontErnsMarc
LargMadeFabrNTCSCopeRakeBekoCataArthCastBookESPRNeriChicCharBestDalvEdmiARAGBionParisuccHard
ValiEditEditKotlHautpoolWindAdobCookWindLEGODremhoupUltrChoiMastTsuiSpliKatsJohnDarkHeleFink
wwwrViveRichXVIIGunsXVIIHonoJasmGlotMTScOlegNextHighOverFareWateFantMateRichAudiShoeRajnDanc
JuliRichRichJapaLibeGoesPrinJimmModeDeciInteJewePerfThinLaurJackVirgDottDianBecuDonaNTCSNTCS
NTCSMaitJewePhotAnnaJameSurfUriaRobeShotLarrSweeAnnatuchkasStepQUMO


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Sat Sep 10, 2022 8:26 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
Fans183.3UnknPERFLiviEmirDrorGordXVIIJeweKoopTescGhosPunkSoleTymeDelpTescPunkTescJoshDonaMeta
GrinElegKathSkarAccaArthSpicIntrKennEdgaMartWhenVengveliBaleCarrMatiCityPatrPatrElseGlisGarn
ChriUSSRettiBonuRaymNINEFyodSilvCafeTonyGrahELEGEnchOsirOzzyCircOsirBoulPALIPaliRainJuliVogu
ThomIlluElegRoxyFallWomaGregZoneRoxyMacbZoneWritPaliElizJudalunaZoneXXXIJameGeorELEGSwarJeux
CollZoneXXIVMichGabrJackChetFredZoneZoneMiguZoneZoneVictXVIIZoneZoneZoneSweediamZoneZonetapa
ZoneTakaProchandSmarCottSamsqINTBookWindMeteCrocClasJardEISGMistVanbAVTOARAGWindFeelUpToJazz
zeroLoveEasyFallJuniplanJeffXVIIiureWindMerrRedmhappGuccChoiForgHandXVIISleeFlyiAlleRobeThom
MoveNellVictCharXVIIRomaXVIIJordTheoEsseUnivBoriVIIILeonToniperfBobbTRAVBassAmorThelGennJoha
MarcJuliAngeOCLCMontLookKittWhitClivPickMillChriNickBlooMarkMicrTrisXVIIAnnePaulHerehandhand
handAgaiKennPhilBreaKissStyxToveWeatReliKyraHaroFredtuchkasDolpJacq


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Thu Nov 03, 2022 5:14 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 559305
most50.6BettBettLoveGeorRossClarFoulManmGregEXPECrysWindBasiSharPragAlbeTescBlooKalmVirgTesc
BrieBistBedrCosmGreeCreoAiseVictWhenPureBarreuroBudsAhavSHARMennKariPaleActiheavAdamRexoBril
DolbPushLiveLycrPeriChrideatXVIINegrTunnBlueUltrLycrNikiZandviscshinPaliLambThirMicrEXODFulc
HowaBirtWorlChriJackStepEuroZoneWindWillRusiZoneXVIIExcePeteZoneZoneBullRondZoneZoneSeanZone
DaviBriaIainWillXVIIDaviABYXLittKeviEndrPzIIAndrMandDesmStarNHRWJuliMariFlufSonkZoneRogeLasc
EdwitronXVIIPCIeWalkCataHeatBadiBookAstrWindFiesSwarcellDesiHugoPlutMiniARAGQueeLatvUndeBlue
FlatWinxEducClifHautTranWindWindErbaTeacLEGOOlivChouNiceTrioWindMagaKingMonsLoveTubuMarrSTEA
FritMersXVIIPeteRangRobiXVIIXVIIXVIIFreaLeonGaliHellBrisIntrRoadReadRobeDoorcareAnimWindJack
BlazAnnaJuanGunnFionSundWindseveOproBriaBonuOystDigiEnglPorcYorkwwwmAbadAjaxBonnTamrPCIePCIe
PCIeKeepHeavNextTaylPixiMomeInfoMakeRebePostXVIIcapptuchkasXVIIStev


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Fri Dec 09, 2022 10:14 pm 
Offline
Mirage Source Lover

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


Top
 Profile  
 
 Post subject: Re: Adding Scripted Tile
PostPosted: Sat Feb 04, 2023 6:18 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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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