Jump to content
  • 0

Language left to right when langtype is 19


Question

Posted

Hello, I'm trying use updated client [2020-04-01bRagexe]

Using langtype 19 for Arabic language

and when I use any script that contain Arabic words I can see Arabic words from left to right

It's possible to make it from right to left to be able to read it normally?

5 answers to this question

Recommended Posts

  • 0
Posted (edited)

at the end of your rathena/npc/other/Global_Functions.txt add

function	script	mes_ar	{
	.@g$ = getarg(0);
	explode(.@m$, .@g$, " ");
	.@s = getarraysize(.@m$) -1;
	for(.@i=.@s;.@i>=0;.@i--){
		.@r$ += .@m$[.@i] + " ";
	}
	mes .@r$;
	return;
}

How to use:

prontera,0,0,0	script	xxxxxx	444,{
	mes_ar "روح شوف كونوسوبا";
end;
}

 

Edited by sader1992
  • Upvote 2
  • 0
Posted (edited)
14 hours ago, Diana said:

@sader1992 This won't effect the english sentences in the game?

use mes for English and mes_ar for Arabic

for sentences with both languages try and see the result and use whatever

this is not a perfect solution , it's just a work around the problem for now

Edited by sader1992
  • Love 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...