;--------------

SCENE 0		The_Well, WELL, "Well of Souls", 2, 7160
; 
	MUSIC   WellTheme.mid
;
	THEME	
;
	ACTOR	1,	"Eldon", actors2, 28, 0, 85
;
	POSE	28
;
	MOVE	1,	50, 85
;
	WAIT	1.0


	1:  Welcome young soul...
	1: You must be lost, for nobody wishes to set foot in these cursed lands...
	1: Well... if you're sure...
	1: You may pass, doubtless you'll learn what you must as you journey...
	1: Remember...
	1: There's always help when you look for it...
	1: You're not alone...
	1: Go now, enter Dracia...

	END

@eventActorClick1
	MENU "Help=@help"
	END

@help

	1: What would you like help with?
	WAIT 3.5
	MENU "Controls=@controls","Other=@other"

@controls

	1: Ah, you must be new to Well of Souls...
	WAIT 1.0
	1: In that case, press F1 and read the help file...
	1: I personally, think things are best learnt through experience...

	END


@other

	1: If there's a problem you've found in this world, e-mail Nemesis at ultima_nemesis92@yahoo.com.au or Maha at pragenius@yahoo.com.uk

	END

;--------------
; SCENE 1 must be primary CAMP scene
;
SCENE 1

#include camp-manager.txt

	THEME
;	MUSIC   (no music in camp scene, just theme)
; Check is this is a PK Attack (uses CAMP scene, not FIGHT scene, oddly enough)

	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	

; 

	END


;
; It *is* a PK Attack, so we set up some special rules to make it 'honorable'
;
@pk
 
	COMPARE #<num.peopleInScene>, 2
	IF= @correctpeople
	N: There are too many people in this camp. PK fights are one-on-one only!
	WAIT 3.0
	GOTO EXIT
 
	@correctpeople
	LOCK 1
	;4096+8192+32768+2
	FLAGS 45058
	N: Choose PK rules:
	WAIT 1.0
	MENU "No buffs=@nobuff","No pet=@nopet","No buff and no 
	pet=@nobuffnopet"
	;4096+8192+32768 = no heal, no stun, no ticket
	N: No healing, no stunning, no tickets but buffs and pets are allowed!
	GOTO @fighttobegin

	@nobuff
	; 2+4096+8192+32768+65536
	FLAGS 110594
	N: No healing, no stunning, no tickets, no buffs but pets allowed!
	GOTO @fighttobegin

	@nopet
	;4096+8192+32768+128
	FLAGS 45184
	N: No healing, no stunning, no tickets, no pets but buffs allowed!
	GOTO @fighttobegin

	@nobuffnopet
	;4096+8192+32768+128+65536
	FLAGS 110720
	N: No healing, no stunning, no tickets, no pets, no buffs!
	GOTO @fighttobegin


	@fighttobegin
	N: Click, attack or cast a spell on me when you're done.
	N: OK! Get ready!
	N: 3!
	WAIT 1.0
	N: 2!
	WAIT 1.0
	N: 1!
	WAIT 1.0
	N: FIGHT!!!
	END

	@eventActorClick8 
	@eventActorSpell8
	@eventActorAttack8
	COMPARE #<num.peopleInScene>,1
	; one guy dies and leaves which leaves only one guy standing in the 
	camp
	IF=  @eventPkAttackDone
	IF DEAD,@eventPkAttackDone
	N: The fight isn't over yet!
	END
 
	@eventPkAttackDone
	LOCK 0
	FLAGS 0
	N: This fight is over!
	END



@eventPkAttackDone

	; maybe someday this event will work, and we can unlock the camp as soon as 
	; only one side is left standing

	LOCK 0
	FLAGS 0
	END



;--------------
; SCENE 2 must be primary FIGHT scene (for automatic fights)
;
SCENE 2

IF R1, @moneypile

;
IF R1, @cathuntscript
;

	THEME
;	MUSIC  mortal.mid

	FIGHT

	END

;--------------

;
;
;
;
;
;
;
;

@moneypile

	
	ACTOR	1,	"Gold", goldpile, 1, 55, 64

	MUSIC  047_Positive05.mid

	N: Somebody has carelessly left this pile of gold here...

	N: Hit it as many times as you can before they come back!

	COUNTDOWN 10
	
	@eventActorAttack1

       	GIVE G10000

	IF XP, @endscene

	END

	@endscene

	GOTO EXIT


@cathuntscript

	ACTOR	1,	"Cat", Cat, 1, 50, 60

	1: Meow!
	1: Meoooooooooooowwwwwwwwwww!
	H: What is that awful noise?!
	SOUND evilhiss
	1: My voice isn't horrible!
	1: Don't make me scratch you!
	H: Sorry, do you know Sailo?
	SOUND evilhiss
	1: Bah, I hate that horrible man
	H: Why?
	1: Do you know how humiliating it is to be called Fluffy?
	H: ...
	WAIT 1.0
	N: You burst out laughing
	1: Shut up!
	1: Shut up, shut up, shut up, SHUT UP!
	SOUND evil hiss
	1: Here take this if you promise not to take me back
	GIVE G100000
	1: If you bring me something I like i'll give you something special.
	WAIT 2.0

	GOTO EXIT


;
;
;
SCENE 200, 036_Shop01[1], SCENE, "Shop"

	THEME	0
	MUSIC	ootshop.mid
	ACTOR	1,	"Merchant", actors, 24, 10, 89

	IF T200  @normalshop

	1: Welcome to my shop
	WAIT 1.0
	1: What would you like to buy?
	OFFER2 1,10,12   1,10,13   1,10,14   1,10,15   1,10,16   1,10,17   1,10,18   1,10,19   

	1: Just between you and me, I have a new item in stock
	1: I only have a limited supply, so it's quite expensive.
	WAIT 1.0
	1: Are you interested?
	WAIT 2.0
	ASK 60
	IF YES  @saidyes
	COMPARE #<num.hostGP>,  "50000"
	IF< @notenough
	TAKE G50000
	GIVE T800
	GIVE T200
	1: Nice doing business with ya
	WAIT 1.0
	1: You'll notice your item when you next enter your camp.
	WAIT 1.0
	1: Hehehehe... enjoy...

	END

	@notenough

	1: What are you trying to pull here?! You don't have enough Trones
	WAIT 1.0
	1: Get out of my sight!
	1: Come back when you get some REAL money!

	GOTO EXIT

	@normalshop

	IF R5, @bandits

	1: Welcome to my shop
	WAIT 1.0
	1: What would you like to buy?
	OFFER2 90,98,12   90,98,13   90,98,14   90,98,15   90,98,16   90,98,17   90,98,18   90,98,19   

	END


	@eventactorclick1

	1: I got a bunch of tamed monsters in the back.
	WAIT 1.0
	1: Would you like to check them out?
	WAIT 2.0
	MENU "Yes=@seepets","No=@normalshop"

	@seepets

	WAIT 2.0
	
	GOTO SCENE 201

	END

	@bandits

	MUSIC ootshopbandit.mid

	1: THIEVES!
	1: I'LL CUT YOUR THROATS!
	H: Calm down, and tell me what's wrong?
	1: Those thieving %3s made off with a new shipment of weapons!
	1: I need them back!
	H: Hold on, i'll get them!
	WAIT 1.0
	GOTO SCENE 202

	END

;
;	
;
	SCENE 201, 036_Shop02, SCENE, "Shop-Back"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
	THEME	0
	MUSIC	ootshop.mid
	ACTOR	1,	"Merchant", actors, 24, 10, 95

	OFFER 1000 

	END

	@eventactorclick1

	1: Are you ready to go back?
	WAIT 2.0
	MENU "Yes=@shop1","No=@stayshop"

	END

	@shop1

	GOTO SCENE 200

	END

	@stayshop

	
	END


	SCENE 300, 023-FarmVillage01, SCENE, ""
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
	THEME	0
	MUSIC	
	ACTOR	1,	"", misc, 3, 50, 60
	
	N: You drink water from the well...
	GIVE L1
	GIVE H999999
	GIVE M999999

	END

	SCENE 301, 047_Mine01, SCENE, ""
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
	THEME	0
	MUSIC	
	ACTOR	1,	"", misc, 3, 50, 60
	
	N: You drink water from the well...
	GIVE L1
	GIVE H999999
	GIVE M999999

	END

























