Mission Storage

Ask Page...

Moderators: JettJackson, Infinity, Page

Page
SMR Coder
Posts: 1779
Joined: Sat Dec 07, 2002 9:17 pm

Re: Mission Storage

Post by Page »

http://smrcnn.smrealms.de/viewtopic.php ... 685#p99872
Page wrote:Ok, there a currently a bunch of missions with different requirements, however a lot of people are unable to do many of these missions - so it appears there are very few.
I'd like to see people's ideas for missions, I cannot guarantee they'll be added, but assuming there is no reason against them they probably will.

Here is a list of possible steps in the mission currently coded or at least planned. For requirements you can use basically any attribute of the player/ship/sector/location etc.

//STEPS
'KillNPCs' - kill 'Detail' NPCs
'KillPlayers' - kill 'Detail' Players
'KillSpawn' - Spawn 'Detail' Type NPC and kill it, DB field Progress with then be NPC_ID, also requires a 'Level' element, use -1 for normal
'Trade' -
'Visit' - Examine 'Detail' location
'DrinkAmount' - Buy 'Detail' drinks at a bar
'Drink' - Buy 'Detail' drink name at a bar
'Move' - Move 'Detail' sectors anywhere
'MoveSector' - Move to 'Detail' sector
'MoveRacial' - Move to galaxy containing 'Detail' race HQ (use racial id)
'MoveGal' - Move to 'Detail' galaxy
'ClearNPC' - Clear 'Detail' stacks of NPC forces in sector (use MoveSector) command to tell them which sector, also stored as mission_sector in DB
'StartPortRaid' - start raiding 'detail' ports
'RaidPort' - raid 'detail' ports
'Bring' - bring 'detail' to starting sector


And to give people an example here are the details for the "Drunk Guy" bar mission.

Code: Select all

array(
		'Name' => 'Drunk Guy',
		'Offerer' => 'Drunk',
		'Time Limit' => 0,
		'Requirements' => array(
			'Alignment' => '>0'
		),
		'Location' => 'Bar',
		'Rewards' => array(
			'Credits' => 500000,
			'Experience' => 1000,
			'Text' => '*Hiccup* For your...service *Hiccup* to me, take these *Hiccup* 500,000 credits and 1000 experience *Hiccup*!'
		),
		'Steps' => array(
			1 => array(
				'Step' => 'MoveRacial',
				'Detail' => 60, //Salvene
				'Text' => '*Hiccup* Hey! I need you to...*Hiccup* do me a favor.  All the Salvene Swamp Water in this bar is aweful!  Go to the Sal...*Hiccup*...the Salvene galaxy, visit a bar and get me some real Salvene Swamp Water.',
				'Task' => 'Go to the Salvene Galaxy'
			),
			2 => array(
				'Step' => 'Drink',
				'Detail' => 'Salvene Swamp Water',
				'Text' => 'Here we are! The Salvene Galaxy! Now lets find a bar.',
				'Task' => 'Go to a bar and buy a Salvene Swamp Water from the bartender.  This may take many tries.'
			),
			3 => array(
				'Step' => 'MoveSector',
				'Detail' => '<Starting Sector>',
				'Text' => 'Finally! A true Salvene Swamp Water, let return to that drunk!',
				'Task' => 'Return to <Stating Sector> to claim your reward.'
			),
			4 => array(
				'Step' => 'Claim',
				'Detail' => 'Bar',
				'Text' => 'Finally! A true Salvene Swamp Water, let return to that drunk!',
				'Task' => 'Enter the bar to claim your reward.'
			)
		)
	)
Other commands can be added as needed.
Page
SMR Coder
Posts: 1779
Joined: Sat Dec 07, 2002 9:17 pm

Re: Mission Storage

Post by Page »

The first mission should be added and automatically assigned on join, but definitely needs testing as I don't know everything about how the mission requirements need to be laid out.
Edgecrusher
Newbie Spam Artist
Posts: 512
Joined: Tue Apr 05, 2005 10:23 am
Location: Netherlands

Re: Mission Storage

Post by Edgecrusher »

Well, obviously other things need to be implemented, I am thinking for example of npc's following you around (mission: bring the NPC Federal Spy to the nearest federal headquarter). But I don't have a clue how difficult that will be.
Post Reply