求一段asp源码
<%
db="data.mdb "
connstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(db)
set conn=server.createobject("adodb.connection")
conn.open connstr
sub CloseConn()
conn.close
set conn=nothing
end sub
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from sword ",conn,1,1
if not rs.eof then
conn.execute ("update kingart set artcontent=replace(artcontent,'"&rs("keyword")&"','"&rs("keyword1")&"')")
end if
rs.close
set rs=nothing
CloseConn
%>
上古卷轴5控制台武器代码 本人新手 打了 两天才十级 武器就一把38攻
player.additem FormID # 添加物品#个
000139BA Daedric Warhammer 魔族战锤
000139B9 Daedric Sword 魔族长剑
000139B8 Daedric Mace 魔族钉头锤
000139B7 Daedric Greatsword)魔族巨剑
000139B6 Daedric Dagger 魔族匕首
000139B5 Daedric Bow 魔族弓
000139C0 Daedric Arrow 魔族箭矢
000139B4 Daedric Battleaxe 魔族战斧
000139B3 Daedric War Axe 魔族巨斧
魔族武器是原版里最高等级的武器,载入龙裔DLC有龙骨武器
做点神魔任务,前期好过一点。
流星蝴蝶剑加人代码
在进入联机地图后 键入“\AI ”+下列代码就能加如相应NPC了(AI必须大写)
忍刀 KATANA
枪 Lance
刀 Blade
匕首 Dagger
锤 Hammer
剑 Sword
双刺 Stinger
指虎 PUNCH
乾坤刀 SAMURAI
npcXX_XX
编号 名称及备注 携带兵刃 阵营
0101 铁枪哨兵甲 枪 蝴蝶
0102 铁枪哨兵乙 枪 蝴蝶
0103 军枪哨兵长 枪 蝴蝶
0301 土匪铁胡子 刀&镖 中立
0302 夜猫子 双刺 蝴蝶
0303 火枪哨兵甲 火枪 蝴蝶
0304 火枪哨兵乙 火枪 蝴蝶
0305 火枪哨兵丙 火枪 蝴蝶
0306 疾剑哨兵长 剑&镖 蝴蝶
0401 禁卫侍官长 火枪&刀 蝴蝶
0402 金枪侍卫甲 枪 蝴蝶
0403 金枪侍卫乙 枪 蝴蝶
0404 火筒兵甲 火枪&匕首 蝴蝶
0405 火筒兵乙 火枪&匕首 蝴蝶
0406 禁卫士兵甲 刀 蝴蝶
0407 禁卫士兵乙 刀 蝴蝶
0501 屠城 锤 蝴蝶
0502 无名杀手 镖&剑 蝴蝶
0503 蒙面人甲 火枪&匕首 蝴蝶
0504 蒙面人乙 火枪&双刺 蝴蝶
0505 野和尚甲 锤&镖 蝴蝶
0506 野和尚乙 锤&飞轮 蝴蝶
0507 金枪侍卫 枪&双刺 蝴蝶
0508 大刀侍卫 刀 蝴蝶
0509 范璇 剑 蝴蝶
0901 冷燕 剑 蝴蝶
0902 屠城(不动) 锤 中立
1001 屠城 刀 蝴蝶
1002 蒙面人甲 火枪&匕首 蝴蝶
1003 蒙面人乙 火枪&双刺 蝴蝶
1004 蒙面人丙 火枪&匕首 蝴蝶
1005 蒙面人丁 火枪&双刺 蝴蝶
1301 冷燕 双刺 流星
1302 王强 刀 蝴蝶
1303 军枪官差甲 枪 蝴蝶
1304 军枪官差乙 枪 蝴蝶
1305 夜猫子(不动) 火枪 蝴蝶
1306 官差甲(不动) 刀 蝴蝶
1307 官差乙(不动) 刀 蝴蝶
1308 官差丙(不动) 刀 蝴蝶
1401 大刀哨兵 飞轮&刀 蝴蝶
1402 铁枪哨兵 飞轮&枪 蝴蝶
1501 萧安 剑 蝴蝶
1502 左护法 火枪&剑 蝴蝶
1503 右护法 锤 蝴蝶
1504 金枪侍卫甲 枪 蝴蝶
1505 金枪侍卫乙 枪 蝴蝶
1506 金枪侍卫丙 枪&镖 蝴蝶
1507 金枪侍卫丁 枪&火枪 蝴蝶
1508 无名 匕首 流星
急求C++设计象棋打谱程序的源代码
这是一个简单的程序,会自动计算提子,但不会数目。
其它的运行一次估计就差不多会用了。稍微写了点注释。
#include#includechar board[21][21];char move[5][2]=,,,,};void initBoard();//初始化棋盘 void showBoard();//输出棋盘char set(int x,int y,char color);//下子 void process(int xx,int yy);//计算提子 int main(){ FILE * fptr=NULL; char pufile[256]=; char op; int s; int x,y,r; char color; char win; int cnt;start: s=8; while(s!=1 && s!=2) { printf("选择模式:\n1---下棋\n2---看棋谱\n0---退出\n"); printf("下棋模式下,下子请输入s x y(x,y为位置),认输输入g,和棋输入h\n选择:"); scanf("%d",&s); if(s==0) return 0; //Egg1 if(s==10) printf("Programmer: swordlance :)\n"); //Egg1 end } getchar(); printf("输入棋谱路径:"); gets(pufile); if(s==1) fptr=fopen(pufile,"w"); else fptr=fopen(pufile,"r"); if(!fptr) { printf("文件无法打开(创建)!\n"); system("PAUSE"); return -1; } initBoard(); cnt=0; color='B'; while(op!='g') { system("CLS"); showBoard(); printf("(第%d手)",++cnt); if(s==1) { printf("%c 方:",color); scanf("%c",&op); //printf("[%c]",op); if(op=='s') { scanf("%d %d",&x,&y); getchar(); if(set(x,y,color)!=0) { printf("该处不能落子!\n"); cnt--; system("PAUSE"); } else { process(x,y); fprintf(fptr,"%d %d\n",x,y); if(color=='B') color='W'; else color='B'; } } else if(op=='g') { printf("%c 方认输。\n",color); if(color=='B') fprintf(fptr,"0 1\n"); else fprintf(fptr,"0 -1\n"); fflush(fptr); fclose(fptr); system("PAUSE"); goto start; } else if(op=='h') { printf("和棋。
\n"); fprintf(fptr,"0 0\n"); fflush(fptr); fclose(fptr); system("PAUSE"); goto start; } else { printf("参数错误,下子请输入s x y(x,y为位置),认输输入 g,和棋输入h"); cnt--; system("PAUSE"); } } else { fscanf(fptr,"%d %d",&x,&y); if(x==0) { if(y>0) printf("W 方胜!\n"); else if(y0 && y>0 && x 评论0 0 0。
转载请注明出处51数据库 » xuesword源码