Jump to content

Recommended Posts

Posted

Kalispera paideia,Kala Xristougenna k kales giortes

To share p kanw tha voithisei kuriws newbies kai exei ws periexomeno SQL scripts p mporoume na treksoume sto navicat.

Katarxas xreiazomaste Navicat Full edition k oxi Lite.

Oti script dwsw parakatw trexete me ton ekshs tropo Navicat->Localohost(To connection mas tespa)->(Tin database tou server)->Queries kanoume klick ekei p grafei New Query.

 

Scripts Σχετικα Με Items

 

Delete Item apo Invetory:

DELETE FROM `items` WHERE (`object_id`='TO ID TOU CHAR' AND `item_id`='TO ID TOU ITEM' )

 

Update timhs se buylist eykola k grhgora:[/color]

UPDATE `custom_merchant_buylists` SET `price`='Poso se Adena' WHERE (`shop_id`='To id tou shop') AND (`item_id`='To id apo to item')  

-------------------------------------------------------------------------------------------

 

Γενικά Script για την Database

 

Database Clean Up.Credits to:xMayloxOriginal Post:

-- more than ... days
SET @dt = 60;

DELETE FROM accounts WHERE DATEDIFF( CURRENT_DATE( ) , FROM_UNIXTIME( `lastactive` /1000 ) ) > @dt;

DELETE FROM accounts WHERE login NOT IN (SELECT account_name FROM characters);
DELETE FROM account_data WHERE account_name NOT IN (SELECT login FROM accounts);
DELETE FROM characters WHERE account_name NOT IN (SELECT login FROM accounts);
DELETE FROM character_friends WHERE char_id NOT IN (SELECT obj_Id FROM characters);
DELETE FROM character_hennas WHERE char_obj_id NOT IN (SELECT obj_Id FROM characters);
DELETE FROM character_macroses WHERE char_obj_id NOT IN (SELECT obj_Id FROM characters);
DELETE FROM character_quests WHERE char_id NOT IN (SELECT obj_Id FROM characters);
DELETE FROM character_recipebook WHERE char_id NOT IN (SELECT obj_Id FROM characters);
DELETE FROM character_shortcuts WHERE char_obj_id NOT IN (SELECT obj_Id FROM characters);
DELETE FROM character_skills WHERE char_obj_id NOT IN (SELECT obj_Id FROM characters);
DELETE FROM character_skills_save WHERE char_obj_id NOT IN (SELECT obj_Id FROM characters);
DELETE FROM clan_data WHERE leader_id NOT IN (SELECT obj_Id FROM characters);
DELETE FROM clan_privs WHERE clan_id NOT IN (SELECT clan_id FROM clan_data);
DELETE FROM clan_skills WHERE clan_id NOT IN (SELECT clan_id FROM clan_data);
DELETE FROM pets WHERE item_obj_id NOT IN (SELECT object_id FROM items WHERE owner_id IN (SELECT obj_Id FROM characters));
DELETE FROM items WHERE owner_id NOT IN (SELECT obj_Id FROM characters) AND owner_id NOT IN (SELECT clan_id FROM clan_data);
DELETE FROM seven_signs WHERE char_obj_id NOT IN (SELECT obj_Id FROM characters);
DELETE FROM augmentations WHERE item_id NOT IN (SELECT item_id FROM items);
UPDATE characters SET clanid=0,title="",clan_privs=0 where clanid NOT IN (SELECT clan_id FROM clan_data);
UPDATE clanhall SET ownerID=0,paidUntil=0 where ownerID NOT IN (SELECT clan_id FROM clan_data);

 

Auto-Restart Script:

INSERT INTO global_tasks(task,type,last_activation,param1,param2,param3) VALUES 
('restart', 'TYPE_GLOBAL_TASK', '2147483647', '1', EDW VAZOUME THN SIGKEKRIMENH WRA P THELOUME NA KANEI RR O SERVER MORFHS(HH:MM:SS', 'EDW PRIN APO POSA SECOND NA IDOPOIEI TOUS PEXTES');

 

 

Custom Character Spawn(nomizw oti einai katanohto):

-- custom spawn location for new characters (just change the 0 with your own cord locations)

SET @x = 0;
SET @y = 0;
SET @z = 0;

UPDATE char_templates SET x = @x, y = @y, z = @z;

 

 

Drop Chance(Nomizw pws einai katanohto):

-- Items Drop Chance will be x1
-- If you like to change it just change the "1"

SET @drop = 1;

UPDATE `droplist` SET `chance` = `chance` * @drop;

 

 

Posted

file wraia douleia ama ebazes kai merikes eikones 8a htane pio wraio..

ti eikones na evaza????tespa...eksigise m ti eikones na valw k tha to kanw//

 

P.S You are welcome guyz!

  • 4 weeks later...
Posted

DELETE FROM `items` WHERE (`object_id`='TO ID TOU CHAR' AND `item_id`='TO ID TOU ITEM' )

Den doulebei ayto file :/

 

DELETE FROM `items` WHERE (`object_id`='TO ID TOU CHAR' AND `item_id`='TO ID TOU ITEM' );

 

prospathise auto

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...