Register for your free account! | Forgot your password?

You last visited: Today at 11:35

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

Advertisement



Trade warning Msg To Relogin Problem!

Discussion on Trade warning Msg To Relogin Problem! within the SRO PServer Questions & Answers forum part of the SRO Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2024
Posts: 38
Received Thanks: 0
Question Trade warning Msg To Relogin Problem!

Hello Guys So am still a beginner am trying to do a warning msg for the job users to Relogin when they sell the goods to receive the Points
the problem is the msg keeps repeating because the event ID is when they sell Each Good in the trade Not the entire package so it's like a loop but I only wanna do it once what is the solution for that?
Code:
else if [MENTION=2220328]Eventi[/MENTION]D = 97 or [MENTION=2220328]Eventi[/MENTION]D = 91 
begin
	declare [MENTION=1008634]msgt[/MENTION]RADE varchar(max)
	declare [MENTION=318268]NAM[/MENTION] varchar(max)
	SET [MENTION=1008634]msgt[/MENTION]RADE ='Warning: Please Restart your Character After Each Trade To Recive your Points..!'
	SET [MENTION=318268]NAM[/MENTION] = (Select CharName16 from SRO_VT_SHARD.._Char where CharID =@CharID)
	EXEC [SRO_VT_SHARDLOG].[dbo].[_SendChat] 'Private' [MENTION=318268]NAM[/MENTION] [MENTION=1008634]msgt[/MENTION]RADE
	end
hneko is offline  
Old 10/21/2024, 02:26   #2
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,390
Received Thanks: 6,507
Arrow SRO Private Server -> SRO PServer Quest…

#moved
PortalDark is offline  
Old 10/21/2024, 03:59   #3
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 941
Quote:
Originally Posted by hneko View Post
trying to do a warning msg for the job users to Relogin when they sell the goods to receive the Points
the problem is the msg keeps repeating because the event ID is when they sell Each Good in the trade Not the entire package so it's like a loop but I only wanna do it once what is the solution for that?
I was thinking about making a cooldown with the datetime from selling but actually is easier by saving the region id.

So, each time the player sell goods, you'll check he has to be in another region.. I mean, different from previous one saved so he gets the reward.
JellyBitz is offline  
Old 10/21/2024, 05:38   #4
 
elite*gold: 0
Join Date: Oct 2024
Posts: 38
Received Thanks: 0
Quote:
Originally Posted by JellyBitz View Post
I was thinking about making a cooldown with the datetime from selling but actually is easier by saving the region id.

So, each time the player sell goods, you'll check he has to be in another region.. I mean, different from previous one saved so he gets the reward.
It's great Idea but what I did was I created a trigger on my System Helper it's like msg BOT to reply so after each trade you just tell him to give you the reward and the trigger execute the Job system and resets the system to 0 so you have to do another 5 star in order for it to work again
hneko is offline  
Old 10/21/2024, 18:43   #5
 
JellyBitz's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 941
Quote:
Originally Posted by hneko View Post
I created a trigger on my System Helper it's like msg BOT to reply so after each trade you just tell him to give you the reward
Not a good game design, it will be annoying for players and it's easier to keep the game flow through NPC.

Also, the my region id I talked about has some flaw if they wanna make the same route.. So my approach would be to reset the reward once they buy goods and you save the region id there, then send the reward if the goods sold is different from saved region id so you update it. ^^
JellyBitz is offline  
Thanks
1 User
Old 10/22/2024, 19:07   #6
 
elite*gold: 0
Join Date: May 2021
Posts: 75
Received Thanks: 12
Quote:
IF @EventID = 97 OR @EventID = 91
BEGIN
DECLARE @msgtRADE VARCHAR(MAX);
DECLARE @NAM VARCHAR(MAX);


SET @msgtRADE = 'Warning: Please Restart your Character After Each Trade To Receive your Points..!';


SET @NAM = (SELECT CharName16 FROM SRO_VT_SHARD.._Char WHERE CharID = @CharID);


EXEC [SRO_VT_SHARDLOG].[dbo].[_SendChat] 'Private', @NAM, @msgtRADE;
END
The code has been modified and errors have been corrected. It works efficiently.
romio100 is offline  
Old 10/24/2024, 21:02   #7
 
elite*gold: 0
Join Date: Oct 2024
Posts: 38
Received Thanks: 0
Quote:
Originally Posted by JellyBitz View Post
Not a good game design, it will be annoying for players and it's easier to keep the game flow through NPC.

Also, the my region id I talked about has some flaw if they wanna make the same route.. So my approach would be to reset the reward once they buy goods and you save the region id there, then send the reward if the goods sold is different from saved region id so you update it. ^^
Quote:
Originally Posted by romio100 View Post
The code has been modified and errors have been corrected. It works efficiently.
there is no issue with the code in the first place!
am just talking about that the event id happen more then once so basically the code is gonna repeat itself multiple times.
hneko is offline  
Old 10/25/2024, 10:42   #8
 
elite*gold: 0
Join Date: May 2021
Posts: 75
Received Thanks: 12
a repeated error in the code has been corrected.

DECLARE @ent BIT = 0; -- متغير لتحديد ما إذا تم إرسال الرسالة سابقاً

IF ( @D = 97 OR @D = 91) AND @ent = 0
BEGIN
DECLARE @RADE VARCHAR(MAX);
DECLARE @ VARCHAR(MAX);

SET @RADE = 'تحذير: الرجاء إعادة تسجيل الدخول بعد كل عملية بيع للحصول على نقاطك..!';
SET @ = (SELECT CharName16 FROM SRO_VT_SHARD.._Char WHERE CharID = @D);

EXEC [SRO_VT_SHARDLOG].[dbo].[_SendChat] 'Private', @, @RADE;

SET @ent = 1; -- تحديث الحالة لتجنب تكرار الرسالة
END
romio100 is offline  
Thanks
1 User
Reply

Tags
editing, private server, silkroad, sql, vsro


Similar Threads Similar Threads
Change msg. Fake msg
10/12/2017 - Nostale - 1 Replies
A friend showed me how he changed my message in the nostale chat. Is there a package for the messages to be exchanged?
[RELEASE] ReLogin Bot by MarcoPolo
04/03/2010 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 54 Replies
ok hier mal wieder was neues für euch ;) Dieser Bot loggt euch automatisch wieder ein, wenn ihr im LoginFenster seid am besten , wenn ihr vom server gekickt wurdet 1. Installation Downloadet die Datei im Anhang "ReLogin Bot by MarcoPolo.rar" Entpackt das Archive irgendwo hin (muss nicht unbedingt Metin2 Ordner sein) (mir gehen hoffentlich nicht die Bilder aus XD) Bot startet nun und ihr seht ein Fenster
Auto-Relogin + Bot AutoIt
07/17/2009 - Cabal Hacks, Bots, Cheats, Exploits & Macros - 197 Replies
Hey When i have time, I make these scripts for 1024x768. Ive maked some Scripts, it work with: -m_ragg gameguard bypass -Screen size 1280x1024 (window mode) and full screened -Cheat Engine 5.3 -If you have the "Disconnected before World loadet" error, the relogin script will auto restart cheat engine and set speed to: 18 and sleep time to 1 (perfekt settings)
How to auto relogin?
10/16/2006 - Conquer Online 2 - 8 Replies
I use COtobo 0.41 to auto mine. Sometimes a player attacks and it auto dis. I nid to login again. Is there any tools to help to auto relogin?
Relogin on IG walker
07/01/2006 - Lineage 2 - 1 Replies
dose any one know how to set up the IG l2walker to relogin me in when i log out cuz i seet it up to do it and it will not it jsut logs me out and freezes my screen i have to ctrl-alt-delete to get it to close so i can reload hte program you help is much apprecrated thanks



All times are GMT +1. The time now is 11:38.


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.