Add Rhyzian amulet quest.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@5000 282e977c-c81d-0410-88c4-b93c2d0d6712
master
qal21 2006-10-06 18:40:46 +00:00
parent e7536f45bc
commit 4505f8df6e
6 changed files with 3429 additions and 153 deletions

View File

@ -1,13 +1,13 @@
arch map
name Frolicing Mermaid
region navar
width 21
height 13
msg
Creator:
Email:
Date: Wed Oct 27 14:25:52 1993
endmsg
width 21
height 13
end
arch woodfloor
end
@ -104,9 +104,9 @@ x 1
y 2
end
arch pirate
unaggressive 1
x 1
y 2
unaggressive 1
end
arch woodfloor
x 1
@ -125,9 +125,9 @@ x 1
y 5
end
arch pirate_lass
unaggressive 1
x 1
y 5
unaggressive 1
end
arch woodfloor
x 1
@ -142,9 +142,9 @@ x 1
y 7
end
arch pirate
unaggressive 1
x 1
y 7
unaggressive 1
end
arch woodfloor
x 1
@ -155,9 +155,9 @@ x 1
y 8
end
arch pirate
unaggressive 1
x 1
y 8
unaggressive 1
end
arch woodfloor
x 1
@ -177,17 +177,17 @@ y 11
end
arch pirate_lass
name Cindy Loo
arch event_say
title Python
slaying /python/IPO/seen.py
end
msg
@match *
I ain't seen nuthin.
endmsg
unaggressive 1
x 1
y 11
unaggressive 1
arch event_say
title Python
slaying /python/IPO/seen.py
end
end
arch woodfloor
x 1
@ -212,9 +212,9 @@ x 2
y 1
end
arch pirate
unaggressive 1
x 2
y 1
unaggressive 1
end
arch woodfloor
x 2
@ -237,9 +237,9 @@ x 2
y 4
end
arch pirate
unaggressive 1
x 2
y 4
unaggressive 1
end
arch woodfloor
x 2
@ -258,9 +258,9 @@ x 2
y 6
end
arch pirate
unaggressive 1
x 2
y 6
unaggressive 1
end
arch woodfloor
x 2
@ -289,13 +289,13 @@ The Smuggler's Cove is a tiny inlet just southwest of Navar where the top smuggl
The Smugglers have been conducting a lot of business these past days
but a honest bloke like me wouldn't know what that was about.
endmsg
food 1
x 2
y 10
connected 5
walk_on 0
fly_on 0
food 1
activate_on_release 0
x 2
y 10
end
arch woodfloor
x 2
@ -317,25 +317,25 @@ Well maybe if you drop a hundred gold on this table here I'd tell ya about that.
This chick's seen it all.
She knows everyone.
endmsg
unaggressive 1
x 2
y 10
unaggressive 1
end
arch altar
slaying goldcoin
food 100
x 2
y 11
connected 5
x 2
y 11
end
arch woodfloor
x 2
y 11
end
arch table_4
x 2
y 11
no_pick 1
x 2
y 11
end
arch woodfloor
x 2
@ -360,9 +360,9 @@ x 3
y 1
end
arch pirate
unaggressive 1
x 3
y 1
unaggressive 1
end
arch woodfloor
x 3
@ -373,9 +373,9 @@ x 3
y 2
end
arch pirate
unaggressive 1
x 3
y 2
unaggressive 1
end
arch woodfloor
x 3
@ -394,9 +394,9 @@ x 3
y 5
end
arch pirate
unaggressive 1
x 3
y 5
unaggressive 1
end
arch woodfloor
x 3
@ -515,9 +515,9 @@ x 5
y 1
end
arch pirate
unaggressive 1
x 5
y 1
unaggressive 1
end
arch woodfloor
x 5
@ -564,9 +564,9 @@ x 5
y 11
end
arch pirate
unaggressive 1
x 5
y 11
unaggressive 1
end
arch woodfloor
x 5
@ -623,18 +623,18 @@ x 6
y 7
end
arch bench_1_1
no_pass 1
x 6
y 7
no_pass 1
end
arch woodfloor
x 6
y 8
end
arch bench_2_2_1
no_pass 1
x 6
y 8
no_pass 1
end
arch woodfloor
x 6
@ -649,9 +649,9 @@ x 6
y 10
end
arch pirate
unaggressive 1
x 6
y 10
unaggressive 1
end
arch woodfloor
x 6
@ -684,9 +684,9 @@ x 7
y 1
end
arch pirate
unaggressive 1
x 7
y 1
unaggressive 1
end
arch woodfloor
x 7
@ -725,9 +725,9 @@ x 7
y 8
end
arch bench_2_1_2
no_pass 1
x 7
y 8
no_pass 1
end
arch woodfloor
x 7
@ -763,9 +763,8 @@ always looking for new people to tell about TCI.
@match *
Hi there young'un. Wanna join TCI?
endmsg
reflect_missile 1
reflect_spell 1
friendly 1
x 7
y 11
resist_physical 100
resist_magic 100
resist_fire 100
@ -779,16 +778,17 @@ resist_ghosthit 100
resist_poison 100
resist_slow 100
resist_paralyze 100
resist_turn_undead 100
resist_fear 100
resist_deplete 100
resist_turn_undead 100
resist_death 100
resist_chaos 100
resist_blind 100
resist_holyword 100
resist_godpower 100
x 7
y 11
resist_holyword 100
resist_blind 100
friendly 1
reflect_missile 1
reflect_spell 1
end
arch woodfloor
x 7
@ -846,11 +846,13 @@ y 7
end
arch halfling2
name Pip
title the barkeep
msg
@match *
What a rowdy lot!
@match Rhyz|rhyz
One of the rooms has stairs leading where you want to go.
endmsg
title the barkeep
x 8
y 7
end
@ -859,9 +861,9 @@ x 8
y 8
end
arch bench_2_1_2
no_pass 1
x 8
y 8
no_pass 1
end
arch woodfloor
x 8
@ -898,9 +900,9 @@ x 9
y 1
end
arch pirate_lass
unaggressive 1
x 9
y 1
unaggressive 1
end
arch woodfloor
x 9
@ -939,9 +941,9 @@ x 9
y 8
end
arch bench_2_1_2
no_pass 1
x 9
y 8
no_pass 1
end
arch woodfloor
x 9
@ -1022,9 +1024,9 @@ x 10
y 8
end
arch bench_2_1_2
no_pass 1
x 10
y 8
no_pass 1
end
arch woodfloor
x 10
@ -1100,9 +1102,9 @@ x 11
y 8
end
arch bench_1_3
no_pass 1
x 11
y 8
no_pass 1
end
arch woodfloor
x 11
@ -1138,10 +1140,10 @@ x 12
y 1
end
arch door_look_2
no_pass 0
blocksview 1
x 12
y 1
no_pass 0
blocksview 1
end
arch woodfloor
x 12
@ -1296,10 +1298,10 @@ x 14
y 1
end
arch door_look_2
no_pass 0
blocksview 1
x 14
y 1
no_pass 0
blocksview 1
end
arch woodfloor
x 14
@ -1350,10 +1352,10 @@ x 14
y 8
end
arch door_look_2
no_pass 0
blocksview 1
x 14
y 8
no_pass 0
blocksview 1
end
arch woodfloor
x 14
@ -1376,10 +1378,10 @@ x 14
y 11
end
arch door_look_2
no_pass 0
blocksview 1
x 14
y 11
no_pass 0
blocksview 1
end
arch woodfloor
x 14
@ -1416,9 +1418,9 @@ Go away shilly...weave me awone...
endmsg
hp 50
maxhp 50
unaggressive 1
x 15
y 3
unaggressive 1
end
arch woodfloor
x 15
@ -1711,9 +1713,9 @@ Go away shilly...weave me awone...
endmsg
hp 50
maxhp 50
unaggressive 1
x 18
y 7
unaggressive 1
end
arch woodfloor
x 18
@ -1743,6 +1745,13 @@ arch woodfloor
x 18
y 11
end
arch stair_3_down
slaying navarwiz
hp 5
sp 5
x 18
y 11
end
arch woodfloor
x 18
y 12
@ -1771,10 +1780,10 @@ I gotta get back to see the boss...
endmsg
hp 50
maxhp 50
carrying 100
unaggressive 1
x 19
y 1
carrying 100
unaggressive 1
arch key2
name A Key
slaying set_individual_value smugdoor
@ -1793,10 +1802,10 @@ x 19
y 4
end
arch door_look_1
no_pass 0
blocksview 1
x 19
y 4
no_pass 0
blocksview 1
end
arch woodfloor
x 19
@ -1807,10 +1816,10 @@ x 19
y 6
end
arch door_look_1
no_pass 0
blocksview 1
x 19
y 6
no_pass 0
blocksview 1
end
arch woodfloor
x 19

File diff suppressed because it is too large Load Diff

22
python/CFWorld.py 100644
View File

@ -0,0 +1,22 @@
#CFWorld.py
#A small modle for checking where is bigworld an object is if it's in bigworld.
import string
import Crossfire
world_prefix = "/world/world_"
world_prefix_len = len(world_prefix)
world_len = len(world_prefix) + len('xxx_xxx')
world_sep = '_'
bigmapxsize = 50
bigmapysize = 50
#Return an x,y tuple of where in bigworld an object is. Return false if not in bigworld. In current bigworld, values range from 5000 to 6499.
def loc_from_ob(ob):
cfmap = ob.Map
if ((string.find(cfmap.Path,world_prefix) != 0) or (len(cfmap.Path) != world_len)):
return False
strloc = cfmap.Path[world_prefix_len:].split(world_sep)
x = (int(strloc[0]) * bigmapxsize) + ob.X
y = (int(strloc[1]) * bigmapysize) + ob.Y
return (x, y)

View File

@ -0,0 +1,60 @@
import Crossfire
import CFWorld
import math
scorn_loc = (5272, 5786)
navar_loc = (6112, 5850)
Crossfire.SetReturnValue( 1 )
def getdiff(loc1, loc2):
return (loc1[0]-loc2[0], loc1[1]-loc2[1])
def getdir(loc1, loc2):
loc = getdiff(loc1, loc2)
if (loc[1] > 0):
start="south"
elif(loc[1] < 0):
start="north"
else:
start=""
if (loc[0] > 0):
return start+"east"
elif(loc[0] < 0):
return start+"west"
else:
return start
#outputs in furlongs (outdoor tiles)
def getdist(loc1, loc2):
loc = getdiff(loc1, loc2)
return int(math.sqrt((loc[0]*loc[0])+(loc[1]*loc[1])))
#outputs in miles
def getuserdist(dist):
return (int(dist/8.0+0.5))
def gettext(loc1, loc2, name):
loc_raw_dist = getdist(loc1, loc2)
loc_dist = getuserdist(loc_raw_dist)
loc_dir = getdir(loc2, loc1)
if (abs(loc_dist) > 5):
loc_distmsg = "A "+name+" arrow flashes "+str(loc_dist)+" times"
else:
loc_distmsg = "A "+name+" arrow glows steady"
if (loc_raw_dist):
loc_distmsg += ", pointing to the "+loc_dir+"."
else:
loc_distmsg += ", spinning in one place."
return loc_distmsg
pl = Crossfire.WhoIsActivator()
me = Crossfire.WhoAmI()
location = CFWorld.loc_from_ob(pl)
if (location):
scorntxt = gettext(location, scorn_loc, "red")
navartxt = gettext(location, navar_loc, "blue")
pl.Write(scorntxt+" "+navartxt)
else:
pl.Write("The amulet doesn't seem to work here.")

View File

@ -1,6 +1,9 @@
arch map
region scorn
name gatehouse
region scorn
width 28
height 14
enter_y 7
msg
Creator: ??
Email: ??
@ -9,9 +12,6 @@ Modified: Anthony Thyssen
Email: anthony@cit.gu.edu.au
Date: Mon Dec 28 17:02:35 1998
endmsg
width 28
height 14
enter_y 7
outdoor 1
end
arch flagstone
@ -32,8 +32,8 @@ arch exit
slaying /world/world_105_115
hp 19
sp 37
invisible 1
y 5
invisible 1
end
arch cobblestones2
y 5
@ -42,8 +42,8 @@ arch exit
slaying /world/world_105_115
hp 19
sp 37
invisible 1
y 6
invisible 1
end
arch cobblestones2
y 6
@ -52,8 +52,8 @@ arch exit
slaying /world/world_105_115
hp 19
sp 37
invisible 1
y 7
invisible 1
end
arch cobblestones2
y 7
@ -62,8 +62,8 @@ arch exit
slaying /world/world_105_115
hp 19
sp 37
invisible 1
y 8
invisible 1
end
arch cobblestones2
y 8
@ -185,10 +185,10 @@ Do you want to be thrown in JAIL?
Good to see a friend!
Have you seen any monsters lately?
endmsg
friendly 1
unaggressive 0
x 2
y 4
friendly 1
unaggressive 0
end
arch cobblestones2
x 2
@ -196,15 +196,15 @@ y 5
end
arch check_floor
slaying gate_pass
connected 13
x 2
y 5
connected 13
end
arch check_floor
slaying hero_of_scorn
connected 14
x 2
y 5
connected 14
end
arch cobblestones2
x 2
@ -212,15 +212,15 @@ y 6
end
arch check_floor
slaying gate_pass
connected 13
x 2
y 6
connected 13
end
arch check_floor
slaying hero_of_scorn
connected 14
x 2
y 6
connected 14
end
arch cobblestones2
x 2
@ -228,15 +228,15 @@ y 7
end
arch check_floor
slaying gate_pass
connected 13
x 2
y 7
connected 13
end
arch check_floor
slaying hero_of_scorn
connected 14
x 2
y 7
connected 14
end
arch cobblestones2
x 2
@ -244,15 +244,15 @@ y 8
end
arch check_floor
slaying gate_pass
connected 13
x 2
y 8
connected 13
end
arch check_floor
slaying hero_of_scorn
connected 14
x 2
y 8
connected 14
end
arch magic_ear
msg
@ -260,9 +260,9 @@ msg
Well, you know the password,
so you must be ok. Pass Friend.
endmsg
connected 12
x 2
y 8
connected 12
end
arch flagstone
x 2
@ -328,40 +328,40 @@ x 3
y 5
end
arch grate_closed_2
speed 0.500000
connected 10
x 3
y 5
speed 0.500000
connected 10
end
arch cobblestones2
x 3
y 6
end
arch grate_closed_2
speed 0.500000
connected 10
x 3
y 6
speed 0.500000
connected 10
end
arch cobblestones2
x 3
y 7
end
arch grate_closed_2
speed 0.500000
connected 10
x 3
y 7
speed 0.500000
connected 10
end
arch cobblestones2
x 3
y 8
end
arch grate_closed_2
speed 0.500000
connected 10
x 3
y 8
speed 0.500000
connected 10
end
arch flagstone
x 3
@ -470,10 +470,10 @@ Do you want to be thrown in JAIL?
Good to see a friend!
Have you seen any monsters lately?
endmsg
friendly 1
unaggressive 0
x 4
y 8
friendly 1
unaggressive 0
end
arch cobblestones
x 4
@ -559,9 +559,9 @@ x 5
y 8
end
arch trigger
connected 11
x 5
y 8
connected 11
end
arch cobblestones
x 5
@ -752,12 +752,12 @@ arch dungeon_magic
x 8
end
arch button_small
connected 10
x 8
connected 10
end
arch gateTrg1
connected 13
x 8
connected 13
end
arch dungeon_magic
x 8
@ -848,28 +848,28 @@ x 8
y 13
end
arch button_small
connected 10
x 8
y 13
connected 10
end
arch gateTrg1
connected 11
x 8
y 13
connected 11
end
arch dungeon_magic
x 9
end
arch button_small
face button_sma.112
x 9
value 1
connected 16
x 9
end
arch spikes_open
x 9
speed 0.500000
connected 16
x 9
end
arch boulder
x 9
@ -971,16 +971,16 @@ y 13
end
arch button_small
face button_sma.112
x 9
y 13
value 1
connected 15
x 9
y 13
end
arch spikes_open
speed 0.500000
connected 15
x 9
y 13
speed 0.500000
connected 15
end
arch boulder
x 9
@ -990,12 +990,12 @@ arch dungeon_magic
x 10
end
arch button_small
connected 10
x 10
connected 10
end
arch gateTrg1
connected 14
x 10
connected 14
end
arch dungeon_magic
x 10
@ -1107,14 +1107,14 @@ x 10
y 13
end
arch button_small
connected 10
x 10
y 13
connected 10
end
arch gateTrg1
connected 12
x 10
y 13
connected 12
end
arch dungeon_magic
x 11
@ -1220,8 +1220,8 @@ You hear from behind the northern wall,
the sound of great wheels turning as
the inner gates are set in motion.
endmsg
connected 10
x 12
connected 10
end
arch dungeon_magic
x 12
@ -1325,8 +1325,8 @@ On seeing you have a gate pass the guard
turns the handle nearby and says...
Arrhh, a merchant off on trade.. Pass..
endmsg
connected 13
x 13
connected 13
end
arch dungeon_magic
x 13
@ -1422,8 +1422,8 @@ A guard yells.. The Hero of Scorn!
Open the gates, open, we can't keep
the Hero waiting. Hurry Hurry.
endmsg
connected 14
x 14
connected 14
end
arch dungeon_magic
x 14
@ -1510,9 +1510,9 @@ Open the gates, prepare the way!
You think you hear muffled laughing
from somewhere...
endmsg
connected 24
x 14
y 13
connected 24
end
arch dungeon_magic
x 15
@ -1618,9 +1618,9 @@ Halt! Who wishes to enter?
You show your gate pass...
Oh a merchant, Pass Friend.
endmsg
connected 23
x 15
y 13
connected 23
end
arch dungeon_magic
x 16
@ -1725,9 +1725,9 @@ The rusted outer gate is set in motion
with loud noise emanating from the
southern wall.
endmsg
connected 20
x 16
y 13
connected 20
end
arch dungeon_magic
x 17
@ -1772,9 +1772,9 @@ x 17
y 5
end
arch trigger
connected 21
x 17
y 5
connected 21
end
arch cobblestones2
x 17
@ -1828,12 +1828,12 @@ arch dungeon_magic
x 18
end
arch button_small
connected 20
x 18
connected 20
end
arch gateTrg1
connected 22
x 18
connected 22
end
arch dungeon_magic
x 18
@ -1895,10 +1895,10 @@ Do you want to be thrown in JAIL?
Good to see a friend!
Have you seen any monsters lately?
endmsg
friendly 1
unaggressive 0
x 18
y 5
friendly 1
unaggressive 0
end
arch cobblestones2
x 18
@ -1949,28 +1949,28 @@ x 18
y 13
end
arch button_small
connected 20
x 18
y 13
connected 20
end
arch gateTrg1
connected 24
x 18
y 13
connected 24
end
arch dungeon_magic
x 19
end
arch button_small
face button_sma.112
x 19
value 1
connected 25
x 19
end
arch spikes_open
x 19
speed 0.500000
connected 25
x 19
end
arch boulder
x 19
@ -2008,40 +2008,40 @@ x 19
y 5
end
arch grate_closed_2
speed 0.500000
connected 20
x 19
y 5
speed 0.500000
connected 20
end
arch cobblestones2
x 19
y 6
end
arch grate_closed_2
speed 0.500000
connected 20
x 19
y 6
speed 0.500000
connected 20
end
arch cobblestones2
x 19
y 7
end
arch grate_closed_2
speed 0.500000
connected 20
x 19
y 7
speed 0.500000
connected 20
end
arch cobblestones2
x 19
y 8
end
arch grate_closed_2
speed 0.500000
connected 20
x 19
y 8
speed 0.500000
connected 20
end
arch cobblestones
x 19
@ -2085,16 +2085,16 @@ y 13
end
arch button_small
face button_sma.112
x 19
y 13
value 1
connected 26
x 19
y 13
end
arch spikes_open
speed 0.500000
connected 26
x 19
y 13
speed 0.500000
connected 26
end
arch boulder
x 19
@ -2104,12 +2104,12 @@ arch dungeon_magic
x 20
end
arch button_small
connected 20
x 20
connected 20
end
arch gateTrg1
connected 21
x 20
connected 21
end
arch dungeon_magic
x 20
@ -2145,15 +2145,15 @@ y 5
end
arch check_floor
slaying gate_pass
connected 23
x 20
y 5
connected 23
end
arch check_floor
slaying hero_of_scorn
connected 24
x 20
y 5
connected 24
end
arch magic_ear
msg
@ -2161,9 +2161,9 @@ msg
Well, you know the password,
so you must be ok. Pass Friend.
endmsg
connected 21
x 20
y 5
connected 21
end
arch cobblestones2
x 20
@ -2171,15 +2171,15 @@ y 6
end
arch check_floor
slaying gate_pass
connected 23
x 20
y 6
connected 23
end
arch check_floor
slaying hero_of_scorn
connected 24
x 20
y 6
connected 24
end
arch cobblestones2
x 20
@ -2187,15 +2187,15 @@ y 7
end
arch check_floor
slaying gate_pass
connected 23
x 20
y 7
connected 23
end
arch check_floor
slaying hero_of_scorn
connected 24
x 20
y 7
connected 24
end
arch cobblestones2
x 20
@ -2203,15 +2203,15 @@ y 8
end
arch check_floor
slaying gate_pass
connected 23
x 20
y 8
connected 23
end
arch check_floor
slaying hero_of_scorn
connected 24
x 20
y 8
connected 24
end
arch cobblestones
x 20
@ -2254,14 +2254,14 @@ x 20
y 13
end
arch button_small
connected 20
x 20
y 13
connected 20
end
arch gateTrg1
connected 23
x 20
y 13
connected 23
end
arch dungeon_floor
x 21
@ -2465,11 +2465,11 @@ Do you want to be thrown in JAIL?
Good to see a friend!
Have you seen any monsters lately?
endmsg
x 22
y 9
speed_left -0.520000
friendly 1
unaggressive 0
x 22
y 9
end
arch flagstone
x 22
@ -2573,6 +2573,13 @@ arch grass
x 24
y 1
end
arch stair_3_down
slaying wizhide
hp 10
sp 12
x 24
y 1
end
arch flagstone
x 24
y 2
@ -2799,9 +2806,9 @@ arch exit
slaying /world/world_105_115
hp 22
sp 37
invisible 1
x 27
y 5
invisible 1
end
arch cobblestones
x 27
@ -2811,9 +2818,9 @@ arch exit
slaying /world/world_105_115
hp 22
sp 37
invisible 1
x 27
y 6
invisible 1
end
arch cobblestones
x 27
@ -2823,9 +2830,9 @@ arch exit
slaying /world/world_105_115
hp 22
sp 37
invisible 1
x 27
y 7
invisible 1
end
arch cobblestones
x 27
@ -2835,9 +2842,9 @@ arch exit
slaying /world/world_105_115
hp 22
sp 37
invisible 1
x 27
y 8
invisible 1
end
arch cobblestones
x 27
@ -2864,7 +2871,7 @@ x 27
y 13
end
arch mine_secret_1_1
no_pass 0
x 13
y 9
no_pass 0
end

2110
scorn/misc/wizhide 100644

File diff suppressed because it is too large Load Diff