Crossfire Server, Trunk
|
Functions | |
def | dist_fare (start, end) |
def | fare (dest) |
def | handle_say () |
def | search_destination (name) |
def | world_map_coord (path) |
Variables | |
activator = Crossfire.WhoIsActivator() | |
dictionary | coord_override |
dictionary | dest_searchable = {} |
dictionary | destinations |
event = Crossfire.WhatIsEvent() | |
int | max_fare = 150*50 |
int | price_per_worldmap_tile = 5*50 |
state = Crossfire.GetPrivateDictionary() | |
whoami = Crossfire.WhoAmI() | |
string | world_map_path_matcher = r"/world/world_(\d\d\d)_(\d\d\d)"; |
dragon.py -- talking dragon that flies you places Kevin Zheng 2024 This replaces the old dragon hangers, where every location that wanted a dragon hanger needed to copy/paste a template map. Usage: Put an event_say and event_apply handler that calls this script on a dragon_exit.
def dragon.dist_fare | ( | start, | |
end | |||
) |
def dragon.fare | ( | dest | ) |
Definition at line 70 of file dragon.py.
References dist_fare(), and world_map_coord().
Referenced by handle_say().
def dragon.handle_say | ( | ) |
Definition at line 86 of file dragon.py.
References fare(), and search_destination().
def dragon.search_destination | ( | name | ) |
Definition at line 52 of file dragon.py.
Referenced by handle_say().
def dragon.world_map_coord | ( | path | ) |
Try to extract the coordinates from a world map path.
Definition at line 59 of file dragon.py.
References make_face_from_files.int.
Referenced by fare().
dictionary dragon.coord_override |
dictionary dragon.destinations |
dragon.state = Crossfire.GetPrivateDictionary() |
Definition at line 84 of file dragon.py.
Referenced by cf_map_trigger_connected(), cf_quest_set_player_state(), cf_quest_start(), cfapi_map_trigger_connected(), cfapi_player_quest(), command_quest(), creator_type_trigger(), duplicator_type_trigger(), get_quest_by_number(), Map_TriggerConnected(), marker_type_trigger(), mood_floor_type_trigger(), ob_trigger(), Player_QuestGetState(), Player_QuestSetState(), Player_QuestStart(), player_set_state(), quest_display(), quest_info(), quest_read_player_data(), quest_send_initial_states(), quest_set_player_state(), quest_set_state(), quest_start(), quest_was_completed(), quest_write_player_data(), inja::Lexer.scan(), inja::Lexer.scan_body(), inja::Lexer.start(), teleporter_type_trigger(), trigger_connected(), and trigger_move().