示例#1
0
#!/usr/bin/php -q
<?php 
require_once "mwdata.inc";
$cs = new MWData();
if (0) {
    $cs->set_datamode(CSData::DATAMODE_READ);
    $csread = $cs->get_data();
    //$csread->set_doprint();
    //$csread->set_filestoread('all');
    $csread->request_data('ARMO');
    $csread->request_data('NPC_');
    $csread->request_data('LEVI');
    $csread->read();
} else {
    $cs->get_data();
}
$armor = $cs->get_ordid('imperial helmet armor');
print "{$armor}\n";
$armor_item = $cs->get_item($armor);
print "weight=" . $armor_item->get('weight') . "\n";
$llist = $cs->get_item('l_n_armor_helmet');
print "l_n_armor_helmet id=" . $llist->ordid() . "\n";
print 'imperial helmet armor/l_n_armor_helmet = ' . $llist->hasitem($armor) . "\n";
$li = $llist->contains_list();
$plvl = $li->get_plvl($armor);
//var_dump($plvl);
$llist = $cs->get_item('l_n_armor');
print "l_n_armor id=" . $llist->ordid() . "\n";
print 'imperial helmet armor/l_n_armor = ' . $llist->hasitem($armor) . "\n";
print 'l_n_armor_helmet/l_n_armor = ' . $llist->hasitem($cs->get_ordid('l_n_armor_helmet')) . "\n";
$li = $llist->contains_list();
示例#2
0
#!/usr/bin/php -q
<?php 
require_once "mwdata.inc";
$cs = new MWData();
$cs->get_data();
$armor = $cs->get_ordid('iron_cuirass');
$armoritem = $cs->get_item($armor);
print "type_lu=" . $armoritem->get('type_lu') . " type=" . $armoritem->get('type') . "\n";
print "INDX_lu=" . $armoritem->get('INDX_lu', 0) . " INDX=" . $armoritem->get('INDX', 0) . "\n";
print "skill=" . $armoritem->get('skill') . "\n";
//$cs->find_locs($armor);
//$cs->_setup_cells();
exit;
$cs->find_ordid_uses(141753);
//$edid = "Bitter Coast Region [-8,-2]";
//$ws = MWItem_CELL::worldspace_from_edid($edid);
//$lu = $cs->get_lookup_id("Worldspace", $ws);
//print "$edid $ws $lu\n";