Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 08:35

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

Advertisement



How remove only '/set' on Status 32

Discussion on How remove only '/set' on Status 32 within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
[GM]Precious's Avatar
 
elite*gold: 0
Join Date: Jan 2015
Posts: 65
Received Thanks: 7
How remove only '/set' on Status 32

Hi,

I would like to remove the '/set' command only on Status 32.

Im Using [dbo].[usp_Insert_Chat_Log_E].
Replacing '/set' to 'any text' before it is processed.

Here is what I've done something wrong that is why its not working.

DECLARE @userstat smallint
DECLARE @usercmd varchar(128)

SELECT @userstat=Status FROM PS_UserData.dbo.Users_Master WHERE @UserUID=UserUID

IF (@userstat = 32)
BEGIN
SELECT @ChatData=ChatData,@CharID=CharID FROM inserted
SELECT @usercmd= SUBSTRING(@ChatData,0, CHARINDEX(' ',@ChatData))
IF (@usercmd='/set')
BEGIN
SET @ChatData = 'Not Allowed Command'
END
END

Anyone can point me to the right direction?
[GM]Precious is offline  
Old 12/05/2015, 20:07   #2
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
EP4.5 ps_game.exe:
00471F57 - cmp byte ptr [ebx+00005768],02

EP5.4 ps_game.exe:
00480D40 - cmp byte ptr [esi+00005808],02

DB Statusps_game Status
161
322
483
644
805
011
nubness is offline  
Thanks
9 Users
Old 12/05/2015, 22:00   #3
 
[GM]Precious's Avatar
 
elite*gold: 0
Join Date: Jan 2015
Posts: 65
Received Thanks: 7
Quote:
Originally Posted by nubness View Post
EP4.5 ps_game.exe:
00471F57 - cmp byte ptr [ebx+00005768],02

EP5.4 ps_game.exe:
00480D40 - cmp byte ptr [esi+00005808],02

DB Statusps_game Status
161
322
483
644
805
011
Thank you Nubness!

I did on the following but can't figure it out.

[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem:
cmp byte ptr [ebx+00005768],02
je 00471F57

originalcode:
cmp byte ptr [ebx+00005768],02

exit:
jmp returnhere

00471F57:
nop
nop
returnhere:

[DISABLE]
dealloc(newmem)
00471F57:
cmp byte ptr [ebx+00005768],02
[GM]Precious is offline  
Old 12/05/2015, 22:06   #4
 
nubness's Avatar
 
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
Code:
[ENABLE]

00471F57:
cmp byte ptr [ebx+00005768],01

[DISABLE]

00471F57:
cmp byte ptr [ebx+00005768],02
or

Code:
[ENABLE]

00471F5D:
db 01

[DISABLE]

00471F5D:
db 02
nubness is offline  
Thanks
8 Users
Old 12/05/2015, 23:16   #5
 
[GM]Precious's Avatar
 
elite*gold: 0
Join Date: Jan 2015
Posts: 65
Received Thanks: 7
Brilliant! Can't say anything else but thanks a LOT.
[GM]Precious is offline  
Reply


Similar Threads Similar Threads
[Request Help] Remove mobs / remove eur items / remove npc
02/15/2013 - SRO Private Server - 0 Replies
Iam sure all now saies this guy is mad :D why not remove the db i want to know how i can remove mobs from samrkand and add alex mobs there and remove eur item from npc and drobs and remove some npcs ty guys _________________________ I see that there is too much help here it's my topic no.2 without any answer
Auto pot+Remove Upnormal status
06/17/2010 - Aion - 1 Replies
We Should Work on a way to Auto pot When HP reaches Certain Level....Also A way To Auto Use Healing potion to remove upnormal status..any help will be appreciated.
Remove stolen status
03/25/2008 - EO PServer Hosting - 5 Replies
im sorry everyone, i dont like to ask or anything but i would like to know how to remove the stolen status on items. i know it can be done but i dont know how, i checked and did a search but found nothing... i was wondering if anyone could tell me the lane or maybe a code to remove them all at once?



All times are GMT +1. The time now is 08:35.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.