📄 init_npc_table.cpp
字号:
ret = SQLGetData(hStmt, 114, SQL_C_ULONG, &NPC_Info_Ref[c].robery, 0, &cbValue);
ret = SQLGetData(hStmt, 115, SQL_C_ULONG, &NPC_Info_Ref[c].betrayal, 0, &cbValue);
ret = SQLGetData(hStmt, 116, SQL_C_ULONG, &NPC_Info_Ref[c].disroyal, 0, &cbValue);
ret = SQLGetData(hStmt, 117, SQL_C_ULONG, &NPC_Info_Ref[c].greed, 0, &cbValue);
ret = SQLGetData(hStmt, 118, SQL_C_ULONG, &NPC_Info_Ref[c].idol, 0, &cbValue);
ret = SQLGetData(hStmt, 119, SQL_C_ULONG, &NPC_Info_Ref[c].r_fame, 0, &cbValue);
ret = SQLGetData(hStmt, 120, SQL_C_ULONG, &NPC_Info_Ref[c].r_truth, 0, &cbValue);
ret = SQLGetData(hStmt, 121, SQL_C_ULONG, &NPC_Info_Ref[c].r_bow, 0, &cbValue);
ret = SQLGetData(hStmt, 122, SQL_C_ULONG, &NPC_Info_Ref[c].r_propagation, 0, &cbValue);
ret = SQLGetData(hStmt, 123, SQL_C_ULONG, &NPC_Info_Ref[c].r_service, 0, &cbValue);
ret = SQLGetData(hStmt, 124, SQL_C_ULONG, &NPC_Info_Ref[c].nor_range, 0, &cbValue);
ret = SQLGetData(hStmt, 125, SQL_C_ULONG, &NPC_Info_Ref[c].att_range, 0, &cbValue);
ret = SQLGetData(hStmt, 126, SQL_C_ULONG, &NPC_Info_Ref[c].enemy_no, 0, &cbValue);
ret = SQLGetData(hStmt, 127, SQL_C_ULONG, &NPC_Info_Ref[c].party, 0, &cbValue);
ret = SQLGetData(hStmt, 128, SQL_C_ULONG, &NPC_Info_Ref[c].levelgap, 0, &cbValue);
ret = SQLGetData(hStmt, 129, SQL_C_ULONG, &NPC_Info_Ref[c].offset, 0, &cbValue);
ret = SQLGetData(hStmt, 130, SQL_C_ULONG, &NPC_Info_Ref[c].apgap, 0, &cbValue);
ret = SQLGetData(hStmt, 131, SQL_C_ULONG, &NPC_Info_Ref[c].vpgap, 0, &cbValue);
ret = SQLGetData(hStmt, 132, SQL_C_ULONG, &NPC_Info_Ref[c].attackpattern, 0, &cbValue);
ret = SQLGetData(hStmt, 133, SQL_C_ULONG, &NPC_Info_Ref[c].partyattack, 0, &cbValue);
ret = SQLGetData(hStmt, 134, SQL_C_ULONG, &NPC_Info_Ref[c].afterattack, 0, &cbValue);
ret = SQLGetData(hStmt, 135, SQL_C_ULONG, &NPC_Info_Ref[c].attackend, 0, &cbValue);
ret = SQLGetData(hStmt, 136, SQL_C_ULONG, &NPC_Info_Ref[c].opendoor, 0, &cbValue);
ret = SQLGetData(hStmt, 137, SQL_C_ULONG, &NPC_Info_Ref[c].lockdoor, 0, &cbValue);
ret = SQLGetData(hStmt, 138, SQL_C_ULONG, &NPC_Info_Ref[c].closedoor, 0, &cbValue);
ret = SQLGetData(hStmt, 139, SQL_C_ULONG, &NPC_Info_Ref[c].breakobj, 0, &cbValue);
ret = SQLGetData(hStmt, 140, SQL_C_ULONG, &NPC_Info_Ref[c].pickobj, 0, &cbValue);
ret = SQLGetData(hStmt, 141, SQL_C_ULONG, &NPC_Info_Ref[c].openbox, 0, &cbValue);
ret = SQLGetData(hStmt, 142, SQL_C_ULONG, &NPC_Info_Ref[c].lockbox, 0, &cbValue);
ret = SQLGetData(hStmt, 143, SQL_C_ULONG, &NPC_Info_Ref[c].closebox, 0, &cbValue);
ret = SQLGetData(hStmt, 144, SQL_C_ULONG, &NPC_Info_Ref[c].pathrange, 0, &cbValue);
ret = SQLGetData(hStmt, 145, SQL_C_ULONG, &NPC_Info_Ref[c].neglect, 0, &cbValue);
ret = SQLGetData(hStmt, 146, SQL_C_ULONG, &NPC_Info_Ref[c].checklevel, 0, &cbValue);
ret = SQLGetData(hStmt, 147, SQL_C_ULONG, &NPC_Info_Ref[c].absolattack, 0, &cbValue);
ret = SQLGetData(hStmt, 148, SQL_C_ULONG, &NPC_Info_Ref[c].stop, 0, &cbValue);
ret = SQLGetData(hStmt, 149, SQL_C_ULONG, &NPC_Info_Ref[c].backdown, 0, &cbValue);
ret = SQLGetData(hStmt, 150, SQL_C_ULONG, &NPC_Info_Ref[c].act_month, 0, &cbValue);
ret = SQLGetData(hStmt, 151, SQL_C_ULONG, &NPC_Info_Ref[c].act_space, 0, &cbValue);
ret = SQLGetData(hStmt, 152, SQL_C_ULONG, &NPC_Info_Ref[c].act_time, 0, &cbValue);
ret = SQLGetData(hStmt, 153, SQL_C_ULONG, &NPC_Info_Ref[c].act_weather, 0, &cbValue);
if(ret != SQL_SUCCESS_WITH_INFO && ret != SQL_SUCCESS) {
printf("\nError!!! (%d)", ret) ;
return -1 ;
}
c++ ;
ret= SQLFetch(hStmt) ;
}
// printf("\n<<<<<< %d Rows.>>>>>>>>", c) ;
nNPC_Type= c ;
SQLFreeStmt(hStmt, SQL_DROP) ;
printf(" .NPC Info %3d data Loaded !\n", c) ;
// for(i=0 ; i<nNPC_Type; i++) {
// printf("\n %s %d", NPC_Ref[i].Name, NPC_Ref[i].SprNo) ;
// }
return c ;
}
// NPC沥焊(惑怕沥焊, 塞/瘤瓷 殿狼 阿辆 荐摹)甫 淬绊 乐绰 抛捞喉阑
// DB俊辑 佬绢坷绰 窃荐
int initNPCGenerationTable(void)
{
if(Num_Of_NPC_Generation <= 0) {
//fprintf(stdout, "\n No item's available ") ;
return -4 ; // No item's available
}
HSTMT hStmt= NULL ;
RETCODE ret ;
char query_stmt[80]= {0, } ;
SDWORD cbValue ;
int c= 0 ;
SQLAllocStmt(hDBC, &hStmt);
/////////////////////////////////////////////////////////////////////////////
//strcpy(query_stmt, "select * from NPC_Generation_sp order by SprNO") ;
strcpy(query_stmt, "EXEC up_get_npc_generation_sp");
/////////////////////////////////////////////////////////////////////////////
ret= SQLExecDirect(hStmt, (UCHAR *)query_stmt, SQL_NTS) ;
if(ret != SQL_SUCCESS_WITH_INFO && ret != SQL_SUCCESS) {
printf("\nNPC init: ExecDirect Error ") ;
return -1 ;
}
//SQLNumResultCols(hStmt, &nCols) ;
ret= SQLFetch(hStmt) ;
if(ret != SQL_SUCCESS_WITH_INFO && ret != SQL_SUCCESS) {
LPVOID lpMsgBuf;
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS, NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf, 0, NULL );// Process any inserts in lpMsgBuf.
// ...// Display the string.
printf("\nLast Error: %s", (LPCTSTR)lpMsgBuf) ;
// Free the buffer.
LocalFree( lpMsgBuf );
printf("\nNPC init: Fetch Error ") ;
return -1 ;
}
while(c < Num_Of_NPC_Generation && ret == SQL_SUCCESS)
{
ret = SQLGetData(hStmt, 1, SQL_C_ULONG, &NPC_Gen_Ref[c].SprNO,0, &cbValue);
ret = SQLGetData(hStmt, 2, SQL_C_CHAR, NPC_Gen_Ref[c].Han_name, 30, &cbValue);
ret = SQLGetData(hStmt, 3, SQL_C_CHAR, NPC_Gen_Ref[c].Name, 30, &cbValue);
ret = SQLGetData(hStmt, 4, SQL_C_ULONG, &NPC_Gen_Ref[c].Selectable,0, &cbValue);
ret = SQLGetData(hStmt, 5, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_gender,0, &cbValue);
ret = SQLGetData(hStmt, 6, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_FirstName,0, &cbValue);
ret = SQLGetData(hStmt, 7, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_LastName,0, &cbValue);
ret = SQLGetData(hStmt, 8, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_race,0, &cbValue);
ret = SQLGetData(hStmt, 9, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Class_Warrior,0, &cbValue);
ret = SQLGetData(hStmt, 10, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Class_Thief,0, &cbValue);
ret = SQLGetData(hStmt, 11, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Class_Archery,0, &cbValue);
ret = SQLGetData(hStmt, 12, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Class_Wizard,0, &cbValue);
ret = SQLGetData(hStmt, 13, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Class_Priest,0, &cbValue);
ret = SQLGetData(hStmt, 14, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Farmer,0, &cbValue);
ret = SQLGetData(hStmt, 15, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Miner,0, &cbValue);
ret = SQLGetData(hStmt, 16, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_FishHooker,0, &cbValue);
ret = SQLGetData(hStmt, 17, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Lumberjack,0, &cbValue);
ret = SQLGetData(hStmt, 18, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Butcher,0, &cbValue);
ret = SQLGetData(hStmt, 19, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Herbdigger,0, &cbValue);
ret = SQLGetData(hStmt, 20, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Herdman,0, &cbValue);
ret = SQLGetData(hStmt, 21, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Carpenter,0, &cbValue);
ret = SQLGetData(hStmt, 22, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Blacksmith,0, &cbValue);
ret = SQLGetData(hStmt, 23, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Cooker,0, &cbValue);
ret = SQLGetData(hStmt, 24, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Tailor,0, &cbValue);
ret = SQLGetData(hStmt, 25, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_BowFlet,0, &cbValue);
ret = SQLGetData(hStmt, 26, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Alchemist,0, &cbValue);
ret = SQLGetData(hStmt, 27, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Candlemaker,0, &cbValue);
ret = SQLGetData(hStmt, 28, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Job_Merchant,0, &cbValue);
ret = SQLGetData(hStmt, 29, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Age_Min,0, &cbValue);
ret = SQLGetData(hStmt, 30, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Age_Max,0, &cbValue);
ret = SQLGetData(hStmt, 31, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Lv_min,0, &cbValue);
ret = SQLGetData(hStmt, 32, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Lv_Max,0, &cbValue);
ret = SQLGetData(hStmt, 33, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Tactics,0, &cbValue);
ret = SQLGetData(hStmt, 34, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Spell,0, &cbValue);
ret = SQLGetData(hStmt, 35, SQL_C_ULONG, &NPC_Gen_Ref[c].Money_min,0, &cbValue);
ret = SQLGetData(hStmt, 36, SQL_C_ULONG, &NPC_Gen_Ref[c].Money_Max,0, &cbValue);
ret = SQLGetData(hStmt, 37, SQL_C_ULONG, &NPC_Gen_Ref[c].Bear_Peoriod,0, &cbValue);
ret = SQLGetData(hStmt, 38, SQL_C_ULONG, &NPC_Gen_Ref[c].Bear_amount,0, &cbValue);
ret = SQLGetData(hStmt, 39, SQL_C_ULONG, &NPC_Gen_Ref[c].Bear_Succes,0, &cbValue);
ret = SQLGetData(hStmt, 40, SQL_C_ULONG, &NPC_Gen_Ref[c].Bear_Do,0, &cbValue);
ret = SQLGetData(hStmt, 41, SQL_C_ULONG, &NPC_Gen_Ref[c].Bear_Probability,0, &cbValue);
ret = SQLGetData(hStmt, 42, SQL_C_ULONG, &NPC_Gen_Ref[c].Bear_Checktime,0, &cbValue);
ret = SQLGetData(hStmt, 43, SQL_C_ULONG, &NPC_Gen_Ref[c].Moderation,0, &cbValue);
ret = SQLGetData(hStmt, 44, SQL_C_ULONG, &NPC_Gen_Ref[c].royal,0, &cbValue);
ret = SQLGetData(hStmt, 45, SQL_C_ULONG, &NPC_Gen_Ref[c].Courage,0, &cbValue);
ret = SQLGetData(hStmt, 46, SQL_C_ULONG, &NPC_Gen_Ref[c].Faith,0, &cbValue);
ret = SQLGetData(hStmt, 47, SQL_C_ULONG, &NPC_Gen_Ref[c].Truth,0, &cbValue);
ret = SQLGetData(hStmt, 48, SQL_C_ULONG, &NPC_Gen_Ref[c].Justice,0, &cbValue);
ret = SQLGetData(hStmt, 49, SQL_C_ULONG, &NPC_Gen_Ref[c].Mercy,0, &cbValue);
ret = SQLGetData(hStmt, 50, SQL_C_ULONG, &NPC_Gen_Ref[c].Muder,0, &cbValue);
ret = SQLGetData(hStmt, 51, SQL_C_ULONG, &NPC_Gen_Ref[c].Robery,0, &cbValue);
ret = SQLGetData(hStmt, 52, SQL_C_ULONG, &NPC_Gen_Ref[c].Betrayal,0, &cbValue);
ret = SQLGetData(hStmt, 53, SQL_C_ULONG, &NPC_Gen_Ref[c].Disroyal,0, &cbValue);
ret = SQLGetData(hStmt, 54, SQL_C_ULONG, &NPC_Gen_Ref[c].Greed,0, &cbValue);
ret = SQLGetData(hStmt, 55, SQL_C_ULONG, &NPC_Gen_Ref[c].idol,0, &cbValue);
ret = SQLGetData(hStmt, 56, SQL_C_ULONG, &NPC_Gen_Ref[c].Reputaion,0, &cbValue);
ret = SQLGetData(hStmt, 57, SQL_C_ULONG, &NPC_Gen_Ref[c].Reputaion_range,0, &cbValue);
ret = SQLGetData(hStmt, 58, SQL_C_ULONG, &NPC_Gen_Ref[c].SpiritValue,0, &cbValue);
ret = SQLGetData(hStmt, 59, SQL_C_ULONG, &NPC_Gen_Ref[c].SpiritValue_Range,0, &cbValue);
ret = SQLGetData(hStmt, 60, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[0],0, &cbValue);
ret = SQLGetData(hStmt, 61, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[1],0, &cbValue);
ret = SQLGetData(hStmt, 62, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[2],0, &cbValue);
ret = SQLGetData(hStmt, 63, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[3],0, &cbValue);
ret = SQLGetData(hStmt, 64, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[4],0, &cbValue);
ret = SQLGetData(hStmt, 65, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[5],0, &cbValue);
ret = SQLGetData(hStmt, 66, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[6],0, &cbValue);
ret = SQLGetData(hStmt, 67, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[7],0, &cbValue);
ret = SQLGetData(hStmt, 68, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[8],0, &cbValue);
ret = SQLGetData(hStmt, 69, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[9],0, &cbValue);
ret = SQLGetData(hStmt, 70, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[10],0, &cbValue);
ret = SQLGetData(hStmt, 71, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[11],0, &cbValue);
ret = SQLGetData(hStmt, 72, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[12],0, &cbValue);
ret = SQLGetData(hStmt, 73, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[13],0, &cbValue);
ret = SQLGetData(hStmt, 74, SQL_C_ULONG, &NPC_Gen_Ref[c].PS[14],0, &cbValue);
ret = SQLGetData(hStmt, 75, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Dice,0, &cbValue);
ret = SQLGetData(hStmt, 76, SQL_C_ULONG, &NPC_Gen_Ref[c].QuantityperLv,0, &cbValue);
ret = SQLGetData(hStmt, 77, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[0],0, &cbValue);
ret = SQLGetData(hStmt, 78, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[1],0, &cbValue);
ret = SQLGetData(hStmt, 79, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[2],0, &cbValue);
ret = SQLGetData(hStmt, 80, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[3],0, &cbValue);
ret = SQLGetData(hStmt, 81, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[4],0, &cbValue);
ret = SQLGetData(hStmt, 82, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[5],0, &cbValue);
ret = SQLGetData(hStmt, 83, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[6],0, &cbValue);
ret = SQLGetData(hStmt, 84, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[7],0, &cbValue);
ret = SQLGetData(hStmt, 85, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[8],0, &cbValue);
ret = SQLGetData(hStmt, 86, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[9],0, &cbValue);
ret = SQLGetData(hStmt, 87, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[10],0, &cbValue);
ret = SQLGetData(hStmt, 88, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[11],0, &cbValue);
ret = SQLGetData(hStmt, 89, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[12],0, &cbValue);
ret = SQLGetData(hStmt, 90, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[13],0, &cbValue);
ret = SQLGetData(hStmt, 91, SQL_C_ULONG, &NPC_Gen_Ref[c].WS[14],0, &cbValue);
ret = SQLGetData(hStmt, 92, SQL_C_ULONG, &NPC_Gen_Ref[c].Sel_Dice1,0, &cbValue);
ret = SQLGetData(hStmt, 93, SQL_C_ULONG, &NPC_Gen_Ref[c].QuantityperLv1,0, &cbValue);
ret = SQLGetData(hStmt, 94, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_weapon1,0, &cbValue);
ret = SQLGetData(hStmt, 95, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_weapon2,0, &cbValue);
ret = SQLGetData(hStmt, 96, SQL_C_ULONG, &NPC_Gen_Ref[c].Damage_weapon,0, &cbValue);
ret = SQLGetData(hStmt, 97, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_attackws[0],0, &cbValue);
ret = SQLGetData(hStmt, 98, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_attackws[1],0, &cbValue);
ret = SQLGetData(hStmt, 99, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_attackws[2],0, &cbValue);
ret = SQLGetData(hStmt, 100, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_attackws[3],0, &cbValue);
ret = SQLGetData(hStmt, 101, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_attackws[4],0, &cbValue);
ret = SQLGetData(hStmt, 102, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_attackws[5],0, &cbValue);
ret = SQLGetData(hStmt, 103, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_attackws[6] ,0, &cbValue);
ret = SQLGetData(hStmt, 104, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_attackws[7] ,0, &cbValue);
ret = SQLGetData(hStmt, 105, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_attackws[8],0, &cbValue);
ret = SQLGetData(hStmt, 106, SQL_C_ULONG, &NPC_Gen_Ref[c].Damage_WP,0, &cbValue);
ret = SQLGetData(hStmt, 107, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_WS,0, &cbValue);
ret = SQLGetData(hStmt, 108, SQL_C_ULONG, &NPC_Gen_Ref[c].Success,0, &cbValue);
ret = SQLGetData(hStmt, 109, SQL_C_ULONG, &NPC_Gen_Ref[c].Leathal_ps,0, &cbValue);
ret = SQLGetData(hStmt, 110, SQL_C_ULONG, &NPC_Gen_Ref[c].DamagePercent_ps,0, &cbValue);
ret = SQLGetData(hStmt, 111, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[0],0, &cbValue);
ret = SQLGetData(hStmt, 112, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[1],0, &cbValue);
ret = SQLGetData(hStmt, 113, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[2],0, &cbValue);
ret = SQLGetData(hStmt, 114, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[3],0, &cbValue);
ret = SQLGetData(hStmt, 115, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[4],0, &cbValue);
ret = SQLGetData(hStmt, 116, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[5],0, &cbValue);
ret = SQLGetData(hStmt, 117, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[6],0, &cbValue);
ret = SQLGetData(hStmt, 118, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[7],0, &cbValue);
ret = SQLGetData(hStmt, 119, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[8],0, &cbValue);
ret = SQLGetData(hStmt, 120, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[9],0, &cbValue);
ret = SQLGetData(hStmt, 121, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[10],0, &cbValue);
ret = SQLGetData(hStmt, 122, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[11],0, &cbValue);
ret = SQLGetData(hStmt, 123, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[12],0, &cbValue);
ret = SQLGetData(hStmt, 124, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[13],0, &cbValue);
ret = SQLGetData(hStmt, 125, SQL_C_ULONG, &NPC_Gen_Ref[c].Inventory[14],0, &cbValue);
ret = SQLGetData(hStmt, 126, SQL_C_ULONG, &NPC_Gen_Ref[c].Amount_Dice,0, &cbValue);
ret = SQLGetData(hStmt, 127, SQL_C_ULONG, &NPC_Gen_Ref[c].Righthand,0, &cbValue);
ret = SQLGetData(hStmt, 128, SQL_C_ULONG, &NPC_Gen_Ref[c].Lefthand,0, &cbValue);
ret = SQLGetData(hStmt, 129, SQL_C_ULONG, &NPC_Gen_Ref[c].Body,0, &cbValue);
ret = SQLGetData(hStmt, 130, SQL_C_ULONG, &NPC_Gen_Ref[c].Helmet,0, &cbValue);
ret = SQLGetData(hStmt, 131, SQL_C_ULONG, &NPC_Gen_Ref[c].leg,0, &cbValue);
ret = SQLGetData(hStmt, 132, SQL_C_ULONG, &NPC_Gen_Ref[c].Leg_Probability,0, &cbValue);
ret = SQLGetData(hStmt, 133, SQL_C_ULONG, &NPC_Gen_Ref[c].neck,0, &cbValue);
ret = SQLGetData(hStmt, 134, SQL_C_ULONG, &NPC_Gen_Ref[c].neck_Probability ,0, &cbValue);
ret = SQLGetData(hStmt, 135, SQL_C_ULONG, &NPC_Gen_Ref[c].unique1,0, &cbValue);
ret = SQLGetData(hStmt, 136, SQL_C_ULONG, &NPC_Gen_Ref[c].Unique1_probalbility,0, &cbValue);
ret = SQLGetData(hStmt, 137, SQL_C_ULONG, &NPC_Gen_Ref[c].Unique2,0, &cbValue);
ret = SQLGetData(hStmt, 138, SQL_C_ULONG, &NPC_Gen_Ref[c].unique2_probability ,0, &cbValue);
ret = SQLGetData(hStmt, 139, SQL_C_ULONG, &NPC_Gen_Ref[c].Crapple,0, &cbValue);
ret = SQLGetData(hStmt, 140, SQL_C_ULONG, &NPC_Gen_Ref[c].swordmanship,0, &cbValue);
ret = SQLGetData(hStmt, 141, SQL_C_ULONG, &NPC_Gen_Ref[c].Archery,0, &cbValue);
ret = SQLGetData(hStmt, 142, SQL_C_ULONG, &NPC_Gen_Ref[c].Fencing,0, &cbValue);
ret = SQLGetData(hStmt, 143, SQL_C_ULONG, &NPC_Gen_Ref[c].Mace_fighting,0, &cbValue);
ret = SQLGetData(hStmt, 144, SQL_C_ULONG, &NPC_Gen_Ref[c].Pierce,0, &cbValue);
ret = SQLGetData(hStmt, 145, SQL_C_ULONG, &NPC_Gen_Ref[c].Whirl,0, &cbValue);
ret = SQLGetData(hStmt, 146, SQL_C_ULONG, &NPC_Gen_Ref[c].Hurl,0, &cbValue);
ret = SQLGetData(hStmt, 147, SQL_C_ULONG, &NPC_Gen_Ref[c].Parrying,0, &cbValue);
ret = SQLGetData(hStmt, 148, SQL_C_ULONG, &NPC_Gen_Ref[c].Double_Swordmanship ,0, &cbValue);
ret = SQLGetData(hStmt, 149, SQL_C_ULONG, &NPC_Gen_Ref[c].Double_MaceFighting ,0, &cbValue);
ret = SQLGetData(hStmt, 150, SQL_C_ULONG, &NPC_Gen_Ref[c].Magery,0, &cbValue);
ret = SQLGetData(hStmt, 151, SQL_C_ULONG, &NPC_Gen_Ref[c].Orison,0, &cbValue);
ret = SQLGetData(hStmt, 152, SQL_C_ULONG, &NPC_Gen_Ref[c].LV_Str,0, &cbValue);
ret = SQLGetData(hStmt, 153, SQL_C_ULONG, &NPC_Gen_Ref[c].Con,0, &cbValue);
ret = SQLGetData(hStmt, 154, SQL_C_ULONG, &NPC_Gen_Ref[c].Dex,0, &cbValue);
ret = SQLGetData(hStmt, 155, SQL_C_ULONG, &NPC_Gen_Ref[c].Wis,0, &cbValue);
ret = SQLGetData(hStmt, 156, SQL_C_ULONG, &NPC_Gen_Ref[c].Int,0, &cbValue);
ret = SQLGetData(hStmt, 157, SQL_C_ULONG, &NPC_Gen_Ref[c].Movp,0, &cbValue);
ret = SQLGetData(hStmt, 158, SQL_C_ULONG, &NPC_Gen_Ref[c].Char,0, &cbValue);
ret = SQLGetData(hStmt, 159, SQL_C_ULONG, &NPC_Gen_Ref[c].Endu,0, &cbValue);
ret = SQLGetData(hStmt, 160, SQL_C_ULONG, &NPC_Gen_Ref[c].Mor,0, &cbValue);
ret = SQLGetData(hStmt, 161, SQL_C_ULONG, &NPC_Gen_Ref[c].Luck,0, &cbValue);
ret = SQLGetData(hStmt, 162, SQL_C_ULONG, &NPC_Gen_Ref[c].WS_PS,0, &cbValue);
ret = SQLGetData(hStmt, 163, SQL_C_ULONG, &NPC_Gen_Ref[c].Fullpoint,0, &cbValue);
//< CSD-010907
/*
ret = SQLGetData(hStmt, 164, SQL_C_ULONG, &NPC_Gen_Ref[c].Suplus_Resist_Death ,0, &cbValue);
ret = SQLGetData(hStmt, 165, SQL_C_ULONG, &NPC_Gen_Ref[c].Suplus_Resist_Ston ,0, &cbValue);
ret = SQLGetData(hStmt, 166, SQL_C_ULONG, &NPC_Gen_Ref[c].Suplus_Resist_Magic ,0, &cbValue);
ret = SQLGetData(hStmt, 167, SQL_C_ULONG, &NPC_Gen_Ref[c].Suplus_Resist_Fire ,0, &cbValue);
ret = SQLGetData(hStmt, 168, SQL_C_ULONG, &NPC_Gen_Ref[c].Suplus_Resist_Ice ,0, &cbValue);
ret = SQLGetData(hStmt, 169, SQL_C_ULONG, &NPC_Gen_Ref[c].Suplus_Resist_Light ,0, &cbValue);
*/
ret = SQLGetData(hStmt, 164, SQL_C_ULONG, &NPC_Gen_Ref[c].nPoison ,0, &cbValue);
ret = SQLGetData(hStmt, 165, SQL_C_ULONG, &NPC_Gen_Ref[c].nCurse ,0, &cbValue);
ret = SQLGetData(hStmt, 166, SQL_C_ULONG, &NPC_Gen_Ref[c].nHoly ,0, &cbValue);
ret = SQLGetData(hStmt, 167, SQL_C_ULONG, &NPC_Gen_Ref[c].nFire ,0, &cbValue);
ret = SQLGetData(hStmt, 168, SQL_C_ULONG, &NPC_Gen_Ref[c].nIce ,0, &cbValue);
ret = SQLGetData(hStmt, 169, SQL_C_ULONG, &NPC_Gen_Ref[c].nElect ,0, &cbValue);
//> CSD-010907
ret = SQLGetData(hStmt, 170, SQL_C_ULONG, &NPC_Gen_Ref[c].DivideLv,0, &cbValue);
ret = SQLGetData(hStmt, 171, SQL_C_ULONG, &NPC_Gen_Ref[c].Resist_Range,0, &cbValue);
ret = SQLGetData(hStmt, 172, SQL_C_ULONG, &NPC_Gen_Ref[c].Tamingable,0, &cbValue);
ret = SQLGetData(hStmt, 173, SQL_C_ULONG, &NPC_Gen_Ref[c].Taming_min,0, &cbValue);
ret = SQLGetData(hStmt, 174, SQL_C_ULONG, &NPC_Gen_Ref[c].Taming_max,0, &cbValue);
ret = SQLGetData(hStmt, 175, SQL_C_ULONG, &NPC_Gen_Ref[c].Talkanimal_min,0, &cbValue);
ret = SQLGetData(hStmt, 176, SQL_C_ULONG, &NPC_Gen_Ref[c].Talkanimal_max,0, &cbValue);
ret = SQLGetData(hStmt, 177, SQL_C_ULONG, &NPC_Gen_Ref[c].Resist,0, &cbValue);
ret = SQLGetData(hStmt, 178, SQL_C_ULONG, &NPC_Gen_Ref[c].Resist_range1,0, &cbValue);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -