script. Removed as to acknowledge its non-existance. [RLB]
* Program environment code was partially dropped in darcs
conversion. Rewrote supported missing code needed. [RLB]
+ * @div/create didn't abide by quotas. Added can_pay_fees()
+ check to div creatin and added new configuration option
+ division_cost.
char names_file[256]; /**< Name of file of forbidden player names */
int object_cost; /**< Cost to create an object */
int exit_cost; /**< Cost to create an exit */
+ int division_cost; /**< Cost to create a division */
int link_cost; /**< Cost to link an exit */
int room_cost; /**< Cost to dig a room */
int queue_cost; /**< Deposit to queue a command */
#define ROOM_COST (options.room_cost)
#define LINK_COST (options.link_cost)
#define EXIT_COST (options.exit_cost)
+#define DIVISION_COST (options.division_cost)
#define OBJECT_COST (options.object_cost)
#define GOD ((dbref) 1)
#define ANNOUNCE_CONNECTS (options.announce_connects)
,
{"exit_cost", cf_int, &options.exit_cost, 10000, 0, "costs"}
,
+ {"division_cost", cf_int, &options.division_cost, 10000, 0, "costs"}
+ ,
{"link_cost", cf_int, &options.link_cost, 10000, 0, "costs"}
,
{"room_cost", cf_int, &options.room_cost, 10000, 0, "costs"}
strcpy(options.names_file, "names.cnf");
options.object_cost = 10;
options.exit_cost = 1;
+ options.division_cost = 1;
options.link_cost = 1;
options.room_cost = 10;
options.queue_cost = 10;
char buf[BUFFER_LEN];
dbref obj, loc;
+ if(!can_pay_fees(owner, DIVISION_COST))
+ return;
+
if (!div_powover(owner, owner, "Division")) {
notify(owner, T(e_perm));
return NOTHING;