Hello ..
I saw that there are many interests about " Auto Equipment "
so idk maybe no one made it work with auto teleport at the same POS . but without any program
and some people made it work with scrolls .. but i thought about making it with auto teleport
i think maybe these help us ..
StoredProcedure [dbo].[_ModifyCharPos]
and i think this can help us at that Stored ProcedureCode:USE [SRO_VT_SHARD] GO /****** Object: StoredProcedure [dbo].[_ModifyCharPos] Script Date: 2/9/2014 5:47:15 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER OFF GO -- ¾È¹Ù²ãµµ µÇ°Ú´Ù by novice. ALTER PROCEDURE [dbo].[_ModifyCharPos] @name varchar(64), @region smallint, @x float, @y float, @z float, @WorldiD smallint AS -- not existing character declare @Charid int set @Charid = 0 select @Charid = charid from _char where charname16 = @name if (@@rowcount = 0 or @Charid is null or @Charid = 0) begin select -2 return end -- failed to rename update _Char set LatestRegion = @region, PosX = @x, PosY = @y, PosZ = @z, WorldID = @WorldiD where CharName16 = @name if (@@error <> 0 or @@rowcount = 0) begin select -4 return end select 1 return
and maybe that too _ResetCharPosCode:update _Char set LatestRegion = @region, PosX = @x, PosY = @y, PosZ = @z, WorldID = @WorldiD where CharName16 = @name if (@@error <> 0 or @@rowcount = 0) begin select -4 return end select 1 return
Code:USE [SRO_VT_SHARD] GO /****** Object: StoredProcedure [dbo].[_ResetCharPos] Script Date: 2/9/2014 6:06:09 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER procedure [dbo].[_ResetCharPos] as set xact_abort on begin transaction -- reset aux pos update _Char set TelRegion = 0, TelPosX = 0, TelPosY = 0, TelPosZ = 0, DiedRegion = 0, DiedPosX = 0, DiedPosY = 0, DiedPosZ = 0 -- initialize char pos declare @ReFTelID int declare @regionID int declare @PosX real declare @PosY real declare @PosZ real declare @CharID int declare @teliD int declare @CharName varchar (64) declare char_cursor cursor fast_forward for select CharID, AppointedTeleport, CharName16 from _Char with(nolock) open char_cursor fetch next from char_cursor into @CharID, @teliD, @CharName while (@@fetch_status = 0) begin if @teliD is not null and @teliD <> 0) begin set @regionID = 0 set @PosX = 0 set @PosY = 0 set @PosZ = 0 select @ReFTelID = ID from _RefObjCommon where ID = @teliD select @regionID = GenRegionID, @PosX = GenPos_X, @PosY = GenPos_Y, @PosZ = GenPos_Z from _RefTeleport where AssocRefObjID = @ReFTelID update _char set LatestRegion = @regionID, PosX = @PosX, PosY = @PosY, PosZ = @PosZ where CharID = @CharID exec _ADD_ITEM_EXTERN @CharName,'ITEM_MALL_REVERSE_RETURN_SCROLL',2,1 exec _ADD_ITEM_EXTERN @CharName,'ITEM_MALL_RESURRECTION_100P_SCROLL',1,1 end fetch next from char_cursor into @CharID, @teliD, @CharName end close char_cursor deallocate char_cursor commit transaction
By using this idea
EXEC dbo.xxx @Charid, @curRegionID, @curPOSY ..etc
but it maybe client side not gameserver
So .. Any ideas about that ? :?








