|
You last visited: Today at 11:35
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.
10/20/2024, 21:22
|
#1
|
elite*gold: 0
Join Date: Oct 2024
Posts: 38
Received Thanks: 0
|
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
|
|
|
10/21/2024, 02:26
|
#2
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,390
Received Thanks: 6,507
|
SRO Private Server -> SRO PServer Quest…
#moved
|
|
|
10/21/2024, 03:59
|
#3
|
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 941
|
Quote:
Originally Posted by hneko
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.
|
|
|
10/21/2024, 05:38
|
#4
|
elite*gold: 0
Join Date: Oct 2024
Posts: 38
Received Thanks: 0
|
Quote:
Originally Posted by JellyBitz
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
|
|
|
10/21/2024, 18:43
|
#5
|
elite*gold: 0
Join Date: Sep 2018
Posts: 419
Received Thanks: 941
|
Quote:
Originally Posted by hneko
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. ^^
|
|
|
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.
|
|
|
10/24/2024, 21:02
|
#7
|
elite*gold: 0
Join Date: Oct 2024
Posts: 38
Received Thanks: 0
|
Quote:
Originally Posted by JellyBitz
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
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.
|
|
|
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
|
|
|
 |
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.
|
|