ArcEmu: Gossip_innkeepers.cpp Localisation - ArcEmu

Jump to content

Toggle shoutbox Lastest Announcements

dfighter  : (07 December 2014 - 12:06 PM) Arcemu is in hibernation mode, please read http://arcemu.org/fo...showtopic=26903
dfighter  : (01 January 2013 - 05:56 PM) Arcemu wishes you all a happy new year!
Hasbro  : (12 September 2012 - 10:01 AM) Please excuse our outage from the web! Our web host had a major malfunction!
dfighter  : (01 September 2012 - 04:05 PM) Since the spam bots just don't want to stop, I've enabled admin verification when registering.
dfighter  : (23 January 2012 - 09:56 PM) Please note that from now on you will need to confirm your email on the wiki in order to edit it!
Hasbro  : (31 December 2011 - 12:50 PM) Happy New Years all!
Navid  : (26 December 2011 - 04:09 AM) Merry Christmas !!!!!! Happy holidays all :)
WAmadeus  : (24 December 2011 - 03:54 PM) Merry Christmas to all!
dfighter  : (24 December 2011 - 11:05 AM) The Arcemu team wishes y'all a Merry Christmukkah!
Hasbro  : (05 October 2011 - 12:53 PM) Looking for web designers for upcoming web related project. If you're interested in designing user interfaces contact me
dfighter  : (02 September 2011 - 03:47 PM) So who here wants vehicles in Arcemu? :P http://arcemu.org/fo...showtopic=25440
Hasbro  : (14 August 2011 - 03:25 PM) Join us on irc, grab an irc client and connect to irc.freenode.net join channel #arcemu /server irc.freenode.net:6667 /join #arcemu
jackpoz  : (03 August 2011 - 05:33 AM) to all Lua Engine (old one) users: please check http://arcemu.org/fo...showtopic=25274
Hasbro  : (20 May 2011 - 05:27 PM) Looking for people experienced with CMake configuration and setup! Contact me asap
Hasbro  : (15 May 2011 - 05:03 PM) ArcEmu is recruiting C++ programmers, contact Hasbro if interested.
paroxysm  : (03 May 2011 - 06:26 PM) Updated luabridge gossip example to describe the whole gossip creation process rather than just how to create menu. Gossip tutorial
paroxysm  : (23 April 2011 - 11:35 AM) Lua writers can refer to the Luabridge Tutorials section in the Wiki to learn how to write gossip code correctly.
Hasbro  : (20 April 2011 - 05:22 PM) Thank you for your continuous contribution of bug reports, we are working on them.
Hasbro  : (17 April 2011 - 03:20 AM) Please consider donating to support our bills. Donations can be sent using PayPal to donations@arcemu.org - Thank you for your support.
paroxysm  : (10 April 2011 - 12:43 AM) Refer to the Luabridge Tutorials section in the Wiki to learn the new syntax of luabridge.
Resize Shouts Area

Read:

When submitting patches - READ: http://arcemu.org/fo...?showtopic=2355 -
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Gossip_innkeepers.cpp Localisation

#1 User is offline   Sindastra 

  • Member
  • Pip
  • Group: Members
  • Posts: 44
  • Joined: 16-March 11
  • Gender:Female
  • Server OS:Linux

Posted 10 September 2011 - 03:19 PM

Here the missing localisation for "What can I do at an inn?"

To the core modification part:

first edit Gossip_Innkeepers.cpp (can be found at "GossipScripts" / "Source Files")

search for:
menu.AddItem(Arcemu::Gossip::ICON_CHAT, "What can I do at an inn?", 3);

and replace with:
menu.AddItem(Arcemu::Gossip::ICON_CHAT, Plr->GetSession()->LocalizedWorldSrv(Arcemu::Gossip::INNKEEPERASK), 3);


then edit Gossip.h

search for
		enum ws
		{
		    VENDOR = 1,
		    ISEEK,
		    MAGE,
		    SHAMAN,
		    WARRIOR,
		    PALADIN,
		    WARLOCK,
		    HUNTER,
		    ROGUE,
		    DRUID,
		    PRIEST,
		    TRAINING,
		    BEASTTRAINING,
		    FLIGHTMASTER,
		    AUCTIONEER,
		    INNKEEPER,
		    BANKER,
		    TABARD = 20,
		    BATTLEMASTER,
		    CLASSTRAINER_TALENTRESET,
		    PETTRAINER_TALENTRESET,
		    CLASSTRAINER_TALENTCONFIRM,
		    PETTRAINER_TALENTCONFIRM,
		    DEATHKNIGHT = 82,
		    TXTID_TALENTRESET = 5674,
		    TXTID_PETUNTRAIN = 7722,
		    TXTID_DUALSPECPURCHASE = 14136	//this is not correct.
		};


and add
INNKEEPERASK = 81,


so it looks like
		enum ws
		{
		    VENDOR = 1,
		    ISEEK,
		    MAGE,
		    SHAMAN,
		    WARRIOR,
		    PALADIN,
		    WARLOCK,
		    HUNTER,
		    ROGUE,
		    DRUID,
		    PRIEST,
		    TRAINING,
		    BEASTTRAINING,
		    FLIGHTMASTER,
		    AUCTIONEER,
		    INNKEEPER,
		    BANKER,
		    TABARD = 20,
		    BATTLEMASTER,
		    CLASSTRAINER_TALENTRESET,
		    PETTRAINER_TALENTRESET,
		    CLASSTRAINER_TALENTCONFIRM,
		    PETTRAINER_TALENTCONFIRM,
		    INNKEEPERASK = 81,
		    DEATHKNIGHT = 82,
		    TXTID_TALENTRESET = 5674,
		    TXTID_PETUNTRAIN = 7722,
		    TXTID_DUALSPECPURCHASE = 14136	//this is not correct.
		};


compille it!

While it's compilling move to the Database part

Make a new sql called Inkeeper_update.sql or anything like that
and fill in:
SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for `worldstring_tables`
-- ----------------------------
DROP TABLE IF EXISTS `worldstring_tables`;
CREATE TABLE `worldstring_tables` (
  `entry` int(11) NOT NULL AUTO_INCREMENT,
  `text` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`entry`)
) ENGINE=MyISAM AUTO_INCREMENT=83 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of worldstring_tables
-- ----------------------------
INSERT INTO `worldstring_tables` VALUES ('1', 'I would like to browse your goods.');
INSERT INTO `worldstring_tables` VALUES ('2', 'I seek ');
INSERT INTO `worldstring_tables` VALUES ('3', 'mage');
INSERT INTO `worldstring_tables` VALUES ('4', 'shaman');
INSERT INTO `worldstring_tables` VALUES ('5', 'warrior');
INSERT INTO `worldstring_tables` VALUES ('6', 'paladin');
INSERT INTO `worldstring_tables` VALUES ('7', 'warlock');
INSERT INTO `worldstring_tables` VALUES ('8', 'hunter');
INSERT INTO `worldstring_tables` VALUES ('9', 'rogue');
INSERT INTO `worldstring_tables` VALUES ('10', 'druid');
INSERT INTO `worldstring_tables` VALUES ('11', 'priest');
INSERT INTO `worldstring_tables` VALUES ('12', 'training');
INSERT INTO `worldstring_tables` VALUES ('13', 'Train me in the ways of the beast.');
INSERT INTO `worldstring_tables` VALUES ('14', 'Give me a ride.');
INSERT INTO `worldstring_tables` VALUES ('15', 'I would like to make a bid.');
INSERT INTO `worldstring_tables` VALUES ('16', 'Make this inn your home.');
INSERT INTO `worldstring_tables` VALUES ('17', 'I would like to check my deposit box.');
INSERT INTO `worldstring_tables` VALUES ('18', 'Bring me back to life.');
INSERT INTO `worldstring_tables` VALUES ('19', 'How do I create a guild/arena team?');
INSERT INTO `worldstring_tables` VALUES ('20', 'I want to create a guild crest.');
INSERT INTO `worldstring_tables` VALUES ('21', 'I would like to go to the battleground.');
INSERT INTO `worldstring_tables` VALUES ('22', 'I would like to reset my talents.');
INSERT INTO `worldstring_tables` VALUES ('23', 'I wish to untrain my pet.');
INSERT INTO `worldstring_tables` VALUES ('24', 'I understand, continue.');
INSERT INTO `worldstring_tables` VALUES ('25', 'Yes, please do.');
INSERT INTO `worldstring_tables` VALUES ('26', 'This instance is unavailable.');
INSERT INTO `worldstring_tables` VALUES ('27', 'You must have The Burning Crusade Expansion to access this content.');
INSERT INTO `worldstring_tables` VALUES ('28', 'Heroic mode unavailable for this instance.');
INSERT INTO `worldstring_tables` VALUES ('29', 'You must be in a raid group to pass through here.');
INSERT INTO `worldstring_tables` VALUES ('30', 'You do not have the required attunement to pass through here.');
INSERT INTO `worldstring_tables` VALUES ('31', 'You must be at least level %u to pass through here.');
INSERT INTO `worldstring_tables` VALUES ('32', 'You must be in a party to pass through here.');
INSERT INTO `worldstring_tables` VALUES ('33', 'You must be level 70 to enter heroic mode.');
INSERT INTO `worldstring_tables` VALUES ('34', '-');
INSERT INTO `worldstring_tables` VALUES ('35', 'You must have the item, `%s` to pass through here.');
INSERT INTO `worldstring_tables` VALUES ('36', 'You must have the item, UNKNOWN to pass through here.');
INSERT INTO `worldstring_tables` VALUES ('37', 'What can I teach you, $N?');
INSERT INTO `worldstring_tables` VALUES ('38', 'Alterac Valley');
INSERT INTO `worldstring_tables` VALUES ('39', 'Warsong Gulch');
INSERT INTO `worldstring_tables` VALUES ('40', 'Arathi Basin');
INSERT INTO `worldstring_tables` VALUES ('41', 'Arena 2v2');
INSERT INTO `worldstring_tables` VALUES ('42', 'Arena 3v3');
INSERT INTO `worldstring_tables` VALUES ('43', 'Arena 5v5');
INSERT INTO `worldstring_tables` VALUES ('44', 'Eye of the Storm');
INSERT INTO `worldstring_tables` VALUES ('45', 'Unknown Battleground');
INSERT INTO `worldstring_tables` VALUES ('46', 'One minute until the battle for %s begins!');
INSERT INTO `worldstring_tables` VALUES ('47', 'Thirty seconds until the battle for %s begins!');
INSERT INTO `worldstring_tables` VALUES ('48', 'Fifteen seconds until the battle for %s begins!');
INSERT INTO `worldstring_tables` VALUES ('49', 'The battle for %s has begun!');
INSERT INTO `worldstring_tables` VALUES ('50', 'Arena');
INSERT INTO `worldstring_tables` VALUES ('51', 'You have tried to join an invalid instance id.');
INSERT INTO `worldstring_tables` VALUES ('52', 'Your queue on battleground instance id %u is no longer valid. Reason: Instance Deleted.');
INSERT INTO `worldstring_tables` VALUES ('53', 'You cannot join this battleground as it has already ended.');
INSERT INTO `worldstring_tables` VALUES ('54', 'Your queue on battleground instance %u is no longer valid, the instance no longer exists.');
INSERT INTO `worldstring_tables` VALUES ('55', 'Sorry, raid groups joining battlegrounds are currently unsupported.');
INSERT INTO `worldstring_tables` VALUES ('56', 'You must be the party leader to add a group to an arena.');
INSERT INTO `worldstring_tables` VALUES ('57', 'You must be in a team to join rated arena.');
INSERT INTO `worldstring_tables` VALUES ('58', 'You have too many players in your party to join this type of arena.');
INSERT INTO `worldstring_tables` VALUES ('59', 'Sorry, some of your party members are not level 70.');
INSERT INTO `worldstring_tables` VALUES ('60', 'One or more of your party members are already queued or inside a battleground.');
INSERT INTO `worldstring_tables` VALUES ('61', 'One or more of your party members are not members of your team.');
INSERT INTO `worldstring_tables` VALUES ('62', 'Welcome to');
INSERT INTO `worldstring_tables` VALUES ('63', 'Horde');
INSERT INTO `worldstring_tables` VALUES ('64', 'Alliance');
INSERT INTO `worldstring_tables` VALUES ('65', '[ |cff00ccffAttention|r ] Welcome! A new challenger (|cff00ff00{%d}|r - |cffff0000%s|r) has arrived and joined into |cffff0000%s|r,their force has already been increased.');
INSERT INTO `worldstring_tables` VALUES ('66', 'This instance is scheduled to reset on');
INSERT INTO `worldstring_tables` VALUES ('67', 'Auto loot passing is now %s');
INSERT INTO `worldstring_tables` VALUES ('68', 'On');
INSERT INTO `worldstring_tables` VALUES ('69', 'Off');
INSERT INTO `worldstring_tables` VALUES ('70', 'Hey there, $N. How can I help you?');
INSERT INTO `worldstring_tables` VALUES ('71', 'You are already in an arena team.');
INSERT INTO `worldstring_tables` VALUES ('72', 'That name is already in use.');
INSERT INTO `worldstring_tables` VALUES ('73', 'You already have an arena charter.');
INSERT INTO `worldstring_tables` VALUES ('74', 'A guild with that name already exists.');
INSERT INTO `worldstring_tables` VALUES ('75', 'You already have a guild charter.');
INSERT INTO `worldstring_tables` VALUES ('76', 'Item not found.');
INSERT INTO `worldstring_tables` VALUES ('77', 'Target is of the wrong faction.');
INSERT INTO `worldstring_tables` VALUES ('78', 'Target player cannot sign your charter for one or more reasons.');
INSERT INTO `worldstring_tables` VALUES ('79', 'You have already signed that charter.');
INSERT INTO `worldstring_tables` VALUES ('80', 'You do not have the required amount of signatures to turn in this petition.');
INSERT INTO `worldstring_tables` VALUES ('81', 'What can I do at an inn?');
INSERT INTO `worldstring_tables` VALUES ('82', 'Deathknight');


now execute it to your world database

Done!

Gossip_Innkeepers.cpp is now localized and you can use it for a multilingual server.

Attached File(s)


Posted Image
0

#2 User is offline   Sindastra 

  • Member
  • Pip
  • Group: Members
  • Posts: 44
  • Joined: 16-March 11
  • Gender:Female
  • Server OS:Linux

Posted 30 October 2011 - 12:10 PM

New and better patch: http://arcemu.org/fo...showtopic=25739
Posted Image
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users