Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 4Story
You last visited: Today at 22:49

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

Advertisement



Save pet

Discussion on Save pet within the 4Story forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2012
Posts: 18
Received Thanks: 17
Save pet

Hello, i am skold Co-foundeur and Dev 4story-RA

I have debug Tsavepet :

ALTER PROCEDURE [dbo].[TSavePet]
@dwCharID INT,

@wpetID SMALLINT,
@szName VARCHAR(50),
@timeUse SMALLDATETIME
AS

DECLARE @dwUserID INT

select @dwUserId = dwUserID from tchartable where dwCharID = @dwCharID


BEGIN TRAN TSavePet

IF not EXISTS(SELECT @dwUserID FROM TpetTABLE WHERE dwuserID = @dwuserID AND wpetID = @wpetID)
begin
INSERT INTO TpetTABLE(dwuserID, wpetID, szName, timeuse)
VALUES(@dwuserID, @wpetID, @szName, @timeUse)
END
ELSE
IF EXISTS(SELECT @dwUserID FROM TpetTABLE WHERE dwuserID = @dwuserID AND wpetID = 3)
BEGIN
UPDATE TpetTABLE SET
szName = @szName, timeuse = @timeUse
WHERE dwuserID = @dwuserID AND wpetID = @wpetID
END

COMMIT TRAN TSavePet

And if you i have this to create a mount at the creation of character but the name of pet change at every creation of character to the acount :

DECLARE @szMountName VARCHAR(50)
SET @szMountName = 'Amis de ' + @szNAME
SET @szMountName = REPLACE(@szMountName, 's''s', 's''')

IF not EXISTS(SELECT @dwUserID FROM TpetTABLE WHERE dwuserID = @dwuserID AND wpetID = 3)
begin
INSERT INTO TpetTABLE(dwuserID, wpetID, szName, timeuse)
VALUES(@dwuserID, 3, @szName, 0)
END
ELSE
IF EXISTS(SELECT @dwUserID FROM TpetTABLE WHERE dwuserID = @dwuserID AND wpetID = 3)
BEGIN
UPDATE TpetTABLE
SET szName = @szName, timeuse = 0
WHERE dwuserID = @dwuserID AND wpetID = 3
END


Good bye ;-)
Sniteur51 is offline  
Thanks
6 Users
Old 05/29/2013, 19:33   #2
 
elite*gold: 0
Join Date: Aug 2011
Posts: 55
Received Thanks: 20
Good Job !
sniteur is offline  
Old 05/29/2013, 19:37   #3
 
elite*gold: 0
Join Date: May 2013
Posts: 35
Received Thanks: 12
GOOD still good and the RA team always there to help you I love you and move you make for elitepvpers
BESTAMO is offline  
Thanks
2 Users
Old 05/29/2013, 19:45   #4
 
elite*gold: 0
Join Date: Nov 2011
Posts: 391
Received Thanks: 471
Wink

Quote:
Originally Posted by Sniteur51 View Post
Hello, i am skold Co-foundeur and Dev 4story-RA

I have debug Tsavepet :

ALTER PROCEDURE [dbo].[TSavePet]
@dwCharID INT,

@wpetID SMALLINT,
@szName VARCHAR(50),
@timeUse SMALLDATETIME
AS

DECLARE @dwUserID INT

select @dwUserId = dwUserID from tchartable where dwCharID = @dwCharID


BEGIN TRAN TSavePet

IF not EXISTS(SELECT @dwUserID FROM TpetTABLE WHERE dwuserID = @dwuserID AND wpetID = @wpetID)
begin
INSERT INTO TpetTABLE(dwuserID, wpetID, szName, timeuse)
VALUES(@dwuserID, @wpetID, @szName, @timeUse)
END
ELSE
IF EXISTS(SELECT @dwUserID FROM TpetTABLE WHERE dwuserID = @dwuserID AND wpetID = 3)
BEGIN
UPDATE TpetTABLE SET
szName = @szName, timeuse = @timeUse
WHERE dwuserID = @dwuserID AND wpetID = @wpetID
END

COMMIT TRAN TSavePet

And if you i have this to create a mount at the creation of character but the name of pet change at every creation of character to the acount :

DECLARE @szMountName VARCHAR(50)
SET @szMountName = 'Amis de ' + @szNAME
SET @szMountName = REPLACE(@szMountName, 's''s', 's''')

IF not EXISTS(SELECT @dwUserID FROM TpetTABLE WHERE dwuserID = @dwuserID AND wpetID = 3)
begin
INSERT INTO TpetTABLE(dwuserID, wpetID, szName, timeuse)
VALUES(@dwuserID, 3, @szName, 0)
END
ELSE
IF EXISTS(SELECT @dwUserID FROM TpetTABLE WHERE dwuserID = @dwuserID AND wpetID = 3)
BEGIN
UPDATE TpetTABLE
SET szName = @szName, timeuse = 0
WHERE dwuserID = @dwuserID AND wpetID = 3
END


Good bye ;-)

GOOD very good DEV
EliteTuerie is offline  
Thanks
3 Users
Old 05/29/2013, 19:51   #5
 
elite*gold: 0
Join Date: Sep 2009
Posts: 87
Received Thanks: 22
Good job Skold!
spartan26 is offline  
Thanks
1 User
Old 05/29/2013, 19:51   #6
 
elite*gold: 0
Join Date: Oct 2010
Posts: 546
Received Thanks: 152
Hum it's a basic founction
julianjl is offline  
Old 05/29/2013, 20:03   #7
 
elite*gold: 0
Join Date: Aug 2009
Posts: 75
Received Thanks: 69
Stop ! it's copyright of julianjl !!!!! hahahahahahahaha
caneca59 is offline  
Thanks
3 Users
Old 05/29/2013, 20:05   #8
 
elite*gold: 0
Join Date: Mar 2012
Posts: 18
Received Thanks: 17
yes but i will do not give a hard function where i pass much time. This function is basic but she is pratice. And my i sharing my works do you can say it so much???

So if somebody have a question constructive...
Sniteur51 is offline  
Thanks
2 Users
Old 05/29/2013, 20:19   #9
 
elite*gold: 0
Join Date: Nov 2011
Posts: 391
Received Thanks: 471
Quote:
Originally Posted by julianjl View Post
Hum it's a basic founction
You act like you know the function and all but you is not you even make a "simple function" as you said so in your team full unskill and has no staff
EliteTuerie is offline  
Thanks
1 User
Old 05/29/2013, 20:36   #10
 
elite*gold: 0
Join Date: Apr 2013
Posts: 317
Received Thanks: 223
You just buyed the files You dont fixxed it by yourself.
Konst™ is offline  
Old 05/29/2013, 20:46   #11
 
elite*gold: 0
Join Date: Nov 2011
Posts: 391
Received Thanks: 471
Wink

Quote:
Originally Posted by Konst™ View Post
You just buyed the files You dont fixxed it by yourself.
Julianj we did not buy to them 3 months ago for 15 euros thus not we fixed ourselves we have a big team all the same not for julianj certain with a team without skill...

we have set ourselves the same and you would not buy if you are in the capcitée to fix it ...

If you are a fan of server julianj go there but do not tell anything in this thread thank you...
EliteTuerie is offline  
Thanks
2 Users
Old 05/29/2013, 20:50   #12
 
elite*gold: 0
Join Date: Mar 2012
Posts: 18
Received Thanks: 17
heu... i come to debug last night for the second time... The first time I have him even to pass has julianjl

i can to explain you why i don't use tsavepet to create a mount when in TcreateChar. but it's right that i would can use tsavpet if i had make a ligne front of exec TsavePet but when i maked this i dont think at this at this moment.

sorry you have reason i so stupid to create function...
Sniteur51 is offline  
Thanks
3 Users
Old 05/29/2013, 22:17   #13
 
elite*gold: 0
Join Date: Mar 2011
Posts: 306
Received Thanks: 156
Quote:
Originally Posted by Konst™ View Post
You just buyed the files You dont fixxed it by yourself.
*** bless julian, he sucessfuly bought a thing.

Comes saying that is a hacker and could do blah blah, just keep your dev-job julian. And stop trying to get copyright of things you even know how they work.
jibi1996 is offline  
Thanks
1 User
Old 05/30/2013, 23:03   #14
 
elite*gold: 0
Join Date: Oct 2010
Posts: 546
Received Thanks: 152
No lol 4STORYRA is the biggest noob !
julianjl is offline  
Reply


Similar Threads Similar Threads
PS3 Save Resign/Save Mod
04/06/2013 - Consoles - 2 Replies
Alright guys, So I have gotten the PS3 Game Genie. It's working pretty great! This is my little way of giving back to the Elite Pvpers Community for all the help over the years I've been here. (As XxFearReaperXx of the EO/CO Sections) Please Follow All Steps! Step 1: Check Game Genie Game List 3D Dot Game Heroes (BLUS30490) 50 Cent: Blood On The Sand (BLUS30256)
[Trusted|Billig|Save] KillService By .Replay' & PerfectTyga [100%Save]
03/26/2013 - WarRock Trading - 13 Replies
Hallo Epvp PerfectTyga & Ich biete euch einen Killservice an. http://s7.directupload.net/images/130308/hb4lolcm .jpg Ablauf : Wir Stellen uns mit einem "NoSpawnWait-Hack" afk & ihr killt uns, dies rate ich euch mit einem Auto (Humwee) zu tuhen , denn pro kill bekommt ihr 7 Punkte statt den gewohnten 5 Punkten pro Kill :) Ablauf² : Ihr gebt uns ID+PW , und wir machen euch die kills :)



All times are GMT +2. The time now is 22:50.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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