|
You last visited: Today at 13:45
Advertisement
Question about auto spawn?
Discussion on Question about auto spawn? within the Shaiya Private Server forum part of the Shaiya category.
06/05/2013, 08:38
|
#1
|
elite*gold: 0
Join Date: May 2013
Posts: 518
Received Thanks: 806
|
Question about auto spawn?
Does anyone know the stored procedure for instant level of spawning with a fresh new character to be set in auction house? if you can help me, i would be very grateful.
|
|
|
06/05/2013, 16:47
|
#2
|
elite*gold: 0
Join Date: Oct 2012
Posts: 145
Received Thanks: 203
|
If i understand what you mean is when you create a new character, you want it to be spawning in AH instead of map 1 (light/dark)
If not then i suggest you to re-write your text as your english is hard to read.
So if what you are asking is what i mean:
If you use the standard instant levelling script (made by castor), this procedure
Code:
USE [PS_GameData]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
ALTER Proc [dbo].[usp_Create_Char_R]
@serverID tinyint, @userID varchar(12), @userUID int, @charName varchar(50),
@slot Tinyint, @family Tinyint, @grow Tinyint,
@hair Tinyint, @face Tinyint, @size Tinyint, @job Tinyint, @sex Tinyint,
@level Smallint, @statpoint Smallint, @skillpoint Smallint,
@str Smallint, @dex Smallint, @rec Smallint, @int Smallint,
@luc Smallint, @wis Smallint, @HP Smallint, @MP Smallint, @SP Smallint,
@map Smallint, @dir Smallint, @exp Int, @money Int,
@posX Real, @posY Real, @posZ Real,
@Hg Smallint, @Vg Smallint, @Cg Tinyint, @Og Tinyint, @Ig Tinyint
AS
SET NOCOUNT ON
declare @result int
SET @charName = LTRIM(RTRIM(@charName))
SET @SkillPoint = 5
set @result = 0
if exists (select CharID from Chars where CharName=@charName and
(Del=0 or (Del=1 and Level>10 and DeleteDate>DATEADD(dd, -7, GETDATE()))))
begin
set @result = -2
end
else
begin
-- Changes starts Here
if exists (select level from PS_GameDefs.dbo.CharDefs where
grow=@grow and family=@family and job=@job)
begin
-- replace some received values with data read from our table
select @level=[level], @statPoint=[statPoint], @skillPoint=[skillPoint],
@str=[str], @dex=[dex], @rec=[rec], @int=[int], @luc=[luc], @wis=[wis],
@HP=[HP], @MP=[MP], @SP=[SP], @exp=[exp], @money=[money],
@map=[map], @dir=[dir], @posX=[posX], @posY=[posY], @posz=[posZ]
from PS_GameDefs.dbo.CharDefs
where grow=@grow and family=@family and job=@job
-- set mode to ultimate (valid for "immediate leveling" use only)
set @grow = 3
end
-- Changes Ends Here
begin transaction
-- create toon with updated information
insert into Chars(ServerID, UserID, UserUID, CharName, Slot, Family, Grow,
Hair, Face, [Size], Job, Sex, [Level], StatPoint, SkillPoint,
[Str], Dex, Rec, [Int], Luc, Wis, HP, MP, SP, Map, Dir, [Exp], [Money],
PosX, PosY, Posz, Hg, Vg, Cg, Og, Ig, RenameCnt, RemainTime)
values (
@serverID, @userID, @userUID, @charName, @slot, @family, @grow,
@hair, @face, @size, @job, @sex, @level, @statPoint, @skillPoint,
@str, @dex, @rec, @int, @luc, @wis, @HP, @MP, @SP, @map, @dir,
@exp, @money, @posX, @posY, @posz, @Hg, @Vg, @Cg, @Og, @Ig, 0, 0)
if (@@ERROR <> 0)
begin
rollback transaction
set @result = -1
end
else
begin
commit transaction
set @result = IDENT_CURRENT('Chars')
end
end
SET NOCOUNT OFF
read the map and position of the new created character in the table PS_GameDefs.dbo.CharDefs
Just edit it inside.
Set map to 42 and set the PosX, PosY, PosZ where you want them to spawn.
|
|
|
06/05/2013, 17:53
|
#3
|
elite*gold: 0
Join Date: May 2013
Posts: 518
Received Thanks: 806
|
#Request close, as it has been answered.
|
|
|
06/06/2013, 10:53
|
#4
|
Administrator
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,727
Received Thanks: 12,652
|
#closed
|
|
|
 |
Similar Threads
|
[Question] How to DISABLE mobs Spawn , without uniques spawn , etc ?
09/12/2016 - SRO Private Server - 6 Replies
i am making a PVP server , i want to make start level 110 and cap level 130
so the other areas are not important , and also they could take RAM , CPU and it may cause some LAGGGGGS !
so can you tell me any ideas how to disable it ? Thanks
|
NPC spawn + auto remove funktion
03/01/2012 - Metin2 Private Server - 1 Replies
Hallo!
Meine Frage:
Hab ein Monster der nach dem tot einen NPC spawnt, dieser NPC portet auf eine MAP, nun bleibt der NPC aber auf dem Mapstandort von vorhin stehn!
Dieser NPC soll nach einer gewissen Zeit (2-5min je nachdem) automatisch verschwinden...
Wenn das Monster dann wieder spawnt wird er dann ja eh nach dessen Tod wieder spawnen und dann geht das spiel von vorne los.
|
[Request]Auto-Spawn CSREMU
03/20/2010 - SRO Private Server - 4 Replies
anyone can give me the code or file on auto spam in csremu ??? thx in advance ...
|
auto spawn,mobs attack
05/28/2008 - Silkroad Online - 2 Replies
Hello,
I have a problem which i am sure many people have, that problem is the monsters. they will not auto spawn or hit back, is this a problem that can be fixed? If so please tell me how.
Cheers.
|
Auto spawn(sorry if in wrong part of forum)
04/24/2008 - Silkroad Online - 2 Replies
I have made my own private server and all i need to do now is get auto spawning to work and get the monsters to fight back. If anyone has had this problem and knows how to fix it please tell me how.
|
All times are GMT +1. The time now is 13:47.
|
|