diff --git a/twe/event_1.php b/twe/event_1.php index 30cee6fd..17c7ac10 100644 --- a/twe/event_1.php +++ b/twe/event_1.php @@ -203,7 +203,6 @@ echo ""; function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$power,$intel,$personal,$special,$msg="") { $name = "ⓞ".$name; - $genid = "npc{$gencount}"; $turntime = getRandTurn2($turnterm); $personal = CharCall($personal); $special = SpecCall($special); @@ -221,18 +220,17 @@ function RegGeneral3($connect,$turnterm,$gencount,$nation,$level,$name,$leader,$ $picture = 'default.jpg'; $crew = $leader * 100; $crewtype = rand() % 3; - $pw = md5("18071807"); //장수 @MYDB_query(" insert into general ( - npcid,npc,npc_org,npcmatch,user_id,password,name,picture,nation,city, + npcid,npc,npc_org,npcmatch,name,picture,nation,city, leader,power,intel,experience,dedication, level,gold,rice,crew,crewtype,train,atmos,tnmt, weap,book,horse,turntime,killturn,age,belong,personal,special,specage,special2,specage2,npcmsg, makelimit, dex0, dex10, dex20, dex30, dex40 ) values ( - '$gencount','$npc','$npc','$npcmatch','$genid','$pw','$name','$picture','$nation','$city', + '$gencount','$npc','$npc','$npcmatch','$name','$picture','$nation','$city', '$leader','$power','$intel','$experience','$dedication', '$level','99999','99999','$crew','$crewtype','100','100','0', '6','6','6','$turntime','$killturn','$age','1', diff --git a/twe/func_npc.php b/twe/func_npc.php index 362803f6..965d40d7 100644 --- a/twe/func_npc.php +++ b/twe/func_npc.php @@ -18,7 +18,6 @@ function RegGeneral($connect,$init,$life,$fiction,$turnterm,$startyear,$year,$ge if($init != 0 && $startyear > $bornyear+14 && $startyear <= $deadyear) { if($deadyear <= $startyear+3) $deadyear += 5; - $genid = "gen{$gencount}"; $turntime = getRandTurn($turnterm); if($personal != "-") { $personal = CharCall($personal); } else { $personal = rand() % 10; } @@ -37,17 +36,16 @@ function RegGeneral($connect,$init,$life,$fiction,$turnterm,$startyear,$year,$ge $experience = $age * 100; $dedication = $age * 100; if($nation != 0 && $level == 0) $level = 1; - $pw = md5("18071807"); - + //장수 @MYDB_query(" insert into general ( - npcid,npc,npc_org,npcmatch,user_id,password,name,picture,nation,city,leader,power,intel, + npcid,npc,npc_org,npcmatch,name,picture,nation,city,leader,power,intel, experience,dedication,level,gold,rice,crew,crewtype,train,atmos, weap,book,horse,turntime,killturn,age,belong,personal,special,specage,special2,specage2,npcmsg, makelimit,bornyear,deadyear ) values ( - '$gencount','$npc','$npc','$npcmatch','$genid','$pw','$name','$picture','$nation', + '$gencount','$npc','$npc','$npcmatch','$name','$picture','$nation', '$city','$leader','$power','$intel','$experience','$dedication', '$level','1000','1000','0','0','0','0', '0','0','0','$turntime','$killturn','$age','1', diff --git a/twe/install2_ok.php b/twe/install2_ok.php index 9731b9a4..38ee8f50 100644 --- a/twe/install2_ok.php +++ b/twe/install2_ok.php @@ -47,18 +47,17 @@ $turntime = date('Y-m-d H:i:s'); $lastconnect = $turntime; $turntime = addTurn($turntime, $turnterm); $turntime = cutTurn($turntime, $turnterm); -$pw = md5('18071807'); $picture = 'pic_1.jpg'; if($img < 1) { $picture = 'default.jpg'; }; @MYDB_query(" insert into general ( - user_id, password, connect, name, picture, nation, city, troop, makelimit, + no_member, connect, name, picture, nation, city, troop, makelimit, leader, power, intel, experience, dedication, gold, rice, crew, train, atmos, weap, book, level, turntime, killturn, lastconnect, userlevel ) values ( - 'admin', '$pw', '0', '운영자', '$picture', '0', '3', '0', '0', + '1', '0', '운영자', '$picture', '0', '3', '0', '0', '50', '50', '50', '0', '0', '10000', '10000', '0', '0', '0', '0', '0', '0', '$turntime', '80', '$lastconnect', '6' )", @@ -71,11 +70,11 @@ if($img < 1) { $picture = 'default.jpg'; }; //부운영자는 비밀번호를 지정하지 않아 로그인할수 없도록 처리한다. @MYDB_query(" insert into general ( - user_id, password, connect, name, picture, nation, city, troop, makelimit, + no_member, connect, name, picture, nation, city, troop, makelimit, leader, power, intel, experience, dedication, gold, rice, crew, train, atmos, weap, book, level, turntime, killturn, lastconnect, userlevel ) values ( - 'viceadmin', 'a', '0', '부운영자', '$picture', '0', '3', '0', '0', + '2', '0', '부운영자', '$picture', '0', '3', '0', '0', '50', '50', '50', '0', '0', '10000', '10000', '0', '0', '0', '0', '0', '0', '$turntime', '80', '$lastconnect', '5' )", diff --git a/twe/join_token.php b/twe/join_token.php deleted file mode 100644 index b9a2923c..00000000 --- a/twe/join_token.php +++ /dev/null @@ -1,57 +0,0 @@ -