Register for your free account! | Forgot your password?

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

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

Advertisement



Update user_master every time the player enters the game, update to current ip (Help

Discussion on Update user_master every time the player enters the game, update to current ip (Help within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 220
Join Date: Jul 2018
Posts: 85
Received Thanks: 22
Update user_master every time the player enters the game, update to current ip (Help

I noticed that during the registration on shaiya server, goes to table user_master the ip performed in the registration.

Knowing that players' IP can change frequently, I tried to write a procedure, that whenever the player enters the game, the ip is updated to the current IP


This is the code I wrote in an attempt to do this functionality, but it is not working, someone with more experience in sql can help I will enjoy it

ShaiyaIwanttolearn is offline  
Old 09/09/2019, 16:40   #2
 
elite*gold: 220
Join Date: Jul 2018
Posts: 85
Received Thanks: 22
Quote:
Originally Posted by failpvper View Post


when writing actiontype procedures, my humble suggestion is not to select data from another log when it's already present in the ActionLog, in the same row.

also, you didn't need the set statement in this case. the text1 column has the ip in it when actiontype 107 is logged, and the varchar data type is already configured for that column, which is the same data type for an ip address. you only needed to select the needed columns, and set the variables in the select statement with the where clause.
thanks, it worked perfectly, and helped me a lot in my SQL learning, I still have a lot to learn
ShaiyaIwanttolearn is offline  
Reply


Similar Threads Similar Threads
[HELP] My user_master table is deleted !!!
02/03/2015 - Shaiya PServer Development - 3 Replies
Plz its very important my user_masters table have been deleted how can I do? All players have created account here ...
Allods Online enters Open Beta February 16th
02/13/2010 - Gaming News - EN - 2 Replies
It's always exciting when a new MMOG enters the stretch to launch and next week Allods Online will be one step closer as the game enters its open beta phase. Open beta will go live on February 16th, 2010, and all players will be able to access the open beta with 40 levels worth of content without the need for a beta key. Click here to sign up for a free account.
US Cabal Online enters Closed Beta!
01/27/2008 - Cabal Online - 11 Replies
If its anything like the original Cabal Online, then does the Glitch/bugs/hacks will work? Heard about the one where yo go behind the rock and keep attacking the boss or something. Would that work with the closed beta? Heres the site if anyone is interested. CABAL Online P.S I got in the closed beta, thats why im asking.



All times are GMT +2. The time now is 08:47.


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