Register for your free account! | Forgot your password?

You last visited: Today at 00:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE - QUERY] - CLONE MOB DROPS

Discussion on [RELEASE - QUERY] - CLONE MOB DROPS within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
yoneh1's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 72
Received Thanks: 42
[RELEASE - QUERY] - CLONE MOB DROPS

Hey Guys,
Another quick query to get the drops from _RefDropItemAssign into your Mob of choice

USAGE:
exec _CloneMobDrops ID,NEWID

PHP Code:
USE [Y0GI]
GO
/****** Object:  StoredProcedure [dbo].[_CloneMobDrops]    Script Date: 6/17/2024 11:50:31 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE 
[dbo].[_CloneMobDrops]
    @
OldRefMonsterID INT,
    @
NewRefMonsterID INT
AS
BEGIN
    
-- Insert the cloned item drops
    INSERT INTO 
[dbo].[_RefMonster_AssignedItemDrop] (
        
RefMonsterID,
        
RefItemID,
        
DropGroupType,
        
OptLevel,
        
DropAmountMin,
        
DropAmountMax,
        
DropRatio,
        
RefMagicOptionID1,
        
CustomValue1,
        
RefMagicOptionID2,
        
CustomValue2,
        
RefMagicOptionID3,
        
CustomValue3,
        
RefMagicOptionID4,
        
CustomValue4,
        
RefMagicOptionID5,
        
CustomValue5,
        
RefMagicOptionID6,
        
CustomValue6,
        
RefMagicOptionID7,
        
CustomValue7,
        
RefMagicOptionID8,
        
CustomValue8,
        
RefMagicOptionID9,
        
CustomValue9,
        
RentCodeName
    
)
    
SELECT 
        
@NewRefMonsterID AS RefMonsterID,
        
RefItemID,
        
DropGroupType,
        
OptLevel,
        
DropAmountMin,
        
DropAmountMax,
        
DropRatio,
        
RefMagicOptionID1,
        
CustomValue1,
        
RefMagicOptionID2,
        
CustomValue2,
        
RefMagicOptionID3,
        
CustomValue3,
        
RefMagicOptionID4,
        
CustomValue4,
        
RefMagicOptionID5,
        
CustomValue5,
        
RefMagicOptionID6,
        
CustomValue6,
        
RefMagicOptionID7,
        
CustomValue7,
        
RefMagicOptionID8,
        
CustomValue8,
        
RefMagicOptionID9,
        
CustomValue9,
        
RentCodeName
    FROM 
        
[dbo].[_RefMonster_AssignedItemDrop]
    
WHERE 
        RefMonsterID 
= @OldRefMonsterID;
END 
If you find this usefull, Please hit Thanks!.
yoneh1 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[RELEASE - QUERY] Clone Mob and Item
06/18/2024 - SRO PServer Guides & Releases - 2 Replies
Hey Guys, I wanted to be able to clone mobs and items and keep the original stats so I can do my modifications 1 by 1. It takes the ID of the MOB or ITEM in RefObjCommon and clones it with new Link and ID in refobj Item/Char Usage Exec _CloneItem ID, NEWCODENAME128 exec _CloneMob ID,NEWCODENAME128
[Release][Query] Query _InvCOS Items WITH _Char Connection
12/29/2015 - SRO PServer Guides & Releases - 1 Replies
Ok, so i needed to write this query for a procedure im working on and not many people know how to connect the pet inventory table to the character table.... so this query will explain how its done... im not going to explain every single detail, like how there is no charcos when pet is despawned / dead... but yea you can probably figure that all out from this query... The code... USE SELECT pet_invo. ,pet_invo. PetSlot
[HOW TO] Mob proto.xml Mob Names - Mob Proto.txt Help me
03/25/2015 - Metin2 Private Server - 2 Replies
Hi Metin2 Dev Mob proto.xml How to Mob Names.txt - Mob Proto.txt Converts ? Help Me :( How Mob Names.txt - Mob Proto.txt ? help me :( <Mob vnum="34012" name="¾Æ±â ÆÒ´õ" locale_name="¾Æ±â ÆÒ´õ" type="1" rank="5" battle_type="0" level="1" size="0" gold_min="0" gold_max="0" exp="10" max_hp="120" regen_cycle="3" regen_percent="1" def="4" ai_flag="0" setRaceFlag="0" setImmuneFlag="43" st="0" dx="0" ht="0" iq="0" damage_min="0" damage_max="0" attack_speed="100" move_speed="100"...
Fast Query to Add Drops in Mob , Unique or what ever ^^
09/13/2012 - SRO PServer Guides & Releases - 1 Replies
To get mob ID use this Query Change MOB_RM_ROC With your Monster or Unique Code To get ITEM ID use this Query



All times are GMT +1. The time now is 00:25.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.