From: Christopher Kings-L. <ch...@us...> - 2005-05-02 04:02:49
|
Update of /cvsroot/planeshift/SC/npc_spawn_rules/php In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1672/npc_spawn_rules/php Modified Files: spawn.php Log Message: Lots more work on spawns. Generalised some CSS. Index: spawn.php =================================================================== RCS file: /cvsroot/planeshift/SC/npc_spawn_rules/php/spawn.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** spawn.php 29 Apr 2005 08:55:27 -0000 1.1 --- spawn.php 2 May 2005 04:02:31 -0000 1.2 *************** *** 74,79 **** $vars['ADD_DBL'] = 'disabled'; $vars['ID_DBL'] = "onFocus='blur();'"; $vars['LOOT_CATEGORY_ID_SELECT'] = $myForm->createSelectBox("loot_category_id", array("id", "name"), "id", array("name"), $vars['loot_category_id'], array("name"), "loot_rules"); ! $vars['ACTION'] = BASE_URL . "npc_spawn_rules/index-npc_spawn_rules.php"; --- 74,83 ---- $vars['ADD_DBL'] = 'disabled'; $vars['ID_DBL'] = "onFocus='blur();'"; + + $vars['SUBSTITUTE_PLAYER_SELECT'] = $myForm->createSelectBox("substitute_player", array("id", "name"), "id", array("name"), $vars['substitute_player'], array("name"), "characters", + array('customFilter' => 'npc_spawn_rule != 0')); $vars['LOOT_CATEGORY_ID_SELECT'] = $myForm->createSelectBox("loot_category_id", array("id", "name"), "id", array("name"), $vars['loot_category_id'], array("name"), "loot_rules"); ! $vars['FIXED_SPAWN_SECTOR_SELECT'] = $myForm->createSelectBox("fixed_spawn_sector", array("name"), "name", array("name"), $vars['fixed_spawn_sector'], array("name"), "sectors"); ! $vars['ACTION'] = BASE_URL . "npc_spawn_rules/index-npc_spawn_rules.php"; *************** *** 123,126 **** --- 127,131 ---- $vars['ITEM_STAT_ID_SELECT'] = $myForm->createSelectBox("item_stat_id", array("id", "name"), "id", array("name"), $vars['item_stat_id'], array("name"), "item_stats"); $vars['NPC_SPAWN_RULE_ID_SELECT'] = $myForm->createSelectBox("npc_spawn_rule_id", array("id", "name"), "id", array("name"), $vars['npc_spawn_rule_id'], array("name"), "npc_spawn_rules"); + $vars['CSTR_ID_SPAWN_SECTOR_SELECT'] = $myForm->createSelectBox("cstr_id_spawn_sector", array("id", "name"), "id", array("name"), $vars['cstr_id_spawn_sector'], array("name"), "sectors"); // lets print the files we need. This will vary depending on our action, might add this later to a case at class instance *************** *** 246,249 **** --- 251,258 ---- $vars['ID_DBL'] = "onFocus='blur();'"; + $vars['SUBSTITUTE_PLAYER_SELECT'] = $myForm->createSelectBox("substitute_player", array("id", "name"), "id", array("name"), $vars['substitute_player'], array("name"), "characters", + array('customFilter' => 'npc_spawn_rule != 0')); + $vars['LOOT_CATEGORY_ID_SELECT'] = $myForm->createSelectBox("loot_category_id", array("id", "name"), "id", array("name"), $vars['loot_category_id'], array("name"), "loot_rules"); + $vars['FIXED_SPAWN_SECTOR_SELECT'] = $myForm->createSelectBox("fixed_spawn_sector", array("name"), "name", array("name"), $vars['fixed_spawn_sector'], array("name"), "sectors"); $vars['ACTION'] = BASE_URL . "npc_spawn_rules/index-npc_spawn_rules.php"; *************** *** 295,298 **** --- 304,308 ---- $vars['ITEM_STAT_ID_SELECT'] = $myForm->createSelectBox("item_stat_id", array("id", "name"), "id", array("name"), $vars['item_stat_id'], array("name"), "item_stats"); $vars['NPC_SPAWN_RULE_ID_SELECT'] = $myForm->createSelectBox("npc_spawn_rule_id", array("id", "name"), "id", array("name"), $vars['npc_spawn_rule_id'], array("name"), "npc_spawn_rules"); + $vars['CSTR_ID_SPAWN_SECTOR_SELECT'] = $myForm->createSelectBox("cstr_id_spawn_sector", array("id", "name"), "id", array("name"), $vars['cstr_id_spawn_sector'], array("name"), "sectors"); // lets print the files we need. This will vary depending on our action, might add this later to a case at class instance |