class ThreadDemo3 extends Thread {
private String name
private int delay
public ThreadDemo3(String sname, int i_delay) {
name = sname
delay = i_delay
}
public void run() {
try {
sleep(delay)
} catch (InterruptedException e) {
}
System.out.println("多线程测试!\n" + name + "\n" + delay)
}
}
public class testMyThread {
public static void main(String[] args) {
ThreadDemo3 th1,th2,th3
th1 = new ThreadDemo3("线程1", (int) (Math.random() * 900))
th2 = new ThreadDemo3("线程2", (int) (Math.random() * 900))
th3 = new ThreadDemo3("线程3", (int) (Math.random() * 900))
th1.start()
th2.start()
th3.start()
}
}
package threadgroup
public class threadDemo {
public static void main(String[] args) {
Thread t = Thread.currentThread()
t.setName("你好吗?")
System.out.println("正在进行的Thread是:" + t)
try {
for (int i = 0i <5i++) {
System.out.println("我不叫穆继超" + i)
Thread.sleep(3000)
}
} catch (Exception e) {
// TODO: handle exception
System.out.println("Thread has wrong" + e.getMessage())
}
}
}
package threadgroup
public class threadDemo2 implements Runnable {
public threadDemo2() {
Thread t1 = Thread.currentThread()
t1.setName("第一个主进程")
System.out.println("正在运行" + t1)
Thread t2 = new Thread(this, "")
System.out.println("在创建一个进程")
t2.start()
try {
System.out.println("使他进入第一个睡眠状态")
Thread.sleep(2000)
} catch (InterruptedException e) {
System.out.println("Thread has wrong" + e.getMessage())
}
System.out.println("退出第一个进程")
}
public void run() {
try {
for (int i = 0i <5i++) {
System.out.println("进程" + i)
Thread.sleep(3000)
}
} catch (InterruptedException e) {
// TODO: handle exception
System.out.println("Thread has wrong" + e.getMessage())
}
System.out.println("退出第二个进程")
}
public static void main(String[] args) {
new threadDemo2()
}
}
新建角色不能打怪.不能穿装备解决方法 Navicat for MySQL打开loong_base这个表,找到roledata找到你的角色,然后拉到后面找到Class和ClassEx把0改成1一、人物信息表(loong_base中的roledata)
Class和ClassEX → 这俩字段值全改成1,可以打怪和穿装备
AttPtAvail → 可加属性点
TalenPtAvail → 技能点
PhysiqueAdded → 筋骨
StrengthAdded → 劲力
PneumaAdded → 元气
InnerforceAdded → 内力
TechniqueAdded → 身法
AgilityAdded → 技力
BagSize → 背包(最大140,默认20)
BagGold → 金子
BagSilver → 银子
BagYuanBao → 元宝
二、装备信息表(loong_base中的equip,此表对应你人物身上和背包上的装备,不包括道具)
Quality → 品质(0是白,1是黄,2是绿,3是蓝,4是橙)
WuHun → 武魂
MinDmg → 最小攻击
MaxDmg → 最大攻击
Aromor → 装备防御
PotVal → 潜力值(强化后装备剩余潜力值)
PotValUserd → 潜力值(强化后使用的潜力值)
PosyTimes → 镌刻次数
EngraveTimes → 铭纹次数
HoleNum → 开洞数量
BrandLevel → 烙印等级
三、物品信息表(loong_base中的item,背包中的道具)
Num → 道具数量
TypeID → 道具ID,添加物品必要的代码
Bind → 是否绑定(取值1和2)
UseTimes → 使用次数
CreateMode → 道具创建模式,给7就行了
CreateID → 写你登陆游戏的帐号
OwnerID → 角色ID(第一个创建的人物ID是1,第二个是2,第三个是3,以此类推。添加物品必须要指定角色ID,否则无法添加成功)
"
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)