示例#1
0
     $type = $item->type;
     $identifier = $item->name_english;
     $itemName = $item->name_japanese;
     $slots = $item->slots;
     $npcBuy = $item->price_buy;
     $npcSell = $item->price_sell;
     $weight = $item->weight;
     $attack = $item->attack;
     $defense = $item->defence;
     $range = $item->range;
     $weaponLevel = $item->weapon_level;
     $equipLevel = $item->equip_level;
     $refineable = $item->refineable;
 }
 if ($item->equip_locations) {
     $item->equip_locations = Flux::equipLocationsToArray($item->equip_locations);
 }
 if ($item->equip_upper) {
     $item->equip_upper = Flux::equipUpperToArray($item->equip_upper);
 }
 if ($item->equip_jobs) {
     $item->equip_jobs = Flux::equipJobsToArray($item->equip_jobs);
 }
 $equipLocs = $params->get('equip_locations') ? $params->get('equip_locations') : $item->equip_locations;
 $equipUpper = $params->get('equip_upper') ? $params->get('equip_upper') : $item->equip_upper;
 $equipJobs = $params->get('equip_jobs') ? $params->get('equip_jobs') : $item->equip_jobs;
 $equipMale = $item->equip_genders == 2 || $item->equip_genders == 1 ? true : false;
 $equipFemale = $item->equip_genders == 2 || $item->equip_genders == 0 ? true : false;
 $script = $params->get('script') ? $params->get('script') : $item->script;
 $equipScript = $params->get('equip_script') ? $params->get('equip_script') : $item->equip_script;
 $unequipScript = $params->get('unequip_script') ? $params->get('unequip_script') : $item->unequip_script;