![]() |
|
|
#1 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
Is there any way to add some item to all players at ones? Not one by one.
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Apr 2005
Posts: 127
|
see chrono_darbuka sql sript in db_scripts
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
yes.... for example... look at the SQL scripts to convert C1 DB to C4... there are a script that create the Chrono Cithara.. Unitus etc... the script basicly create a temporary table and select the most level player of each account and insert items into warehouse.
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
Gents, I do not have that script. Could you please give me the link if possible.
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2006
Posts: 237
|
lol they came in the PP pack everyone who has the files has them
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
Newer used PP pack
![]() All links are died already. |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
maybe try in irc
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
Still can't get it. Need your help gents!
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
http://www.thugz-board.com/PP-IRC-C4Retail.7z
next time search in google T_T |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Apr 2006
Posts: 74
|
in PHP:
Code:
<?
$mssql_server = "127.0.0.1";
$mssql_user = "";
$mssql_pass = "";
$add_item_id = 3434; // item id
$add_item_count = 5; // item count
set_time_limit(0);
mssql_connect($mssql_server, $mssql_user, $mssql_pass);
mssql_select_db("lin2world");
$result = mssql_query("SELECT char_id FROM user_data WHERE char_id > 0");
$chars=array();
for($x=0; $chars[$x]=mssql_fetch_assoc($result); $x++);
unset($chars[count($chars)-1]);
for ($x=0; $x<count($chars); $x++)
{
$fields = "char_id, item_type, amount, enchant, eroded, bless, ident, wished, warehouse";
$values = $chars[$x][char_id].", ".$add_item_id.", ".$add_item_count.", 0, 0, 0, 0, 0, 0";
$result = mssql_query("INSERT INTO user_item($fields) VALUES($values)");
if (!$result)
echo "Item $add_item_id not added to ".$chars[$x][char_id]."\n";
}
?>
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
Thanks Gaikotsu! Will try it.
m4rk I can use search and of course I found it. The problem was I couldn't find the script for Chrono Darbuka inside the pack. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|