I18N packets arguments

05/30/2020 05:39 0Lucifer0#1
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.
05/30/2020 09:44 GGGGame#2
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
05/30/2020 14:30 0Lucifer0#3
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
05/31/2020 03:04 XV50#4
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.
05/31/2020 07:01 0Lucifer0#5
Haven’t checked but that might be a ginfo change.
They also changed the tit 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 ?