#!/usr/bin/php -q <?php require_once "obdata.inc"; $cs = new OBData(); $cs->get_data(); $cs->set_pc_level(46); #$npc = $cs->get_item('BeggarICMarketSimplicia'); #$npc = $cs->get_item('ICMarketGuardPostDay01'); $npc = $cs->get_item('SchlerusSestius'); print $npc->get('marksman') . "\n"; if (0) { foreach (array('aggression', 'confidence', 'energy', 'responsibility', 'strength', 'intelligence', 'willpower', 'personality') as $attrib) { print "{$attrib} " . $npc->get($attrib) . "\n"; } $totals = $npc->persuasion_reactions(); foreach ($totals as $reaction => $value) { print "{$reaction} {$value}\n"; } }
#!/usr/bin/php -q <?php require_once "obdata.inc"; $cs = new OBData(); $cs->get_data(); foreach (array("DLCBattlehornDragonswordPower3", "NDLpGreavesShieldOther", "NDBlessingOfTalos", "BSRitualBlessedWord", "VampireHuntersSight") as $edid) { $spell = $cs->get_item($edid); print "spell=" . $spell->get('name') . " spellcost=" . $spell->get('spellcost') . " autocost=" . $spell->get('auto_spellcost') . " spelllevel=" . $spell->get('spelllevel') . " autolevel=" . $spell->get('auto_spelllevel') . " autocalc=" . $spell->get('autocalc') . "\n"; } $spell = $cs->newitem('SPEL'); $spell->set_custom_spell(); $spell->add_custom_effect('Fire Damage', 5, 5, 10); $spell->add_custom_effect('Fire Damage', 70, 1, 20); print "custom spell\n"; foreach ($spell->indices('effect_id') as $index) { print $spell->magic_desc_line($index) . " cost=" . $spell->effect_cost($index) . "\n"; } print "Total cost=" . $spell->get('spellcost') . " spelllevel=" . $spell->get('spelllevel') . "\n";
<?php require_once "obdata.inc"; $cs = new OBData(); $cs->get_data(); $cs->set_pc_level($level); $npc = $cs->get_item($npc_name); ?> <table> <tr> </tr> </table>
#!/usr/bin/php -q <?php require_once "obdata.inc"; $cs = new OBData(); $cs->set_datamode(CSData::DATAMODE_READ); $csread = $cs->get_data(); $csread->set_doprint(); //$csread->set_filestoread('all'); $csread->request_data('RACE'); $csread->read(); $race = $cs->get_item('WoodElf'); print "Bosmer\n"; for ($i = 1; $i <= 7; $i++) { $skill = $race->get('skl' . $i); $bonus = $race->get('skbonus' . $i); print "{$skill} {$bonus}\n"; } $race = $cs->get_item('Breton'); print "Breton\n"; for ($i = 1; $i <= 7; $i++) { $skill = $race->get('skl' . $i); $bonus = $race->get('skbonus' . $i); print "{$skill} {$bonus}\n"; }