[SQL] For delete Mobs

Results 1 to 9 of 9
  1. #1
    Valued Member magamio is offline
    MemberRank
    May 2009 Join Date
    UALocation
    138Posts

    thumbs up [SQL] For delete Mobs

    Me not programmer and not nice speak English but here my Script for delete Mob-Tactics From Tab_RefTactics.
    Why need that?
    This script need for server's that open oldschool(only China) game and have not more RAM
    You need change name's of your DB and find line _RefRegion.ContinentName like 'JUPITER'
    JUPITER - it's select all Region where name is 'JUPITER'
    JUPITER - Jupiter
    SD - DESERT OF ALEX
    DELTA - Alexandria
    Eu - Constantinople
    Ca - Central Asia (Samarkand)
    Pharaoh - HOLY TEMPLE
    KingsValley - ALEX DOWN
    TEMPLE - JOB CAVE ALEXANDRIA
    PHP Code:


    USE [SRO_VT_SHARD]
    GO
    IF  EXISTS (SELECT FROM sys.objects WHERE object_id OBJECT_ID(N'[dbo].[Region]') AND type in (N'U'))
    DROP TABLE [dbo].[Region]
    GO
    USE [SRO_VT_SHARD]
    GO
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE 
    [dbo].[Region](
        [
    ID] [nchar](10NULL
    ON [PRIMARY]

    GO
    INSERT INTO Region 
    (ID)
    select 
    _RefRegion
    .wRegionID
    from 
    _RefRegion 
    where 
    /* Set JUPITER name here like 'JUPITER'*/
    _RefRegion.ContinentName like 'JUPITER'
    GO
    delete FROM Tab_RefNest 
    WHERE EXISTS 
    (SELECT ID FROM Region WHERE ID nRegionDBID)
    USE [
    SRO_VT_SHARD]
    GO
    IF  EXISTS (SELECT FROM sys.objects WHERE object_id OBJECT_ID(N'[dbo].[Region]') AND type in (N'U'))
    DROP TABLE [dbo].[Region]
    GO 
    Last edited by magamio; 24-10-12 at 12:54 PM.


  2. #2
    Member 3oOomar is offline
    MemberRank
    Sep 2012 Join Date
    EgyptLocation
    96Posts

    Re: [Release][SQL] For delete Mobs

    thank's

  3. #3
    Member evilheart is offline
    MemberRank
    Sep 2012 Join Date
    73Posts

    Re: [Release][SQL] For delete Mobs

    thanks

  4. #4
    Member evilheart is offline
    MemberRank
    Sep 2012 Join Date
    73Posts

    Re: [Release][SQL] For delete Mobs

    bro i have problem .. My Alex South / Norht NPC Gone

  5. #5
    Account Upgraded | Title Enabled! LeMbo is offline
    MemberRank
    Sep 2012 Join Date
    241Posts

    Re: [SQL] For delete Mobs

    #Report This Query Remove NPC too !!

  6. #6
    Account Upgraded | Title Enabled! Unrealx420 is offline
    MemberRank
    Jun 2008 Join Date
    HellLocation
    217Posts

    Re: [SQL] For delete Mobs

    Yeah this is why you shouldn't trust random queries made by a random noob.

  7. #7
    Valued Member magamio is offline
    MemberRank
    May 2009 Join Date
    UALocation
    138Posts

    Re: [SQL] For delete Mobs

    bro i have problem .. My Alex South / Norht NPC Gone
    If you can open eyes, can see that in my post
    This script need for server's that open oldschool(only China) game and have not more RAM

  8. #8
    Extacy plýs !!! Eroticus is offline
    MemberRank
    Nov 2007 Join Date
    Israel <3Location
    500Posts

    Re: [SQL] For delete Mobs

    I Want to use ur thing but can u help me to cancel deletion of "TEMPLE - JOB CAVE ALEXANDRIA"

    Thank you.

  9. #9
    Novice moseba123 is offline
    MemberRank
    Dec 2013 Join Date
    Salvador, BraziLocation
    4Posts

    Re: [SQL] For delete Mobs

    i need one for delet Event Mob have or other metedo : plis thx



Advertisement