Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Development
You last visited: Today at 00:22

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

Advertisement



[REQUEST] Trigger that define level max

Discussion on [REQUEST] Trigger that define level max within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
Trayne01's Avatar
 
elite*gold: 0
Join Date: Feb 2015
Posts: 473
Received Thanks: 1,108
[REQUEST] Trigger that define level max

I have made this trigger:

PHP Code:
USE [PS_GameData]
GO
/****** Object:  Trigger [dbo].[LevelMax]    Script Date: 26/04/2015 20:11:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO




ALTER trigger 
[dbo].[LevelMax]
on [PS_GameData].[dbo].[Chars]
after UPDATE
as
IF (
UPDATE (Level) and UPDATE (StatPoint) and UPDATE (SkillPoint))
begin
declare @oldLevel int
declare @newLevel int
declare @oldStatPoint int
declare @newStatPoint int
declare @oldSkillPoint int
declare @newSkillPoint int
set 
@oldLevel = (select Level from deleted)
set @newLevel = (select Level from inserted)
set @oldStatPoint = (select StatPoint from deleted)
set @newStatPoint = (select StatPoint from inserted)
set @oldSkillPoint = (select SkillPoint from deleted)
set @newSkillPoint = (select SkillPoint from inserted)
if @
newLevel>60
    begin
        SET 
@newLevel=60
        SET 
@newStatPoint=@oldStatPoint
        SET 
@newSkillPoint=@oldSkillPoint
end

end 
But it seem don't work, but no error message... could someone help me? Pleaaase. I use 5.4 PS_Game, and it's moleboxed with level 70 max, so i made this... Thanks for reading
Trayne01 is offline  
Old 04/26/2015, 20:24   #2
 
elite*gold: 0
Join Date: Oct 2012
Posts: 175
Received Thanks: 28
This trigger apply on what?????
nick4ever is offline  
Old 04/26/2015, 20:35   #3
 
Trayne01's Avatar
 
elite*gold: 0
Join Date: Feb 2015
Posts: 473
Received Thanks: 1,108
This trigger set level max to 60, and if someone level up, he come back to 60lvl
Trayne01 is offline  
Old 04/26/2015, 20:41   #4
 
elite*gold: 0
Join Date: Jan 2012
Posts: 428
Received Thanks: 33
you will level up to level you want?
Cansas59 is offline  
Old 04/26/2015, 21:24   #5
 
Trayne01's Avatar
 
elite*gold: 0
Join Date: Feb 2015
Posts: 473
Received Thanks: 1,108
No, if some reach level 61, i wants him to come back at level 60
Trayne01 is offline  
Old 04/26/2015, 21:50   #6
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
Why don't you do it directly in the ps_game ?

Pretty straightforward method without any pain:
1) Find the offset of your level.
2) Make sure you're not lv70.
3) Kill a mob that supposedly gives exp and see what function is executed when the mob dies.
4) Check the code around that area and if you see 70 (0x46) anywhere, change it to 60 (0x3C).
5) I suggest trying the same with killing an opposite faction player, it's most likely a different function.
nubness is offline  
Thanks
5 Users
Old 04/26/2015, 22:17   #7
 
Trayne01's Avatar
 
elite*gold: 0
Join Date: Feb 2015
Posts: 473
Received Thanks: 1,108
Quote:
Originally Posted by nubness
Why don't you do it directly in the ps_game
Beacause if i'm not wrong it is moleboxed, and my assembly knowedge are very weak, but I will take a look, i didn't try yet. Thank you
Trayne01 is offline  
Old 04/26/2015, 22:25   #8
 
SkuulCandy's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
Quote:
Originally Posted by Trayne01 View Post
Beacause if i'm not wrong it is moleboxed, and my assembly knowedge are very weak, but I will take a look, i didn't try yet. Thank you
You don't can "unmoleboxe" your ps-game?
SkuulCandy is offline  
Old 04/26/2015, 22:27   #9
 
Trayne01's Avatar
 
elite*gold: 0
Join Date: Feb 2015
Posts: 473
Received Thanks: 1,108
No i can't, or i don't know how to, but theyre is still a lot of possibilities to edit its
Trayne01 is offline  
Old 04/26/2015, 23:10   #10
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
Yes, the ps_game is packed and you cannot touch the file itself, but you can easily do any modifications to the running process, using Cheat Engine and OllyDBG.
nubness is offline  
Thanks
2 Users
Old 04/27/2015, 05:39   #11
 
elite*gold: 0
Join Date: Oct 2012
Posts: 175
Received Thanks: 28
It's such a long time to see nubness online

@Trayne: You can use these ways:
1. Edit ps_game to limit max level
2. Edit sp logout, when player logout, get his level then update to level you want
3. Write a trigger monitor PS_GameLog.dbo.ActionLogs, if there is a player up, then kick him first, and update his level

The question is, if you have a boss level 63, then player try to get up 62 without log out, so he kill that boss so easy, I prefer step 3
nick4ever is offline  
Old 04/27/2015, 07:58   #12
 
SkuulCandy's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
Quote:
Originally Posted by nubness View Post
Yes, the ps_game is packed and you cannot touch the file itself, but you can easily do any modifications to the running process, using Cheat Engine and OllyDBG.
There are many tuto on youtube "how to unpack" with ollydbg or CE / use PEiD etc
SkuulCandy is offline  
Old 04/27/2015, 09:57   #13
 
elite*gold: 50
Join Date: Sep 2011
Posts: 408
Received Thanks: 1,262
You can also search for the Easy Mode level restriction, there are 4 checks, 2 for easy mode and 2 for other modes.
One of those checks for your mode and 2nd one checks for your level. Simply edit it like nubness said.
JuuF is offline  
Thanks
3 Users
Old 05/10/2015, 01:41   #14
 
elite*gold: 0
Join Date: Feb 2014
Posts: 54
Received Thanks: 47
the reason its not working is because the game saved all the data each time you quit or log out if you change the level of the char in the database when a char is login it will then change back when the person logs out that is why its not working for you to add a level cap it has to be added in the ps_game.exe like nubness said if im not mistaken I think level, current stat points and skills are saved everytime a logout is done so any changes made to those things in the database while a char is login will be resaved to what the game.exe sends to the ps_game.exe

example is say the play lvls to 61 and you only want lvl 60s your trigger changes 61 to 60 but when the player logs out the game.exe sends the info to the ps_game.exe saying your current lvl is 61 it then saves that data in the database which in turns over writes your trigger
Mark.Teal1982 is offline  
Reply


Similar Threads Similar Threads
[Selling] Dead Trigger 2 Account Level 46/Tech.-Lvl. 10
11/13/2014 - Browsergames Trading - 0 Replies
Der Account steht nicht mehr zum Verkauf.
[HOW TO]define the level on your Metin2 P server!
08/27/2011 - Metin2 Private Server - 0 Replies
Please someone tell me how I can define the level on my P server?
Looking for some help on define eud star
09/21/2010 - EO PServer Hosting - 11 Replies
hey all..can some one show where did i can define my eudemon star in cq_eudemon_rbn_rqr ? example for reborn rate.. on my server eudemon below 100* eudemon will require 30* per compose(this is normal on cq_eudemon_rbn_rqr sacrifice_starlev) so what im not understand here.. where the point for 100*? coz i make the new line on it that will require 40* eudemon for compose..but my 100* eudemon change the require star to 40* and not 30* anymore..where should i define this? its really make...



All times are GMT +1. The time now is 00:23.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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