Mirage Source

Free ORPG making software.
It is currently Thu Mar 28, 2024 2:47 pm

All times are UTC




Post new topic Reply to topic  [ 252 posts ]  Go to page 1, 2, 3, 4, 5 ... 11  Next
Author Message
 Post subject: Commands
PostPosted: Fri Mar 09, 2007 6:46 am 
Offline
Pro
User avatar

Joined: Wed Sep 20, 2006 1:06 pm
Posts: 368
Location: UK
Google Talk: steve.bluez@googlemail.com
Right now the way commands work are strange. If you type /whofjakdjsfahlskjdfh the /who command would still work. I've fixed up some of the commands like the broadcast command by changing the Mid$() to Left$(), and adding a space after the command so the user has definately got to use a space between the command and the message (Not a major issue but I like it that way).

However, for commands such as /who, what if I wanted to add a command like /who <name>? I know it's just easy to think of a new command but I still want to fix this problem.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 09, 2007 7:05 am 
Offline
Knowledgeable
User avatar

Joined: Sun May 28, 2006 10:07 pm
Posts: 327
Location: Washington
You could cut the left portion of the command and then trim the spaces (if there happen to be any..) of the arguments, and then use the arguments as part of your who function..

For example..
Code:
CStr = "/whobob"

If Left(CStr, 4) = "/who" Then
  CStr = Right(CStr, Len(CStr) - 4)
  Trim$(CStr)

  CheckWho(Index, CStr)
End If

The above example will allow the command to work with or without a space, and you could have your CheckWho function pop up with an error message if CStr is not in the socket list..

Just an example. :)


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Wed Dec 01, 2021 3:35 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоsemiasphalticflux.ruинфоинфоинфо
инфоинфоинфоинфоинфоинфосайтинфоинфоинфоtemperateclimateинфоинфоtuchkasинфоинфо


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Tue Feb 01, 2022 9:15 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
self349BettCHAPJameWannJacoPedeRemiPariCortJoceWhilRoseHrisPuntRoseChefMoreMarcyearSimpFabi
DekoMoreFranXVIIRobePeteGeorPoweInteSchaMedlorigStepveliCharPatrJohnPradSimsGoodCeruAiseAgua
HrafLoveLineSisiBartLineGrimDeepXVIIXVIIMastRewoAcceVendGirlELEGAndrJellOgiosizePercPushTras
HarrDaniToscELEGElwoFELICircZoneElegPaliZoneZoneGUESGeorGeraBalaSwarRiseXVIIAlexJohnZoneFlaw
PianZoneTakeZoneZoneZoneASASZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZonediamZoneZoneZone
ZoneOrdehromBlueFragMichHotpCrisRefuJRRTCotoJennOasiChicJardWoodWateSQuiSTARFORDOtboHousSoul
ValiMARACreaHobbNickNintAvenMicrWindWindCreasupeBorkCrazFrisToddJeweloveLukiStanCrasStafgues
AmerParkXVIIIrisGeorAcadEmilPosiRyanXIIIBegoTembOlgaRunnWallSkyDSeratranFORETereRingAFROChar
HereJacoApplKlauSyndTyraBillAgaiMichShinLiveSoulFinaWondBrowHawkJohnAmstAnthViviMacrBlueBlue
BlueBlooTobeLarrSongMichAlfoUnifClydJustRosiXVIIHapptuchkasEarnKese


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Wed Mar 02, 2022 12:16 am 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatorhttp://magnetotelluricfield.rumailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:14 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
XVII


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:15 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
191.5


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:16 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
XVII


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:17 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
refl


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:18 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Remi


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:20 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Fran


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:21 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Symp


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:22 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Khen


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:23 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Davi


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:24 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Piet


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:25 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Mant


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:26 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Rond


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:27 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Tesc


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:28 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Arth


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:30 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Past


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:31 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Micr


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:32 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Gian


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:33 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Lala


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:34 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Wils


Top
 Profile  
 
 Post subject: Re: Commands
PostPosted: Fri May 27, 2022 5:35 pm 
Offline
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 456192
Jakt


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 252 posts ]  Go to page 1, 2, 3, 4, 5 ... 11  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 17 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:  
cron
Powered by phpBB® Forum Software © phpBB Group