Mirage Source

Free ORPG making software.
It is currently Sat Apr 20, 2024 12:46 am

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 
Online
Mirage Source Lover

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


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

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


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

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479703
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 
Online
Mirage Source Lover

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

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


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

Joined: Sun Jul 04, 2021 4:04 am
Posts: 479703
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 23 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