drowning.script

resources/quests/drowning/drowning.script · 1.4 KB

From the archive CoffeeMud.zip

Download the archive   « Back to the archive contents

ONCE_PROG
	if inlocale(Water)
		QUESTCHAT Help, I'm in $a, and I'm drowning!
	else
		mpendquest drowning
	endif
	mpsetvar $i DROWNING ''
~

QUEST_TIME_PROG drowning -1
	mpsetvar $i DROWNING ''
	mpsetvar * DROWNING ''
~

ALL_GREET_PROG 99
	if var($i DROWNING == '') AND ispc($n)
		if inlocale(Water)
			say "$n" Thank goodness! I can't swim! Bring me a boat and get me out of here!
			follow $n
			mpsetvar $i DROWNING $n
		endif
	endif
~

RAND_PROG 90
	if (!inlocale(Water))
		if var($i DROWNING != '') and ishere($f)
			say "$f" You saved me!
			follow self
			if !QUESTWINNER($f drowning)
				mpexp $f 20%
				mpoload QuestPoint
				give "a quest point" "$f"
			endif
			mpoload 100
			give 100 "$f"
			mpquestwin $f drowning
			mpendquest drowning
		else
			say "Well, I'm safe.  But I'm not sure how.  Ah well."
			mpendquest drowning
		endif
	endif
~

QUEST_TIME_PROG drowning 1
	QUESTCHAT Never mind about the help.  I drowned.  Thanks.
	mpquestend drowning
~

EXIT_PROG 99
	if (!inlocale(Water))
		if var($i DROWNING != '') and ishere($f)
			say "$f" You saved me!
			follow self
			if !QUESTWINNER($f drowning)
				mpexp $f 20%
				mpoload QuestPoint
				give "a quest point" "$f"
			endif
			mpoload 1000
			give 100 "$f"
			mpquestwin $f drowning
			mpsetvar $i DROWNING ''
			mpendquest drowning
		else
			say "Well, I'm safe.  But I'm not sure how.  Ah well."
			mpendquest drowning
		endif
	endif
~

Site Stats

Snippets: 1791
Codebases: 571