Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 15:37

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

Advertisement



[Release] Weapon switcher proc (Improved Version)

Discussion on [Release] Weapon switcher proc (Improved Version) within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1

 
senua's Avatar
 
elite*gold: 36
Join Date: Aug 2017
Posts: 142
Received Thanks: 61
[Release] Weapon switcher proc (Improved Version)

Hello epvp community,

Code:
USE SRO_VT_LOG
GO
CREATE PROCEDURE Switcher_WE_Type_13
@CharID INT
AS
BEGIN TRY
	BEGIN TRANSACTION UPDATE_PROCESS_FOR_TYPE_13

		DECLARE @OldItemCodeName VARCHAR(129)=
		(SELECT ROC.CodeName128 FROM SRO_VT_SHARD.._Inventory AS INV
		INNER JOIN SRO_VT_SHARD.._Items AS I ON I.ID64=INV.ItemID AND INV.Slot=6 AND INV.ItemID<>0 AND INV.CharID=@CharID
		INNER JOIN SRO_VT_SHARD.._RefObjCommon AS ROC ON I.RefItemID=ROC.ID AND ROC.TypeID1=3 AND ROC.TypeID2=1 AND ROC.TypeID3=6)

		DECLARE @ItemTypeNormal VARCHAR(5)=(SELECT RIGHT(@OldItemCodeName,5))
		DECLARE @ItemTypeSox VARCHAR(10)=(SELECT RIGHT(@OldItemCodeName,10))

		IF( @ItemTypeNormal IN ('_10_A','_10_B','_10_C') OR @ItemTypeSox IN ('_10_A_RARE','_10_B_RARE','_10_C_RARE'))
		BEGIN
		
			DECLARE @NewItemID INT=
			(SELECT ID FROM SRO_VT_SHARD.._RefObjCommon WITH (NOLOCK) WHERE CodeName128=@OldItemCodeName+'_TYPE_13')

			IF ((@NewItemID IS NOT NULL) AND (@NewItemID<>0))
			BEGIN
				UPDATE I SET I.RefItemID=@NewItemID
				FROM SRO_VT_SHARD.._Inventory AS INV
				INNER JOIN SRO_VT_SHARD.._Items AS I ON I.ID64=INV.ItemID AND INV.Slot=6 AND INV.ItemID<>0 AND INV.CharID=@CharID
			END
		END

	COMMIT TRANSACTION UPDATE_PROCESS_FOR_TYPE_13
END TRY
BEGIN CATCH
	ROLLBACK TRANSACTION UPDATE_PROCESS_FOR_TYPE_13
	PRINT 'Error has been occured while updating process for TYPE_13'
END CATCH
Question; How can i use this code?

senua is offline  
Thanks
1 User
Old 12/04/2018, 23:36   #2
 
elite*gold: 0
Join Date: Oct 2018
Posts: 27
Received Thanks: 2
how do you use this ?
TopDowg is offline  
Old 12/05/2018, 00:46   #3

 
senua's Avatar
 
elite*gold: 36
Join Date: Aug 2017
Posts: 142
Received Thanks: 61
Quote:
Originally Posted by TopDowg View Post
how do you use this ?
1. Copy your item and put at the end of codename _TYPE_13.
2. Exec query
3. Set your _AddLogItem proc to be exec to new proc when your switcher scroll has been used.
senua is offline  
Reply


Similar Threads Similar Threads
Weapon bug, wearing right/left weapon see only 1 weapon equip
10/27/2013 - CO2 Private Server - 2 Replies
Weapon bug, wearing right/left weapon , you will only see 1 weapon equip if you view or look at the other players. But if you look at your own character you will see your two weapons equipt, but others see it as one. sorry for the bad english problem solve wrong packet in observeequipment
Weapon Proc
12/08/2007 - WoW Exploits, Hacks, Tools & Macros - 11 Replies
Ok heres how to do it. Use chance on hit procced weapons Add 2 weapons ... get them to proc.. Take them off. Add 2 more get them to proc Take them off Repeat about 4 times
[Request] Proc Lifeleech>TF
10/24/2006 - World of Warcraft - 2 Replies
ich wollt nur mal fragen ob es moeglich ist irgendwie den lifeleech proc (oder perdi blade proc) in den thunderfury proc umzuwandeln. hab mich selber auch ma umgeschaut aber kann irgendwie nix fniden womit ich was anfangen kann
Darkmoon Card: Blue Dragon... proc bug
04/16/2006 - WoW Exploits, Hacks, Tools & Macros - 2 Replies
I was crafting some bandages while having my Darkmoon Card: Blue Dragon (http://thottbot.com/?i=40830) equiped, and I saw it proc. This is just an idea and you run with it and take it wereever you want.
Problem mit Improved Version von Weapon Swap
04/15/2006 - World of Warcraft - 2 Replies
hi hoi, erstmal großes lob an die com. und den betreiber ihr leistet klasse arbeit, jeden tag habe ich viel spass beim stöbern in diesem forum^^ (macht das den thread nun interessanter^^?) nun hab ich folgendes Problem mit einer veränderten version des weapon swaps macros: /script CastSpellByName("Meucheln(Rang 6)");



All times are GMT +1. The time now is 15:40.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.