|
You last visited: Today at 06:53
Advertisement
A question about an Idea.
Discussion on A question about an Idea. within the Shaiya PServer Development forum part of the Shaiya Private Server category.
01/22/2015, 07:59
|
#1
|
elite*gold: 0
Join Date: Feb 2012
Posts: 122
Received Thanks: 12
|
A question about an Idea.
Hello Guys, I figured i would like to try something new out on my server.
I came to a Answer that it should be possible but wasnt sure so i wanted to ask and see what you say about it.
How about adding an item into the game wish will give you skillpoints when Clicking it? Like a SkillReset but instead of reseting it could add like 5 points per item.
There are items such as AP Coins and Gold Coins wish actually adds it into the character. The Trigger for using that is basicly the same as the one using AP Coin..
Here is how i thought about it...
PHP Code:
USE [PS_GameLog]
GO
/****** Object: StoredProcedure [dbo].[usp_Insert_Action_Log_E] Script Date: 02/07/2012 00:46:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/****** Object: Stored Procedure dbo.usp_Insert_Action_Log_E Script Date: 2008-6-7 18:32:40 ******/
/****** Object: Stored Procedure dbo.usp_Insert_Action_Log_E Script Date: 2008/3/15 下午 05:16:53 ******/
ALTER Proc [dbo].[usp_Insert_Action_Log_E]
/*
Created by , 2004-08-17
Modified by , 2004-08-19
게임내 행동 로그 남기기 */
/*
*/
@UserID varchar(18),
@UserUID int,
@CharID int,
@CharName varchar(50),
@CharLevel tinyint,
@CharExp int,
@MapID smallint,
@PosX real,
@PosY real,
@PosZ real,
@ActionTime datetime,
@ActionType tinyint,
@Value1 bigint = null,
@Value2 int = null,
@Value3 int = null,
@Value4 bigint = null,
@Value5 int = null,
@Value6 int = null,
@Value7 int = null,
@Value8 int = null,
@Value9 int = null,
@Value10 int = null,
@Text1 varchar(100) = '',
@Text2 varchar(100) = '',
@Text3 varchar(100) = '',
@Text4 varchar(100) = '',
@Sql nvarchar(4000) = '',
@yyyy varchar(4) = '',
@mm varchar(2) = '',
@dd varchar(2) = '',
@Bucket smallint = -1
AS
SET @yyyy = datepart(yyyy, @ActionTime)
SET @mm = datepart(mm, @ActionTime)
SET @dd = datepart(dd, @ActionTime)
IF(LEN(@mm) = 1)
BEGIN
SET @mm = '0' + @mm
END
IF(LEN(@dd) = 1)
BEGIN
SET @dd = '0' + @dd
END
SET @Sql = N'
INSERT INTO PS_GameLog.dbo.ActionLog
(UserID, UserUID, CharID, CharName, CharLevel, CharExp, MapID, PosX, PosY, PosZ, ActionTime, ActionType,
Value1, Value2, Value3, Value4, Value5, Value6, Value7, Value8, Value9, Value10, Text1, Text2, Text3, Text4)
VALUES(@UserID, @UserUID, @CharID, @CharName, @CharLevel, @CharExp, @MapID, @PosX, @PosY, @PosZ, @ActionTime, @ActionType,
@Value1, @Value2, @Value3, @Value4, @Value5, @Value6, @Value7, @Value8, @Value9, @Value10, @Text1, @Text2, @Text3, @Text4)'
EXEC sp_executesql @Sql,
N'@UserID varchar(18), @UserUID int, @CharID int, @CharName varchar(50),
@CharLevel tinyint, @CharExp int, @MapID smallint, @PosX real, @PosY real, @PosZ real, @ActionTime datetime, @ActionType tinyint,
@Value1 bigint, @Value2 int, @Value3 int, @Value4 bigint, @Value5 int, @Value6 int, @Value7 int, @Value8 int,
@Value9 int, @Value10 int, @Text1 varchar(100), @Text2 varchar(100), @Text3 varchar(100), @Text4 varchar(100)',
@UserID, @UserUID, @CharID, @CharName, @CharLevel, @CharExp, @MapID, @PosX, @PosY, @PosZ, @ActionTime, @ActionType,
@Value1, @Value2, @Value3, @Value4, @Value5, @Value6, @Value7, @Value8, @Value9, @Value10, @Text1, @Text2, @Text3, @Text4
IF( @ActionType = 114 )
BEGIN
IF( @Value2 = 25046 )
BEGIN
UPDATE ps_GameData.dbo.Chars
SET SkillPoint = SkillPoint + ( 2 * @Value4 )
WHERE useruid = @UserUID
END
IF( @Value2 = 25044 )
BEGIN
UPDATE ps_GameData.dbo.Chars
SET SkillPoint = SkillPoint + ( 5 * @Value4 )
WHERE useruid = @UserUID
END
END
|
|
|
01/22/2015, 09:12
|
#2
|
elite*gold: 0
Join Date: Apr 2014
Posts: 300
Received Thanks: 473
|
I can see why you'd think this would be possible, it almost is. A few mistakes in your codes are marked in red below, just for learning purposes.
IF( @ActionType = 114 )
BEGIN
IF( @Value2 = 25046 )
BEGIN
UPDATE ps_GameData.dbo.Chars
SET SkillPoint = SkillPoint + ( 2 * @Value4 )
WHERE CharID=@CharID
END
END -- Missing END.
IF( @Value2 = 25044 )
BEGIN
UPDATE ps_GameData.dbo.Chars
SET SkillPoint = SkillPoint + ( 5 * @Value4 )
WHERE CharID=@CharID
END
END
The only reason this doesn't work is that for the effects to show and be available to your character, you have to re-log (go to char screen). In this time, your old Skill Point value overwrites the (what would be) new value. However, if you use UserID as you originally used all your characters (except the one that used/NPC'd the item) will receive this Skillpoint increase. I assume that's not how you'd want it to work, so that's why I said it almost does.
|
|
|
01/22/2015, 10:30
|
#3
|
elite*gold: 0
Join Date: Feb 2012
Posts: 122
Received Thanks: 12
|
Actually i did notice it would need a relog for the Skillpoints to take effect. Its not that bad if it has to. However Thanks for changing those parts i didnt see before.
It should update the skillpoints without any Futher problem aslong the character relog after using the item right?
|
|
|
01/22/2015, 14:22
|
#4
|
elite*gold: 0
Join Date: Apr 2014
Posts: 300
Received Thanks: 473
|
Read what I said :P
Quote:
Originally Posted by wallerus
The only reason this doesn't work is that for the effects to show and be available to your character, you have to re-log (go to char screen). In this time, your old Skill Point value overwrites the (what would be) new value.
|
Basically, for it to work you'd have to relog, but when you logout it saves your current in-game points into the database, overwriting any new value. Here's a step-by-step of what happens: - Skillpoints=100
- Sell/Use Item
- New Skillpoints=105 (database only, requires relog for ingame)
- Go to character screen
- Game saves "old" Skillpoints (=100)
- Database now reads 100 again
- Login, you are still at 100 points
However, if you use UserID rather than CharID, all characters EXCEPT the one you sold/used the item with, will have an increase in Skillpoints.
|
|
|
01/22/2015, 14:53
|
#5
|
elite*gold: 0
Join Date: Mar 2014
Posts: 119
Received Thanks: 27
|
Hi,
I have an idea that could be exploited.
You can create a new table where you stock the CharID and the new amount of skillpoints.
Add a trigger that read the table, if there is a line, it set the skillpoint to the value of this database, and erease the line.
This is a step-by-step of what i think:
Skillpoints=100
Sell/Use Item
New Skillpoints=105 in the added database
Go to character screen
Trigger read that there is a line in the new database
Set the new skillpoints into ps_GameData.dbo.Chars
I don't know if it's possible
But it's an idea
|
|
|
 |
Similar Threads
|
[Question] Just an Idea
10/13/2014 - S4 League - 12 Replies
Hey
Ist es möglich den Spawnpunkt einer Map zu manipulieren das man z.B.
immer an der gleichen Stelle im DM spawnt ? Ich habe mich gerade ein wenig
im Resource Tool umgeschaut, doch konnte die Resoucen dazu nicht finden .
Also meine Frage :
Ist es möglich den Spawn zu manipulieren ?
|
[Question] About an Idea
04/09/2013 - S4 League - 5 Replies
I have an idea, and a bypass so i can use cheat engine.
Now, i was wondering,
if i changed the Toy Block recieved with taser sword,(Like when you pressed Exchange) i might get permanent. But..... I got a toy block :mad
Is there anyway to change the block to an unlimited weapon?
DONT STEAL MY IDEA D:<
|
An IdEa OR QUeSTIoN ?
06/09/2011 - Dekaron PServer Hacks, Bots, Cheats & Exploits - 2 Replies
oKAY DOES IN Pservers changing the Success rate is server side ?
changing the HP/DEF/resistance of the monster is server side ?
chaning of the experiance ?
|
2 question's / idea's
10/17/2007 - Eudemons Online - 2 Replies
Ok... I have these 2 kinda question's, I was wondering, your knowledge with hacking and stuff is so good, perhap's you could look into it and see if it would be easy,
First of number 1, Somehow, couldn't we make a teleport hack, Just find the value's / adresses whatever of the co-ord's were you are standing, and target your player then some how teleport to other coor's, (good for logging hehe)
And number 2: Ok, this is probably a stupid ideo but anyway's, Would it be possible to somehow...
|
All times are GMT +1. The time now is 06:55.
|
|