First lets start off with the teleporter.
I edited "NPC Teleport Town (2455194ffb3cb3515526cb9e195a8371).lua"
and inserted new location in the Asura Katan teleporter. I tried these 4:
Code:
dlg_menu( "@90700000", 'RunTeleport( 100000 , 219257 , 15681 )' ) --Lost Mine 1
dlg_menu( "@90700001", 'RunTeleport( 100000 , 219257 , 112449 )' ) --Lost Mine 2
dlg_menu( "Crytal Valley 1", 'RunTeleport( 200000 , 218806 , 56778 )' ) --Crystal Valley 1
dlg_menu( "@90200505", 'RunTeleport( 200000 , 218806 , 89034 )' ) --Crystal Valley 2
Code:
INSERT INTO [Arcadia].[dbo].[StringResource]
(name, group_id, code, value)
VALUES ('script_string_10017', 0, 90700000, 'Lost Mine 1 - 100000R')
INSERT INTO [Arcadia].[dbo].[StringResource]
(name, group_id, code, value)
VALUES ('script_string_90700000', 0, 90700000, 'Lost Mine 1 - 100000R')
INSERT INTO [Arcadia].[dbo].[StringResource]
(name, group_id, code, value)
VALUES ('script_string_10017', 0, 90700000, 'Lost Mine 1 - 100000R')
Now for my second problem, the npc names. I searched inside the NPCResources table for other working npc and took a look at how its working. All in all I found 4 places where the names are stored. First we got a string title, which I added exactly like those already present, with:
Code:
INSERT INTO [Arcadia].[dbo].[StringResource]
(name, group_id, code, value)
VALUES ('npc_title_10015', 0, 100011010, 'GM Shop -')
INSERT INTO [Arcadia].[dbo].[StringResource]
(name, group_id, code, value)
VALUES ('npc_title_100011010', 0, 100011010, 'GM Shop -')
INSERT INTO [Arcadia].[dbo].[StringResource]
(name, group_id, code, value)
VALUES ('npc_title_10015', 0, 100011010, 'GM Shop -')
Code:
INSERT INTO [Arcadia].[dbo].[StringResource]
(name, group_id, code, value)
VALUES ('npc_name_10016', 0, 105011010, 'Creature Cards')
INSERT INTO [Arcadia].[dbo].[StringResource]
(name, group_id, code, value)
VALUES ('npc_name_105011010', 0, 105011010, 'Creature Cards')
INSERT INTO [Arcadia].[dbo].[StringResource]
(name, group_id, code, value)
VALUES ('npc_name_10016', 0, 105011010, 'Creature Cards')
Since it didnt work (just like with the teleporter script) I searched around the shop script. Inside "NPC Merchant_Etc (e711e712dccb2680b678e4496717677d) .lua" I found the script for the creature card seller:
Code:
--============================================================
-- <<<<<< Å©¸®ÃÄ Ä«µåÆÇ¸Å NPC >>>>>>
--============================================================
function NPC_Merchant_Creature_card_init()
set_npc_name( "@90100800" )
end
function NPC_Merchant_Creature_card_contact()
cprint( "Creature Card Trader" )
-- ´ÙÀ̾ó·Î±× Ãâ·Â
dlg_title( "@90996973" )
dlg_text( "@90996974" )
-- game.cash_usable_server ? 1: ½ÃÅ©·çÆ® °ü·Ã ³»¿ë »ç¿ë ¼*¹ö / 0: »ç¿ë ¾È ÇÏ´Â ¼*¹ö
if get_env("game.cash_usable_server") == 1 then
dlg_menu( "@90996975", "open_market( 'flat_sum_Creature_card' )" ) --Á¤¾×Á¦ ¼*¹ö
else
dlg_menu( "@90996975", "open_market( 'Creature_card' )" ) --ºÎºÐÀ¯·áÈ* ¼*¹ö
end
dlg_menu( "@90010002", '' )
dlg_show()
end
The forth link I found to the npc names was inside the NPCResources where it states a text_id and name_text_id, which correspond to the first added strings: "100011010" and "105011010", which say "GM Shop -" and "Creature Cards".
Now when I start the server and login to check the names it still says "empty string:100011010" and "empty string:105011010". So my question is, which arent those new entries read properly, or did I miss one? Basically its the same problem as with the teleporter, except I still got that confusing "set_npc_name( "@90100700" )" command, which seems to do nothing.
regard,
ranma.






