Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 02:58

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

Advertisement



I18N packets arguments

Discussion on I18N packets arguments within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
0Lucifer0's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,018
I18N packets arguments

Hi
you might have noticed recently the new i18n packets from nostale here the one i already knows:

msgi {type} {message} 0 0 0 0 0
sayi {type} {Id} {color} {message} 0 0 0 0 0
sayi2 {type} {Id} {color} {message} 2 1 65,327,369

s_memoi2 {type} {message} 2 {Name} 0
qnai2 {packet} {message} 1 1

I'm trying to understand how the arguments are working.
All the values of Message are in the consstring.dat (after 10000)
for example
1147 => You can sign up for the Rainbow Battle now! %d <NEW_TYPE><0>

the 0 0 0 0 0 are the arguments for the string but i can't understand how to craft the correct arguments in order (didn't had official to investigate more)
So is there anybody who knows about the way arguments are working in msgi, sayi, also is sayi2 working the same way ? it has coma from what i know but no idea why.

Don't hesitate to add the one you find and their usage in game
Thanks in advance.
0Lucifer0 is offline  
Thanks
1 User
Old 05/30/2020, 09:44   #2
 
elite*gold: 0
Join Date: Jan 2017
Posts: 36
Received Thanks: 16
msgi
Code:
msgi 1 {LevelMessage} 9 {MinutesMessage} {MinutesLeft} {MinLevel} {MaxLevel}
MinutesMessage -> consstring.dat (+10000)
LevelMessage -> consstring.dat (+10000)

s_memoi2
Code:
First Open:
s_memoi2 {color} 2350 {Option} {PlayerName} {EmptyString} 0

Deposit:
s_memoi2 {color} {DepositMessage} {Option} {BankGold} {Gold} {Type}

Withdraw:
s_memoi2 {color} {DepositMessage} {Option} {BankGold} {Gold} {Type}
BankGold -> Total gold to withdraw / insert to bank [Amount].000

First Open -> Option it's always 2

Deposit -> When option is 2, BankGold shows the money to be deposited, Gold instead is always EmptyString, Type always 0.
When option is 3, BankGold shows the total money in the bank,
Gold is the total amount of money you have, and Type is 1

Withdraw -> Option is always 3, but when Type is 0, Gold shows the total of taxes, when Type is 1, it shows the total of the character's money.

DepositMessage -> consstring.dat (+10000)

qnai2

Code:
qnai2 #gbox^{Type}^{Gold}^1 {OptionMessage} {Type} {GoldBank} {Tax}
OptionMessage -> consstring.dat (+10000)

Type -> When Type is 1, Tax is EmptyString,
instead when Type is 2, Tax shows the total of taxes

qnamli2

Code:
qnamli2 100 #rl {MessageEvents} {PlayerRemains} {EventsName} {PlayerName}
This shows the raid list icon, it should also work with others, even if the instant combat one, for example, still uses the packet: qnaml

MessageEvents -> consstring.dat (+10000)
EventsName -> consstring.dat (+10000)

inbox

Code:
inbox {header}^ {TotChars} 1 {Message}
TotChars -> Maximum number of characters to use
Message -> consstring.dat (+10000)

This is more or less what I understood by reading the packets, i haven't tested them yet, but they should work that way
GGGGame is offline  
Thanks
5 Users
Old 05/30/2020, 14:30   #3
 
0Lucifer0's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,018
Yes I already got that but in your case you specify for specific case... for exemple msgi replace ALL msg packets not only the minute left one
What I’m trying to understand is how the messageId rule the arguments so I don’t have a switch for each messageid

For exemple : 2350 - Welcome to the Cuarry Bank! We accept deposits or withdrawals of between 1,000 and 100,000,000,000 Gold.%s<NEW_TYPE><0>
How do I know based on that it’s {Option} {PlayerName} {EmptyString} 0
0Lucifer0 is offline  
Old 05/31/2020, 03:04   #4
 
XV50's Avatar
 
elite*gold: 100
Join Date: Sep 2019
Posts: 389
Received Thanks: 174
It appears that, if you still use i18n on Familys you get this weird Bug, where a text after the Rank is.

For example:

ExampleFam(Familyhead)Your Inventory is Full

I still try to figure out where this Bug comes from.
Maybe it's because of gidx or the new msgi Packet.

Maybe you guys already know.

Oh and for the msgi Packet. I logged some Packets, and it appeards that there are alot of different types. What i found out so far:

msgi 0 1593 4 1 0 0 0 > The Ship will leave in 1 minute

0 = MessageType
1593 = Message
4 = ?
1 = TimeCount
0 = Empty
0 = Empty
0 = Empty

but if you use for example: msgi 0 414 1 1 0 0 0

0 = MessageType
414 = Message (In this case: "Your inventory is full"
1 = ?
1 = Item ?!?!? If you use the packet as i posted, it says "You Inventory is full! Wooden Stick"
0 = Empty
0 = Empty
0 = Empty

I'll still work on it, and post any news.
XV50 is offline  
Old 05/31/2020, 07:01   #5
 
0Lucifer0's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,018
Haven’t checked but that might be a ginfo change.
They also changed the *** and mlinfo packet.

Does anybody knows why most packet got two version like msgi msgi2 and if their is any logic in using one instead of the other one ?
0Lucifer0 is offline  
Reply


Similar Threads Similar Threads
i18n - Basic multilanguage for lua
04/19/2019 - Metin2 PServer Guides & Strategies - 2 Replies
i18n.lua local translations = {} local config = { default_locale = nil, context_locale = nil, locales = {}, locales_by_id = {}, locales_by_short_name = {}, locales_by_name = {} }
[C++] Stop collision with arguments [++ bonus ]
08/20/2016 - Metin2 PServer Guides & Strategies - 6 Replies
A*collision*or*crash*is an event in which two or more bodies exert forces on each other for a relatively short time. Although the most common colloquial use of the word "collision" refers to incidents in which two or more objects collide, the scientific use of the word "collision" implies nothing about the magnitude of the force. Some examples of physical interactions that scientists would consider collisions: An insect touches its antenna to the leaf of a plant. The antenna is said to...
Packets packets packets...
10/06/2012 - CO2 Private Server - 13 Replies
I have been struggling to understand what is a Packet how could i create one with the data i want then send it to my server So please any one tell if as example i want to send some info from my client to my server, then handle them from the server how could i do that : i have my socket server, also i don't wanna copy and paste codes i want to UNDERSTAND. My PacketReader.cs
cd : too many arguments bei etc befehl
02/13/2012 - Metin2 Private Server - 1 Replies
Hey com Bei den kay331 files kriege ich den error cd : too many arguments wenn ich den cd etc/rc.d/netif restart befehl eingebe Pls help :)



All times are GMT +1. The time now is 03:01.


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.