- Joined
- Jul 21, 2010
- Messages
- 1,072
- Reaction score
- 360
Small tutorial how to make auto script in game use
Probably you think, what this idiot dens is talking about? hehe
As you know there are small scripts like for auto nation which work on current value of alz in inventory or warehouse. Most of you probably know how it works and how to change it, but anyway i'll made this tut.
Well ok, all of those scripts will be placed in database in Stored Procedure Server01.dbo.set_cabal_character
http://saintcabal.com/upload/ragezone/1_db.png
As you see on screen, all of our scripts we paste below "SET NOCOUNT ON" and Before "DECLARE ***".
How it works? This procedure is being loaded everytime you login to game, so all what you put here will be executed everytime somene login to game Nice yea?
Let's prepare our first function, for ex. when someone will have in inventory 1234561 alz then his nation will be Capella, if 1234562 then Procyon. (this script will be to multiple use, not just when you are without nation)
It's clear code, should be understandable.
Now click ! Execute and test it in game
By this way u can made many nice things in game for ex nice reset system:
if warehouse alz = 1b then add + 5 dex/int/str points and remove this 1b from warehouse.
If you just use ur mind u can do everything
If any problem or question, just ask - i am here to help you guys.
Good luck!
Probably you think, what this idiot dens is talking about? hehe
As you know there are small scripts like for auto nation which work on current value of alz in inventory or warehouse. Most of you probably know how it works and how to change it, but anyway i'll made this tut.
Well ok, all of those scripts will be placed in database in Stored Procedure Server01.dbo.set_cabal_character
http://saintcabal.com/upload/ragezone/1_db.png
As you see on screen, all of our scripts we paste below "SET NOCOUNT ON" and Before "DECLARE ***".
How it works? This procedure is being loaded everytime you login to game, so all what you put here will be executed everytime somene login to game Nice yea?
Let's prepare our first function, for ex. when someone will have in inventory 1234561 alz then his nation will be Capella, if 1234562 then Procyon. (this script will be to multiple use, not just when you are without nation)
Code:
IF(@ALZ=1234561)
BEGIN
SET [USER=2000193478]Nation[/USER]=1
END
ELSE IF(@ALZ=1234562)
BEGIN
SET [USER=2000193478]Nation[/USER]=2
END
It's clear code, should be understandable.
Now click ! Execute and test it in game
By this way u can made many nice things in game for ex nice reset system:
if warehouse alz = 1b then add + 5 dex/int/str points and remove this 1b from warehouse.
If you just use ur mind u can do everything
If any problem or question, just ask - i am here to help you guys.
Good luck!
Last edited: