JustIn Time

Member
ServUO Version
Publish 57
Ultima Expansion
None
Hi im trying to translate a script. got it all worked out except 1 line is giving me an error syntax error, ',' expected. when i translate. compiles fine if i dont translate this line. Here is original.
AddHtml( 271, 139, 178, 60, @"你可以选择幻化类型为:盔甲、盾牌、衣服,以及首饰。可以将面甲幻化为项链,也可以通过将装备幻化为不能装备的物品,而使游戏界面里该装备“隐形”(纸娃娃还是看得到)。普通幻化需要120耐久以上的装备。", (bool)false, (bool)true);
here is translated
AddHtml( 271, 139, 178, 60, @"You can choose the transmogrification type: armor, shield, clothing, and jewelry. You can transmogrify a visor into a necklace, or make the equipment "invisible" in the game interface by transmogrifying it into an item that cannot be equipped (the paper doll can still be seen). Ordinary transmogrification requires equipment with a durability of more than 120.", (bool)false, (bool)true);
 
Yeah, the double quotes are not escaped. You can see that the original text uses some 'special characters' quotes instead of regular double quotes.
Use a backslash to escape them:

string s = "He said: \"Hello, world!\"";
 
@JustIn Time

I asked Gemini to interpret to English versus translation

AddHtml(271, 139, 178, 60, @"You can choose the transmog type: armor, shield, clothing, and jewelry. You can transmog a helmet into a necklace, or make the equipment 'invisible' in the game interface (though still visible on the paperdoll) by transmogging it into an unequipable item. Normal transmog requires equipment with durability above 120.", (bool)false, (bool)true);
 
This seems to be a script I posted many years ago:oops:
could be, i dont know whos it is originally. i do not take credit for it. just translated it to English. Looked it up and is sure is yours. well thx for this i reposted it in English. ill be sure to go back and give you credit.
 
Last edited:

Active Shards

Donations

Total amount
$5.00
Goal
$500.00
Back