|
You last visited: Today at 01:10
Advertisement
[SQL] Model Switch Procedure
Discussion on [SQL] Model Switch Procedure within the SRO PServer Guides & Releases forum part of the SRO Private Server category.
03/20/2015, 13:36
|
#1
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
|
[SQL] Model Switch Procedure
How to make the models?
Create a 1:1 copy of the item, change the bsr path at the itemdata_*.txt
I wasn't going to release anything for a while since I am hella busy these days with some real life issues but, some guys wanted this and I saw that other shared stuff and the ideas people have in mind are absolutely giving no sense, I will share this. Whoever wants to use it, go ahead.
Just wanted to let all he goddamn nubs know that the stupid OldID - NewID in the way everyone is doing it, IS A COMPLETE FAIL.
PHP Code:
DECLARE @DEGREE VARCHAR(2) = '10' //ModelType
SELECT MS1.RefItemID FROM exBotConfigs.._AvailableModelSwitchs MS JOIN Fayox_Shard.._Items IT ON MS.RefItemID = IT.RefItemID JOIN exBotConfigs.._AvailableModelSwitchs MS1 ON CASE WHEN (PATINDEX('%SKIN%',MS.CodeName128))= 0 //Normal Item Detected THEN (MS.CodeName128 + '_SKIN_'+@DEGREE) ELSE (LEFT(MS.CodeName128,(PATINDEX('%SKIN%',MS.CodeName128)+ 4)) + @DEGREE) //Previously Switched END = MS1.CodeName128 WHERE ID64 = 221347
The tab looks like that
RefItemID | CodeName128 |
---|
1 | ITEM_CODE |
-Models must be in this form [NORMALCODE_SKIN_DEGREE]
Now turn this to an update statement and enjoy.
A peek from the table
The whole idea was first made by Elamidas, thanks guys!
Credits: da indian hoe
|
|
|
03/20/2015, 13:58
|
#2
|
elite*gold: 0
Join Date: Oct 2014
Posts: 204
Received Thanks: 404
|
oOoH,i think your procedure better than this.(you made my day -_-)
just a kid trying to act like pro -_-
|
|
|
03/20/2015, 13:59
|
#3
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
|
Quote:
Originally Posted by Storxy_
oOoH,i think your procedure better than this.(you made my day -_-)
|
Actually this is mine, not his!
|
|
|
03/20/2015, 14:01
|
#4
|
elite*gold: 0
Join Date: Oct 2014
Posts: 204
Received Thanks: 404
|
Quote:
Originally Posted by Exo
Actually this is mine, not his!
|
iknow that well, its a joke
|
|
|
03/20/2015, 14:12
|
#5
|
elite*gold: 0
Join Date: Aug 2013
Posts: 82
Received Thanks: 34
|
Quote:
Originally Posted by Aeron*
@STORXY_ PLEASE LEARN
|
why do you ask stroxy to learn ? and you did it the same way he did it with alot of *****.
you made the same , Old>new -_-
|
|
|
03/20/2015, 14:16
|
#6
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
|
Quote:
Originally Posted by _Miss_AngeL_
why do you ask stroxy to learn ? and you did it the same way he did it with alot of *****.
you made the same , Old>new -_-
|
The whole thing can't be done with out updating the RefID of course but, the way you built that table and that procedure is not the best way, the table is huge, the same procedure won't work when switching between models since you defined the id with the Item and not the model. Unlike mine, it will work with both normal/model items. Also your theory won't work in case you want to add more models, you will have to redesign the table and add another column and the new model ids again.
|
|
|
03/20/2015, 14:16
|
#7
|
elite*gold: 0
Join Date: Oct 2014
Posts: 204
Received Thanks: 404
|
Quote:
Originally Posted by _Miss_AngeL_
why do you ask stroxy to learn ? and you did it the same way he did it with alot of *****.
you made the same , Old>new -_-
|
trying to escape from his **** procedure
he removed the reply.
|
|
|
03/20/2015, 14:18
|
#8
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
|
@MissAngel, either you be more mature and discuss the whole thing in a proper way or you just ignore this thread and stop starting endless fights that won't get we anywhere.
|
|
|
03/20/2015, 14:23
|
#9
|
elite*gold: 0
Join Date: Apr 2014
Posts: 80
Received Thanks: 13
|
storxy and exo tried to help the community so aeron what have you done? just giving some bullshits
|
|
|
03/20/2015, 14:45
|
#10
|
elite*gold: 0
Join Date: Jul 2008
Posts: 67
Received Thanks: 13
|
Good job man keep that **** up
|
|
|
03/20/2015, 20:13
|
#11
|
elite*gold: 0
Join Date: Aug 2013
Posts: 82
Received Thanks: 34
|
Quote:
Originally Posted by Royalblade*
bahahahahhaahah this sucks so hard, words cannot describe.
Code:
UPDATE IT
SET RefItemID = R1.ID
FROM SRO_VT_SHARD.dbo._Items IT
JOIN SRO_VT_ROYAL.dbo._MultiModelPossibleItems R
ON IT.RefItemID = R.ID
JOIN SRO_VT_ROYAL.dbo._MultiModelPossibleItems R1
ON CASE
WHEN (PATINDEX('%LOOK%',R.Codename128)) = 0
THEN (R.Codename128 + '_LOOK' + @NewDegree)
ELSE (LEFT(R.Codename128,(PATINDEX('%_LOOK%',R.Codename128)-1)) + '_LOOK' + @NewDegree)
END = R1.Codename128
WHERE ID64 = @ItemID
That's how I'm doing it. Codename based since its included in the index, thus it'll be in RAM anyways. Which makes it more than fast enough.
|
huh ? can you explain how those codes looked like the same of yours ?
actually you who coopied them from somewhere..
|
|
|
03/20/2015, 20:48
|
#12
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
|
Quote:
Originally Posted by _Miss_AngeL_
huh ? can you explain how those codes looked like the same of yours ?
actually you who coopied them from somewhere..
|
Who said I created the Model Switch thing? If I am not mistaking I saw it or smth like it while being in a meeting with Akasch. No, it's not copied, I don't copy stuff and would never copy akasch I owe him too much already. Just as I told you, this is the most logical way to do it this is why they match.
This is faster, more customizable and smaller than yours.
The whole code is just a simple join and a string replacement, there's nothing to copy there. The idea of doing it that way belongs to him, he was the first one to do it like that.
And in case you didn't notice, I gave credits to Akasch for the whole thing.
|
|
|
03/20/2015, 20:53
|
#13
|
elite*gold: 0
Join Date: Mar 2015
Posts: 3
Received Thanks: 0
|
nice sharing thanks
|
|
|
03/20/2015, 22:01
|
#14
|
elite*gold: 480
Join Date: Jan 2012
Posts: 655
Received Thanks: 579
|
Nice work, thanks Exo.
|
|
|
03/20/2015, 22:56
|
#15
|
elite*gold: 85
Join Date: Feb 2014
Posts: 1,055
Received Thanks: 1,643
|
Quote:
Originally Posted by Exo
Who said I created the Model Switch thing? If I am not mistaking I saw it or smth like it while being in a meeting with Akasch. No, it's not copied, I don't copy stuff and would never copy akasch I owe him too much already. Just as I told you, this is the most logical way to do it this is why they match.
This is faster, more customizable and smaller than yours.
The whole code is just a simple join and a string replacement, there's nothing to copy there. The idea of doing it that way belongs to him, he was the first one to do it like that.
And in case you didn't notice, I gave credits to Akasch for the whole thing.
|
This.
|
|
|
|
|
Similar Threads
|
Procedure
12/08/2014 - SRO Private Server - 2 Replies
resert skills > status > remove premium ?
any one got right Procedure? ?
|
[Model Remove] Switch Lag Fix (Exult Flyff)
04/18/2014 - Flyff Hacks, Bots, Cheats, Exploits & Macros - 12 Replies
u mirin?
|
Model viewer und model dateien finden und in cinema 4d importieren
09/20/2012 - Aion - 1 Replies
Hallo
Ich würde gerne mir die Aion Models fuer ein anderes Game nehmen und diese in cinema 4d importieren.
Bisher habe ich die .pak datei entpackt und in der dort entstandenen zip datei viele dateien gefunden. Nach suchen bin ich zur erkenntnis gekommen das ie .cgf dateien die model sind (richtig?)
MNun weiss ich aber nicht wie ich mir diese anschauen kann und dann in cinema 4d importieren kann.
gibt es dafuer irgendein tool?
|
Weapon model switch problem...
12/18/2010 - Combat Arms - 6 Replies
Hallo :) Ich wollte mal etwas weiter editieren und habe versucht eine Dragunov in ein messer (m11/tracker knife/usw...) zu verwandeln, da man so kein reload hat :D Habe das im internet schon mir der l96a1 gesehen, was bei mir auch funktioniert hat :mofo: Wenn ich das allerdings mit der Druganov versuche habe ist combat arms entweder abgestürzt als ich die Druganov ausgerüstet habe oder ich hatte gar kein model und konnte nicht schießen sondern nur in die scope gehen... warscheinlich habe ich...
|
All times are GMT +2. The time now is 01:10.
|
|