[Release] Model Switcher

06/06/2015 14:46 Eslam Galull#1
my Crapyy Code was working on Galullians & yea it will work with you to



- AddLogItem

Code:
  if (@ItemRefID = 43054)
  BEGIN
  EXEC SRO_VT_SHARDLOG.dbo._NOVA_SWITCHER  @CharID
  END
- Query

Code:
USE [SRO_VT_SHARDLOG]
GO

/****** Object:  StoredProcedure [dbo].[_NOVA_SWITCHER]    Script Date: 6/6/2015 2:42:04 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

/****** Object:  StoredProcedure [dbo].[_NOVA_SWITCHER]    Script Date: 6/6/2015 8:10:36 AM ******/

CREATE PROCEDURE [dbo].[_NOVA_SWITCHER] 
-- ============================================= 
/*
Eslam Galull
*/
-- ============================================= 
  @CharID INT 


AS 
BEGIN 
--//---------------------------------------------------------------   
    

	DECLARE @INVSIZE TINYINT,
				@Top1Wep int,
				@OldItm int 
	
		Set @InvSize = (select InventorySize from sro_vt_shard.._char where charid = @charid)
		set @Top1Wep = (select top 1 inv.itemid from sro_vt_shard.._inventory inv inner join sro_vt_shard.._items itm on inv.itemid = itm.id64
			where itm.refitemid in (select ItemID from _ModelSwitcher) and itm.serial64 > 0 and inv.itemid <> 0 and inv.slot between 13 and @InvSize and inv.charid = @charid )
		Set @OldItm = (select top 1 refitemid from sro_vt_shard.._items where id64 <> 0 and id64 = @Top1Wep and serial64 > 0)
	if @Top1Wep > 0
	Begin
		Declare @NewItm int = case
			When @olditm in (select ItemID from _ModelSwitcher)
				then (select top 1 Newitemid from _ModelSwitcher where ItemID = @olditm )
		 end /* will destroy any item that he tries to switch if he dont have required items */
		update sro_vt_shard.._items set RefItemID = @NewItm   where RefItemID = @OldItm and ID64 = @Top1Wep and Serial64 > 0
	End

	END


GO

- table ( so here u should put the olditem id .. and the new one id ) thats all

like that
[Only registered and activated users can see links. Click Here To Register...]


Code:
USE [SRO_VT_SHARDLOG]
GO

/****** Object:  Table [dbo].[_ModelSwitcher]    Script Date: 6/6/2015 2:43:23 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[_ModelSwitcher](
	[ItemID] [int] NOT NULL,
	[ItemCode] [varchar](max) NOT NULL,
	[NewitemID] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO
06/06/2015 14:49 Hamza FiGo#2
Thanks alot soul.
06/06/2015 16:55 imTormentor#3
keep up
06/12/2015 13:40 salah15#4
is this a message system ? @its.soul
06/12/2015 15:14 Eslam Galull#5
No Dude its a

Quote:
[Release] Model Switcher
06/13/2015 14:26 Syloxx#6
its a upgrade system and not a model switcher

model switcher works like this:
-you are able to switch a Item (Glavie in this case) in different degrees not only "upgrade" to a static item.
-there should be 1 Scroll for every degree only (Model Switcher D1, Model Switcher D2 etc) NOT (Model Switcher D1 (Glavie), Model Switcher D1 (Bow) etc)

this isnt possible with your system and btw a better version of this upgrade system is already released by me :)

[Only registered and activated users can see links. Click Here To Register...]
06/13/2015 14:42 Eslam Galull#7
Quote:
Originally Posted by Syloxx View Post
its a upgrade system and not a model switcher

model switcher works like this:
-you are able to switch a Item (Glavie in this case) in different degrees not only "upgrade" to a static item.
-there should be 1 Scroll for every degree only (Model Switcher D1, Model Switcher D2 etc) NOT (Model Switcher D1 (Glavie), Model Switcher D1 (Bow) etc)

this isnt possible with your system and btw a better version of this upgrade system is already released by me :)

[Only registered and activated users can see links. Click Here To Register...]

1. it doesn't matter the owner will just put the new model ID in table !
2. it already a 1 Scroll
Quote:
if (@ItemRefID = 43054)
BEGIN
EXEC SRO_VT_SHARDLOG.dbo._NOVA_SWITCHER @CharID
END
at the end the query nt the perfect nd i told ppl that in the main thread ..
Quote:
my Crapyy Code was working on Galullians & yea it will work with you to

so if you wanna help ( not just flame ) share your perfect one !
06/13/2015 15:02 Syloxx#8
Quote:
Originally Posted by its.soul View Post
so if you wanna help ( not just flame ) share your perfect one !
thats what i just did in the post approve? :)
06/13/2015 15:16 Eslam Galull#9
after the skype conference .. :D

yea you are right its a shit :D
06/14/2015 04:16 kareemzone#10
good job
06/20/2015 01:01 ​Exo#11
I guess I released this thing some months ago, it's an actual Model Switch. Pretty faster as well.
08/25/2015 01:51 spinal2#12
That Release Change Item IMG to news one only or Change all item status ?
08/26/2015 19:51 **Lost_Hunter**#13
i think this already released
09/01/2015 18:17 Mody13337#14
Good job
09/27/2015 20:44 spinal2#15
Base in @ItsSoul Release . iam Start Work in a Model Swith Same Elamidas Itens .
So, Well actualy Iam Study Elamidas Engine and see alots Things Goods ..

Well See me Work based in @itsSoul Release and Elamidas ENGINE .

Model Swith