i would like to say i am sick and tired of these topic being repeated over and over
so here it is
Help with Query's
[Only registered and activated users can see links. Click Here To Register...]
help with PHP with Query's
[Only registered and activated users can see links. Click Here To Register...]
Now u want to start a Pserver follow banes guide on this might help
[Only registered and activated users can see links. Click Here To Register...]
You looking for a Client use this almighty tool becuase you are tolazy to search:rtfm:
[Only registered and activated users can see links. Click Here To Register...]
Also like to add Wamp server
[Only registered and activated users can see links. Click Here To Register...]
now u need to add this add on
[Only registered and activated users can see links. Click Here To Register...]
How to update wamp server after u installed it
[Only registered and activated users can see links. Click Here To Register...]
hope i covered everything there
also use the 32 bit version
Map.ini editing it specifically for OI and GRB
PSM_Client\Bin\Data----->Map.ini---->Map 50 (GRB); CreateTime = (0, 15, 1)
0=Sunday,1=Monday,2=Tuesday,3=Wednesday,4=Thursday ,5=Friday,6=Staurdat
15= Time to start
PSM_Client\Bin\Data----->Map.ini---->Map 64 (OI);
MapType = F PvP map etc just look around
CreateTime = (0, 21, 24)(1, 21, 24)(2, 21, 24)(3, 21, 24)(4, 21, 24)(5, 21, 24)(6, 21, 24)
ExpireTime = 24
RebirthMapPos1 = 47, 509.47, 7.3, 1525.32 Light Spawn Point
RebirthMapPos2 = 47, 1404.15, 10.3, 308.92 Fury Spawn Point
Time is in 24 hour time
e.g
(Day,Time Start, Duration)
Good intentions of the post Bucky, but just to add a few things...
MSSQL Queries
[Only registered and activated users can see links. Click Here To Register...] - Used for getting information.
Example:
Would show all the data in the table, of the characters named Tyler.
[Only registered and activated users can see links. Click Here To Register...] - Used for updating/changing tables without opening the table itself.
Example:
Would update the name of the character Tyler with Imaloser
[Only registered and activated users can see links. Click Here To Register...] - Used to remove information from tables. ALWAYS INCLUDE THE WHERE CLAUSE UNLESS YOU WANT ALL THE INFORMATION IN THE TABLE GONE.
Example:
This would delete all entries of a Character named Tyler who is level 15. Not all level 15s, or not all characters named Tyler.
Actually... for learning SQL, just start [Only registered and activated users can see links. Click Here To Register...], and read all the chapters / practice them then take the [Only registered and activated users can see links. Click Here To Register...]. :cool:
PHP Installation
If you use IIS (Internet Information Services) like I do, you need 2 things to make this easy. First, the PHP 5.2.17 ZIP Binaries from [Only registered and activated users can see links. Click Here To Register...]. Then you need the PHP Manager for IIS 7 from [Only registered and activated users can see links. Click Here To Register...]. Once you have those, register your extracted .zip folder of PHP to somewhere, such as C:\, and register it in IIS in the PHP Manager. Then go to extensions and enable php_mssql.dll. If you don't have it, you'll need to find/download it. Just google that one, there's tons of copies of it.
After you enable it, restart it to make sure everything works, though it should just be enabled without restart. Now to test to make sure everything works, make a simple PHP file (test.php ?) and put something like this inside.
If it works, then brava, you were successful. If not, go back and double check. Use google to search for your error. I promise you, it's there. I searched on google to get it set up myself.
Useful PHP Functions
Well, a lot of PHP funtions are useful to you, but I'll show a few you should use. Also, I'd suggest learning SQL first, or at least before you learn the mssql functions of PHP.
[Only registered and activated users can see links. Click Here To Register...]
Examples:
Setting the $User variable to Tyler
[Only registered and activated users can see links. Click Here To Register...] - Used to connect to your database
Example:
Pretty simple, would connect to your database, to allow queries to be ran.
[Only registered and activated users can see links. Click Here To Register...] - Used to run queries on the database.
Example:
Would add the value of $Point onto the user stored in $User
Once you get those two down, you should study PHP projects already posted in the development section of this forum. Like Abrasive's register/pass change, my email registration, or Zargon's PHP scripts. Zargon/Abrasive's are how I learned at first. ;)
As for people installing a website on the same machine you have Skype on, you need to tell Skype to not use port 80, here's how: [Only registered and activated users can see links. Click Here To Register...]
Just uncheck that box, click save and restart Skype.
Now plz give credits to tyler on this post [Only registered and activated users can see links. Click Here To Register...]
you think i missed something Post it and i will look into that
PS: dont post anything about shaiya NOVA
Ok guys you think you want to open a server read this make SURE you read this [Only registered and activated users can see links. Click Here To Register...]
I will be updating this when i get time
Name already In use
Run that in a new query and execute.
Game.exes
EP3-- [Only registered and activated users can see links. Click Here To Register...]
EP4-- [Only registered and activated users can see links. Click Here To Register...]
EP4.5-- [Only registered and activated users can see links. Click Here To Register...]
EP5-- [Only registered and activated users can see links. Click Here To Register...]
Hmm.. Oh! Converting MSSQL based PHP files to ODBC!
Either google it, go to [Only registered and activated users can see links. Click Here To Register...] and look up the functions, or compare the following two files, and play spot the differences!
MSSQL:
[Only registered and activated users can see links. Click Here To Register...]
ODBC:
[Only registered and activated users can see links. Click Here To Register...]
Credits to Tyler for this last section
Guild Fix
Friends Fix
so here it is
Help with Query's
[Only registered and activated users can see links. Click Here To Register...]
help with PHP with Query's
[Only registered and activated users can see links. Click Here To Register...]
Now u want to start a Pserver follow banes guide on this might help
[Only registered and activated users can see links. Click Here To Register...]
You looking for a Client use this almighty tool becuase you are tolazy to search:rtfm:
[Only registered and activated users can see links. Click Here To Register...]
Also like to add Wamp server
[Only registered and activated users can see links. Click Here To Register...]
now u need to add this add on
[Only registered and activated users can see links. Click Here To Register...]
How to update wamp server after u installed it
[Only registered and activated users can see links. Click Here To Register...]
hope i covered everything there
also use the 32 bit version
Map.ini editing it specifically for OI and GRB
PSM_Client\Bin\Data----->Map.ini---->Map 50 (GRB); CreateTime = (0, 15, 1)
0=Sunday,1=Monday,2=Tuesday,3=Wednesday,4=Thursday ,5=Friday,6=Staurdat
15= Time to start
PSM_Client\Bin\Data----->Map.ini---->Map 64 (OI);
MapType = F PvP map etc just look around
CreateTime = (0, 21, 24)(1, 21, 24)(2, 21, 24)(3, 21, 24)(4, 21, 24)(5, 21, 24)(6, 21, 24)
ExpireTime = 24
RebirthMapPos1 = 47, 509.47, 7.3, 1525.32 Light Spawn Point
RebirthMapPos2 = 47, 1404.15, 10.3, 308.92 Fury Spawn Point
Time is in 24 hour time
e.g
(Day,Time Start, Duration)
Good intentions of the post Bucky, but just to add a few things...
MSSQL Queries
[Only registered and activated users can see links. Click Here To Register...] - Used for getting information.
Example:
Code:
SELECT * FROM PS_GameData.dbo.Chars WHERE CharName='Tyler'
[Only registered and activated users can see links. Click Here To Register...] - Used for updating/changing tables without opening the table itself.
Example:
Code:
UPDATE PS_GameData.dbo.Chars SET CharName='Imaloser' WHERE CharName='Tyler'
[Only registered and activated users can see links. Click Here To Register...] - Used to remove information from tables. ALWAYS INCLUDE THE WHERE CLAUSE UNLESS YOU WANT ALL THE INFORMATION IN THE TABLE GONE.
Example:
Code:
DELETE FROM PS_GameData.dbo.Chars WHERE CharName='Tyler' AND Level=15
Actually... for learning SQL, just start [Only registered and activated users can see links. Click Here To Register...], and read all the chapters / practice them then take the [Only registered and activated users can see links. Click Here To Register...]. :cool:
PHP Installation
If you use IIS (Internet Information Services) like I do, you need 2 things to make this easy. First, the PHP 5.2.17 ZIP Binaries from [Only registered and activated users can see links. Click Here To Register...]. Then you need the PHP Manager for IIS 7 from [Only registered and activated users can see links. Click Here To Register...]. Once you have those, register your extracted .zip folder of PHP to somewhere, such as C:\, and register it in IIS in the PHP Manager. Then go to extensions and enable php_mssql.dll. If you don't have it, you'll need to find/download it. Just google that one, there's tons of copies of it.
After you enable it, restart it to make sure everything works, though it should just be enabled without restart. Now to test to make sure everything works, make a simple PHP file (test.php ?) and put something like this inside.
Code:
<?php
if (function_exists('mssql_connect')) {
echo "MSSQL functions are available.<br />\n";
} else {
echo "MSSQL functions are not available.<br />\n";
}
?>
Useful PHP Functions
Well, a lot of PHP funtions are useful to you, but I'll show a few you should use. Also, I'd suggest learning SQL first, or at least before you learn the mssql functions of PHP.
[Only registered and activated users can see links. Click Here To Register...]
Examples:
Code:
$User='Tyler';
[Only registered and activated users can see links. Click Here To Register...] - Used to connect to your database
Example:
Code:
mssql_connect('127.0.0.1', 'Shaiya', 'Shaiya123');
[Only registered and activated users can see links. Click Here To Register...] - Used to run queries on the database.
Example:
Code:
mssql_query("UPDATE PS_UserData.dbo.Users_Master SET Point=(Point+{$Point}) WHERE UserID='{$User}'");
Once you get those two down, you should study PHP projects already posted in the development section of this forum. Like Abrasive's register/pass change, my email registration, or Zargon's PHP scripts. Zargon/Abrasive's are how I learned at first. ;)
As for people installing a website on the same machine you have Skype on, you need to tell Skype to not use port 80, here's how: [Only registered and activated users can see links. Click Here To Register...]
Just uncheck that box, click save and restart Skype.
Now plz give credits to tyler on this post [Only registered and activated users can see links. Click Here To Register...]
you think i missed something Post it and i will look into that
PS: dont post anything about shaiya NOVA
Ok guys you think you want to open a server read this make SURE you read this [Only registered and activated users can see links. Click Here To Register...]
I will be updating this when i get time
Name already In use
Code:
USE [PS_GameData] GO drop procedure [dbo].[usp_Save_Char_Item_Add_E] GO SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS ON GO /****** 개체: 저장 프로시저 dbo.usp_Save_Char_Item_Add_E ******/ CREATE Proc usp_Save_Char_Item_Add_E @CharID int, @ItemUID bigint, @Bag tinyint, @Slot tinyint, @ItemID int, @Type tinyint, @TypeID tinyint, @Quality int, @Gem1 tinyint, @Gem2 tinyint, @Gem3 tinyint, @Gem4 tinyint, @Gem5 tinyint, @Gem6 tinyint, @Craftname varchar(20) = '', @Count tinyint, @MaketimeZ varchar(50), @Maketype char(1) AS DECLARE @Maketime as datetime SELECT @Maketime = CONVERT(datetime, @MaketimeZ, 120) --SET NOCOUNT ON IF(@Quality >= 5000) BEGIN SET @Quality=0 END INSERT INTO CharItems (CharID, bag, slot, ItemID, Type, TypeID, ItemUID, quality, gem1, gem2, gem3, gem4, gem5, gem6, craftname, [count], maketime, maketype) VALUES(@CharID, @Bag, @Slot, @ItemID, @Type, @TypeID, @ItemUID, @Quality, @Gem1, @Gem2, @Gem3, @Gem4, @Gem5, @Gem6, @Craftname, @Count, @Maketime, @Maketype) IF(@@ERROR = 0) BEGIN RETURN 1 END ELSE BEGIN RETURN -1 END --SET NOCOUNT OFF GO SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS ON GO
Game.exes
EP3-- [Only registered and activated users can see links. Click Here To Register...]
EP4-- [Only registered and activated users can see links. Click Here To Register...]
EP4.5-- [Only registered and activated users can see links. Click Here To Register...]
EP5-- [Only registered and activated users can see links. Click Here To Register...]
Hmm.. Oh! Converting MSSQL based PHP files to ODBC!
Either google it, go to [Only registered and activated users can see links. Click Here To Register...] and look up the functions, or compare the following two files, and play spot the differences!
MSSQL:
[Only registered and activated users can see links. Click Here To Register...]
ODBC:
[Only registered and activated users can see links. Click Here To Register...]
Credits to Tyler for this last section
Guild Fix
Code:
Use PS_gamedata drop table [dbo].[Guilds] CREATE TABLE [dbo].[Guilds] ( [RowID] [int] IDENTITY (1, 1) NOT NULL , [GuildID] [int] NOT NULL , [GuildName] [varchar] (30) COLLATE Latin1_General_CI_AS NOT NULL , [MasterUserID] [varchar] (18) COLLATE Latin1_General_CI_AS NOT NULL , [MasterCharID] [int] NOT NULL , [MasterName] [varchar] (30) COLLATE Latin1_General_CI_AS NOT NULL , [Country] [tinyint] NOT NULL , [TotalCount] [smallint] NOT NULL , [GuildPoint] [int] NOT NULL , [Del] [tinyint] DEFAULT (0) , [CreateDate] [datetime] (getdate()) , [DeleteDate] [datetime] (getdate()) ) ON [PRIMARY]
Code:
USE PS_GameData drop table [dbo].[FriendChars]; CREATE TABLE [dbo].[FriendChars] ( [RowID] [int] IDENTITY (1, 1) NOT NULL , [CharID] [int] NOT NULL , [FriendID] [int] NOT NULL , [FriendName] [varchar] (30) COLLATE Latin1_General_CI_AS NOT NULL , [Family] [tinyint] NOT NULL , [Grow] [tinyint] NOT NULL , [Job] [tinyint] NOT NULL , [Memo] [varchar] (50) COLLATE Latin1_General_CI_AS NULL , [Refuse] [tinyint] NULL , [CreateDate] [datetime] NULL , [RefuseDate] [datetime] NULL ) ON [PRIMARY]