مشاهدة النسخة كاملة : How to add New NPC - How to add item to any NPC
احمدسعيد
28-07-2012, 01:15 AM
http://i.epvpimg.com/Brnab.png
للاسف انا مش هعملو فيديو ولا صور :guilty_h4h: عشان ولاهى معنديش وقت
http://i.epvpimg.com/etxyc.png
أول حاجة هنحوط الـNPC فى الـDatabase
و دلوقتى نفتح الـSQL اكيد عارفينو XD
(ملحوظة: قبل منبدأ روح المكان العايز فيه الـNPC ...هكمل تحت)
http://i.epvpimg.com/etxyc.png
نفتح الـRefObjChar_
و نحوط الكود ده
18890 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 336860180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
الرقم "18891" احتمال يتغير عندك خليك حافظو أو خليك فاتح الـtable ديه
http://i.epvpimg.com/etxyc.png
و دلوقتى نفتح RefObjCommon_
1 41841 NPC_KABO xxx xxx SN_NPC_KABO xxx 0 1 1 2 2 0 5000 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 100 0 0 0 npc\npc\chinawoman_noblegirl_event.bsr xxx xxx xxx xxx 18890
شايفين الرقم "18890" الـ فى RefObChar_ شوف عندك الـRefObjChar_ الرقم ده لو متغير يبقا غير ده بردو
http://i.epvpimg.com/etxyc.png
كدا الـNPC تمام ناجى بقا للمكان بتاعو (يعنى انت عايزو فين بالظبط ؟) :clown(1):
ننزل تحت فى الـDataBase هتلاقى Tab_RefHive +Tab_RefNest + Tab_RefTactics
( ركز معاية هنا)
نفتح Tab_RefHive
ونحوط الكود ديه
1574 0 0 0 0 0 0 1 2 NPC TEST
الـ"1574" ممكن تغير عندك
http://i.epvpimg.com/etxyc.png
نفتح Tab_RefTactics
ونحوط الكود ديه
46071 41841 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 NPC_TEST
الـ"46071" ممكن تتغير بردو ((( "41841" ده رقم الـRefObjCommon_ عندى غيرو بالعندك )))
http://i.epvpimg.com/etxyc.png
نفتح الـ Tab_RefNest (( ديه بقا الـ فيها العك كلو))
36830 1574 46071 22475 837 475,725952 22 0 0 0 0 0 0 1 0 1 0
الـ "36830" ممكن تغير عندك (( "1574" الرقم ده بتاع Tab_RefHive حوط بتاعك مكانو))
((الـ "46071" الرقم ده بتاع Tab_RefTactics حوط بتاعك مكانو))
دلوقتى فاكر لما قولتلك روح للمكان الـ انت عايز الـNPC فيه اكيد روحت XDD
اكيد انت فاتح السيرفر و مستنى على نار ان الـNPC يشتغل
و انت وفاتح السرفر ادخل على الـSMC و روح عنىد SR_UserEdit
افتح أول tab اسمها Char Pos
اكتب اسم الـchar الـ فى المكان الـ انت عايزو ودوس على Query هتظهر ارقام
http://i.epvpimg.com/etxyc.png
نرجع للـ Tab_RefNest
nRegionDBID
22475
fLocalPosX
837
fLocalPosY
475,725952
fLocalPosZ
22
الـnRegionDBID اسمو فى الـSMC
RegionID
و الباقى هتفهمو انت لوحد PosX PosY PosZ شغل مخك :mf_prop:
Media now
chardata45000
1 41841 NPC_KABO xxx xxx SN_NPC_KABO xxx 0 1 1 2 2 0 5000 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 100 0 0 0 npc\npc\chinawoman_noblegirl_event.bsr xxx xxx xxx xxx 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 336860180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Textdata_Object
1 SN_NPC_KABO 0 0 0 0 0 0 Kabo^
كدا مبرووووووووووووووووووووووووك عليك الـNPC الجديد :111 (3):
تابع معاية.....
احمدسعيد
28-07-2012, 01:17 AM
محجوز لعمل "الـNPC يبيع Items"
احمدسعيد
28-07-2012, 01:18 AM
محجوز adding items to NPC
bigboss200
28-07-2012, 01:20 AM
احب ان اكون اول رد علي الموضوع الحيلو ده ِشكراً يا باشه علي مجهودك
:afro: :afro: :afro:
Akram^^SunSoon
28-07-2012, 01:32 AM
طب لو عاوز اسمى npc ؟
اعمل ايه ؟
GM Secret
28-07-2012, 01:34 AM
جميل بس تقريبا بتاعي أصهل وللا إيه ؟ :)
تقبل مروري
mats0o0o0
28-07-2012, 02:07 AM
يعنى مش محجوز على شان تكتب انى انا اللى عامل الموضوع ده اصلا فى موقع اجنبى ؟؟
RandyOrtan
28-07-2012, 02:08 AM
شكرا
احمدسعيد
28-07-2012, 11:27 AM
جميل بس تقريبا بتاعي أصهل وللا إيه ؟ :)
تقبل مروري
اسهل ؟
يعنى مش محجوز على شان تكتب انى انا اللى عامل الموضوع ده اصلا فى موقع اجنبى ؟؟
انت ايه؟:mellow:
شكرا
احمدسعيد
28-07-2012, 11:28 AM
طب لو عاوز اسمى npc ؟
اعمل ايه ؟
Textdata_Object
Kabo ده اسم الـNPC
[Dev] Arshivel
10-12-2012, 11:51 PM
على فكره ده مش كامل :):):)
SkyWaY
11-12-2012, 12:17 AM
http://i.epvpimg.com/Brnab.png
للاسف انا مش هعملو فيديو ولا صور :guilty_h4h: عشان ولاهى معنديش وقت
http://i.epvpimg.com/etxyc.png
أول حاجة هنحوط الـNPC فى الـDatabase
و دلوقتى نفتح الـSQL اكيد عارفينو XD
(ملحوظة: قبل منبدأ روح المكان العايز فيه الـNPC ...هكمل تحت)
http://i.epvpimg.com/etxyc.png
نفتح الـRefObjChar_
و نحوط الكود ده
18890 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 336860180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
الرقم "18891" احتمال يتغير عندك خليك حافظو أو خليك فاتح الـtable ديه
http://i.epvpimg.com/etxyc.png
و دلوقتى نفتح RefObjCommon_
1 41841 NPC_KABO xxx xxx SN_NPC_KABO xxx 0 1 1 2 2 0 5000 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 100 0 0 0 npc\npc\chinawoman_noblegirl_event.bsr xxx xxx xxx xxx 18890
شايفين الرقم "18890" الـ فى RefObChar_ شوف عندك الـRefObjChar_ الرقم ده لو متغير يبقا غير ده بردو
http://i.epvpimg.com/etxyc.png
كدا الـNPC تمام ناجى بقا للمكان بتاعو (يعنى انت عايزو فين بالظبط ؟) :clown(1):
ننزل تحت فى الـDataBase هتلاقى Tab_RefHive +Tab_RefNest + Tab_RefTactics
( ركز معاية هنا)
نفتح Tab_RefHive
ونحوط الكود ديه
1574 0 0 0 0 0 0 1 2 NPC TEST
الـ"1574" ممكن تغير عندك
http://i.epvpimg.com/etxyc.png
نفتح Tab_RefTactics
ونحوط الكود ديه
46071 41841 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 NPC_TEST
الـ"46071" ممكن تتغير بردو ((( "41841" ده رقم الـRefObjCommon_ عندى غيرو بالعندك )))
http://i.epvpimg.com/etxyc.png
نفتح الـ Tab_RefNest (( ديه بقا الـ فيها العك كلو))
36830 1574 46071 22475 837 475,725952 22 0 0 0 0 0 0 1 0 1 0
الـ "36830" ممكن تغير عندك (( "1574" الرقم ده بتاع Tab_RefHive حوط بتاعك مكانو))
((الـ "46071" الرقم ده بتاع Tab_RefTactics حوط بتاعك مكانو))
دلوقتى فاكر لما قولتلك روح للمكان الـ انت عايز الـNPC فيه اكيد روحت XDD
اكيد انت فاتح السيرفر و مستنى على نار ان الـNPC يشتغل
و انت وفاتح السرفر ادخل على الـSMC و روح عنىد SR_UserEdit
افتح أول tab اسمها Char Pos
اكتب اسم الـchar الـ فى المكان الـ انت عايزو ودوس على Query هتظهر ارقام
http://i.epvpimg.com/etxyc.png
نرجع للـ Tab_RefNest
nRegionDBID
22475
fLocalPosX
837
fLocalPosY
475,725952
fLocalPosZ
22
الـnRegionDBID اسمو فى الـSMC
RegionID
و الباقى هتفهمو انت لوحد PosX PosY PosZ شغل مخك :mf_prop:
Media now
chardata45000
1 41841 NPC_KABO xxx xxx SN_NPC_KABO xxx 0 1 1 2 2 0 5000 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 100 0 0 0 npc\npc\chinawoman_noblegirl_event.bsr xxx xxx xxx xxx 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 336860180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Textdata_Object
1 SN_NPC_KABO 0 0 0 0 0 0 Kabo^
كدا مبرووووووووووووووووووووووووك عليك الـNPC الجديد :111 (3):
تابع معاية.....
روعه وده كيورى لتكمله الموضوع علشان الى مش عاوز يخش يفحفر فى SQL xDDD
use [SRO_VT_SHARD]
DECLARE @CHARNAME VARCHAR (30)
DECLARE @NPCNAME VARCHAR (30)
DECLARE @ADDNEW VARCHAR (30)
DECLARE @GAMEWORDID INT
SET @CHARNAME = 'Skyway' --U Char Name
SET @NPCNAME = 'STATIC' --U NPC NAME
SET @GAMEWORDID = 1 --IMPORTANT! GET GAMEWORLD ID FROM THE LOCALY U WANT ADD THE NPC NORMAL CITYs = 1
SET @ADDNEW = 'NPC'
--
IF @ADDNEW = 'NPC' BEGIN
DECLARE @MAXLINK VARCHAR (30) = (SELECT MAX (ID) FROM _RefObjChar)+1
DECLARE @MAXCOMMONID VARCHAR (30) = (SELECT MAX (ID) FROM _RefObjCommon)+1
SET IDENTITY_INSERT _RefObjCommon ON
INSERT INTO _RefObjCommon (Service,ID,CodeName128,ObjName128,OrgObjCodeName1 28,NameStrID128,DescStrID128,CashItem,Bionic,TypeI D1,TypeID2,TypeID3,TypeID4,DecayTime,Country
,Rarity,CanTrade,CanSell,CanBuy,CanBorrow,CanDrop, CanPick,CanRepair,CanRevive,CanUse,CanThrow,Price, CostRepair,CostRevive,CostBorrow,KeepingFee,SellPr ice,ReqLevelType1,ReqLevel1,ReqLevelType2,ReqLevel 2,ReqLevelType3,ReqLevel3,ReqLevelType4,ReqLevel4, MaxContain,RegionID,Dir,OffsetX,OffsetY,OffsetZ,Sp eed1,Speed2,Scale,BCHeight,BCRadius
,EventID,AssocFileObj128,AssocFileDrop128,AssocFil eIcon128,AssocFile1_128,AssocFile2_128,Link) VALUES
(1,@MAXCOMMONID,'NPC_'+@NPCNAME,'xxx','xxx','SN_NP C_'+@NPCNAME,'xxx',0,1,1,2,2,0,5000,3,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,-1,0,-1,0,-1,0,-1,0,-1,0,0,0,0,0,0,0,100,0,0,0,'npc\npc\chinawoman_Nobl egirl_event.bsr','xxx','xxx','xxx','xxx',@MAXLINK)
SET IDENTITY_INSERT _RefObjCommon OFF
SET IDENTITY_INSERT _RefObjChar ON
INSERT INTO _RefObjChar (ID,Lvl,CharGender,MaxHP,MaxMP,ResistFrozen,Resist Frostbite,ResistBurn,ResistEShock,ResistPoison,Res istZombie,ResistSleep,ResistRoot,ResistSlow,Resist Fear
,ResistMyopia,ResistBlood,ResistStone,ResistDark,R esistStun,ResistDisea,ResistChaos,ResistCsePD,Resi stCseMD,ResistCseSTR,ResistCseINT,ResistCseHP,Resi stCseMP,Resist24,ResistBomb,Resist26
,Resist27,Resist28,Resist29,Resist30,Resist31,Resi st32,InventorySize,CanStore_TID1,CanStore_TID2,Can Store_TID3,CanStore_TID4,CanBeVehicle,CanControl,D amagePortion,MaxPassenger,AssocTactics,PD,MD,PAR,M AR,ER,BR,HR,CHR
,ExpToGive,CreepType,Knockdown,KO_RecoverTime,Defa ultSkill_1,DefaultSkill_2,DefaultSkill_3,DefaultSk ill_4,DefaultSkill_5,DefaultSkill_6,DefaultSkill_7 ,DefaultSkill_8,DefaultSkill_9,DefaultSkill_10,Tex tureType,Except_1
,Except_2,Except_3,Except_4,Except_5,Except_6,Exce pt_7,Except_8,Except_9,Except_10,Link) VALUES
(@MAXLINK,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,336860180,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0)
SET IDENTITY_INSERT _RefObjChar OFF
SET IDENTITY_INSERT _RefShop ON
DECLARE @ShopID VARCHAR (30) = (SELECT MAX (ID) FROM _RefShop)+1
INSERT INTO _RefShop (Service,Country,ID,CodeName128,Param1,Param1_Desc 128,Param2,Param2_Desc128,Param3,Param3_Desc128,Pa ram4,Param4_Desc128)
VALUES (1,15,@ShopID,'STORE_'+@NPCNAME,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
SET IDENTITY_INSERT _RefShop OFF
SET IDENTITY_INSERT _RefShopGroup ON
DECLARE @ShopGroupID VARCHAR (30) = (SELECT MAX (ID) FROM _RefShopGroup)+1
INSERT INTO _RefShopGroup (Service,Country,ID,CodeName128,RefNPCCodeName,Par am1,Param1_Desc128,Param2,Param2_Desc128,Param3,Pa ram3_Desc128,Param4,Param4_Desc128)
VALUES (1,15,@ShopGroupID,'GROUP_STORE_'+@NPCNAME,'NPC_'+ @NPCNAME,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
SET IDENTITY_INSERT _RefShopGroup OFF
SET IDENTITY_INSERT _RefShopItemGroup ON
DECLARE @ShopItemID VARCHAR (30) = (SELECT MAX (GROUPID) FROM _RefShopItemGroup)+1
INSERT INTO _RefShopItemGroup (Service,GroupID,CodeName128,StrID128_Group)
VALUES (1,@ShopItemID,'STORE_'+@NPCNAME+'_GROUP1','SN_STO RE_'+@NPCNAME+'_GROUP1')
SET IDENTITY_INSERT _RefShopItemGroup OFF
SET IDENTITY_INSERT _RefShopTab ON
DECLARE @ShopTabID VARCHAR (30)= (SELECT MAX (ID) FROM _RefShopTab)+1
INSERT INTO _RefShopTab (Service,Country,ID,CodeName128,RefTabGroupCodeNam e,StrID128_Tab)
VALUES (1,15,@ShopTabID,'STORE_'+@NPCNAME+'_TAB1','STORE_ '+@NPCNAME+'_GROUP1','SN_TAB_WEAPON')
SET IDENTITY_INSERT _RefShopTab OFF
SET IDENTITY_INSERT _RefShopTabGroup ON
DECLARE @ShopTabGroupID VARCHAR (30) = (SELECT MAX (ID) FROM _RefShopTabGroup)+1
INSERT INTO _RefShopTabGroup (Service,Country,ID,CodeName128,StrID128_Group)
VALUES (1,15,@ShopTabGroupID,'STORE_'+@NPCNAME+'_GROUP1', 'SN_STORE_'+@NPCNAME+'_GROUP1')
SET IDENTITY_INSERT _RefShopTabGroup OFF
INSERT INTO _RefMappingShopGroup VALUES (1,15,'GROUP_STORE_'+@NPCNAME,'STORE_'+@NPCNAME)
INSERT INTO _RefMappingShopWithTab VALUES (1,15,'STORE_'+@NPCNAME,'STORE_'+@NPCNAME+'_GROUP1 ')
DECLARE @TACTICSID INT SET @TACTICSID = (SELECT MAX (dwTacticsID) FROM Tab_RefTactics)+10
INSERT INTO Tab_RefTactics VALUES
(@TACTICSID,@MAXCOMMONID,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0 ,0,0,'NPC_'+@NPCNAME)
BEGIN
DECLARE @HIVEID INT SET @HIVEID = (SELECT MAX (dwHiveID) FROM Tab_RefHive)+1
INSERT INTO Tab_RefHive VALUES
(@HIVEID,0,0,0,0,0,0,@GAMEWORDID,2,'NPC_'+@NPCNAME )
END
BEGIN
DECLARE @REGION VARCHAR (30) SET @REGION = (SELECT (LatestRegion) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @POSX VARCHAR (30) SET @POSX = (SELECT (POSX) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @POSY VARCHAR (30) SET @POSY = (SELECT (POSY) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @POSZ VARCHAR (30) SET @POSZ = (SELECT (POSZ) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @NESTID INT SET @NESTID = (SELECT MAX (dwNestID) FROM Tab_RefNest)+1
INSERT INTO Tab_RefNest VALUES
(@NESTID,@HIVEID,@TACTICSID,@REGION,@POSX,@POSY,@P OSZ,0,0,0,0,0,0,1,0,1,0)
END
PRINT 'add this line to characterdata_45000 @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 '+@MAXCOMMONID+' '+'NPC_'+@NPCNAME+' xxx xxx '+'SN_NPC_'+@NPCNAME+' xxx 0 1 1 2 2 0 5000 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 100 0 0 0 npc\npc\chinawoman_Noblegirl_event.bsr xxx xxx xxx xxx 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 336860180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'
PRINT ''
PRINT 'Add this line to refshop.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+@SHOPID+' '+'STORE_'+@NPCNAME+' -1 xxx -1 xxx -1 xxx -1 xxx'
PRINT ''
PRINT 'Add this line to refshopgroup.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+@SHOPGROUPID+' '+'GROUP_STORE_'+@NPCNAME+' '+'NPC_'+@NPCNAME+' -1 xxx -1 xxx -1 xxx -1 xxx'
PRINT ''
PRINT 'Add this line to shopgroupdata.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 '+@SHOPITEMID+' '+'STORE_'+@NPCNAME+'_GROUP1 '+'SN_STORE_'+@NPCNAME+'_GROUP1'
PRINT ''
PRINT 'Add this line to refshoptab.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+@SHOPTABID+' '+'STORE_'+@NPCNAME+'_TAB1 '+'STORE_'+@NPCNAME+'_GROUP1 SN_TAB_WEAPONS'
PRINT ''
PRINT 'Add this line to refshoptabgroup.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+@SHOPTABGROUPID+' '+'STORE_'+@NPCNAME+'_GROUP1 '+'SN_STORE_'+@NPCNAME+'_GROUP1'
PRINT ''
PRINT 'Add this line to refmappingshopgroup.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+'GROUP_STORE_'+@NPCNAME+' '+'STORE_'+@NPCNAME
PRINT ''
PRINT 'Add this line to refmappingshopwithtab.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+'STORE_'+@NPCNAME+' '+'STORE_'+@NPCNAME+'_GROUP1'
PRINT ''
PRINT 'A New NPC Has ADD Succesfuly Restart U Server and Login in '+@CHARNAME
END
:scooter: :scooter: :scooter: :scooter:
elsakr
11-12-2012, 03:11 AM
السلام عليكم
الله ينور عليك بجد شرح جميل
بس سوال .. انا دلوقتي عيز اغير اسم npc موجود عندي ف السيرفر اغيرو ازاي .؟
ღ♥_iMoRy_♥ღ
11-12-2012, 05:03 AM
روعه وده كيورى لتكمله الموضوع علشان الى مش عاوز يخش يفحفر فى SQL xDDD
use [SRO_VT_SHARD]
DECLARE @CHARNAME VARCHAR (30)
DECLARE @NPCNAME VARCHAR (30)
DECLARE @ADDNEW VARCHAR (30)
DECLARE @GAMEWORDID INT
SET @CHARNAME = 'Skyway' --U Char Name
SET @NPCNAME = 'STATIC' --U NPC NAME
SET @GAMEWORDID = 1 --IMPORTANT! GET GAMEWORLD ID FROM THE LOCALY U WANT ADD THE NPC NORMAL CITYs = 1
SET @ADDNEW = 'NPC'
--
IF @ADDNEW = 'NPC' BEGIN
DECLARE @MAXLINK VARCHAR (30) = (SELECT MAX (ID) FROM _RefObjChar)+1
DECLARE @MAXCOMMONID VARCHAR (30) = (SELECT MAX (ID) FROM _RefObjCommon)+1
SET IDENTITY_INSERT _RefObjCommon ON
INSERT INTO _RefObjCommon (Service,ID,CodeName128,ObjName128,OrgObjCodeName1 28,NameStrID128,DescStrID128,CashItem,Bionic,TypeI D1,TypeID2,TypeID3,TypeID4,DecayTime,Country
,Rarity,CanTrade,CanSell,CanBuy,CanBorrow,CanDrop, CanPick,CanRepair,CanRevive,CanUse,CanThrow,Price, CostRepair,CostRevive,CostBorrow,KeepingFee,SellPr ice,ReqLevelType1,ReqLevel1,ReqLevelType2,ReqLevel 2,ReqLevelType3,ReqLevel3,ReqLevelType4,ReqLevel4, MaxContain,RegionID,Dir,OffsetX,OffsetY,OffsetZ,Sp eed1,Speed2,Scale,BCHeight,BCRadius
,EventID,AssocFileObj128,AssocFileDrop128,AssocFil eIcon128,AssocFile1_128,AssocFile2_128,Link) VALUES
(1,@MAXCOMMONID,'NPC_'+@NPCNAME,'xxx','xxx','SN_NP C_'+@NPCNAME,'xxx',0,1,1,2,2,0,5000,3,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,-1,0,-1,0,-1,0,-1,0,-1,0,0,0,0,0,0,0,100,0,0,0,'npc\npc\chinawoman_Nobl egirl_event.bsr','xxx','xxx','xxx','xxx',@MAXLINK)
SET IDENTITY_INSERT _RefObjCommon OFF
SET IDENTITY_INSERT _RefObjChar ON
INSERT INTO _RefObjChar (ID,Lvl,CharGender,MaxHP,MaxMP,ResistFrozen,Resist Frostbite,ResistBurn,ResistEShock,ResistPoison,Res istZombie,ResistSleep,ResistRoot,ResistSlow,Resist Fear
,ResistMyopia,ResistBlood,ResistStone,ResistDark,R esistStun,ResistDisea,ResistChaos,ResistCsePD,Resi stCseMD,ResistCseSTR,ResistCseINT,ResistCseHP,Resi stCseMP,Resist24,ResistBomb,Resist26
,Resist27,Resist28,Resist29,Resist30,Resist31,Resi st32,InventorySize,CanStore_TID1,CanStore_TID2,Can Store_TID3,CanStore_TID4,CanBeVehicle,CanControl,D amagePortion,MaxPassenger,AssocTactics,PD,MD,PAR,M AR,ER,BR,HR,CHR
,ExpToGive,CreepType,Knockdown,KO_RecoverTime,Defa ultSkill_1,DefaultSkill_2,DefaultSkill_3,DefaultSk ill_4,DefaultSkill_5,DefaultSkill_6,DefaultSkill_7 ,DefaultSkill_8,DefaultSkill_9,DefaultSkill_10,Tex tureType,Except_1
,Except_2,Except_3,Except_4,Except_5,Except_6,Exce pt_7,Except_8,Except_9,Except_10,Link) VALUES
(@MAXLINK,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,336860180,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0)
SET IDENTITY_INSERT _RefObjChar OFF
SET IDENTITY_INSERT _RefShop ON
DECLARE @ShopID VARCHAR (30) = (SELECT MAX (ID) FROM _RefShop)+1
INSERT INTO _RefShop (Service,Country,ID,CodeName128,Param1,Param1_Desc 128,Param2,Param2_Desc128,Param3,Param3_Desc128,Pa ram4,Param4_Desc128)
VALUES (1,15,@ShopID,'STORE_'+@NPCNAME,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
SET IDENTITY_INSERT _RefShop OFF
SET IDENTITY_INSERT _RefShopGroup ON
DECLARE @ShopGroupID VARCHAR (30) = (SELECT MAX (ID) FROM _RefShopGroup)+1
INSERT INTO _RefShopGroup (Service,Country,ID,CodeName128,RefNPCCodeName,Par am1,Param1_Desc128,Param2,Param2_Desc128,Param3,Pa ram3_Desc128,Param4,Param4_Desc128)
VALUES (1,15,@ShopGroupID,'GROUP_STORE_'+@NPCNAME,'NPC_'+ @NPCNAME,-1,'xxx',-1,'xxx',-1,'xxx',-1,'xxx')
SET IDENTITY_INSERT _RefShopGroup OFF
SET IDENTITY_INSERT _RefShopItemGroup ON
DECLARE @ShopItemID VARCHAR (30) = (SELECT MAX (GROUPID) FROM _RefShopItemGroup)+1
INSERT INTO _RefShopItemGroup (Service,GroupID,CodeName128,StrID128_Group)
VALUES (1,@ShopItemID,'STORE_'+@NPCNAME+'_GROUP1','SN_STO RE_'+@NPCNAME+'_GROUP1')
SET IDENTITY_INSERT _RefShopItemGroup OFF
SET IDENTITY_INSERT _RefShopTab ON
DECLARE @ShopTabID VARCHAR (30)= (SELECT MAX (ID) FROM _RefShopTab)+1
INSERT INTO _RefShopTab (Service,Country,ID,CodeName128,RefTabGroupCodeNam e,StrID128_Tab)
VALUES (1,15,@ShopTabID,'STORE_'+@NPCNAME+'_TAB1','STORE_ '+@NPCNAME+'_GROUP1','SN_TAB_WEAPON')
SET IDENTITY_INSERT _RefShopTab OFF
SET IDENTITY_INSERT _RefShopTabGroup ON
DECLARE @ShopTabGroupID VARCHAR (30) = (SELECT MAX (ID) FROM _RefShopTabGroup)+1
INSERT INTO _RefShopTabGroup (Service,Country,ID,CodeName128,StrID128_Group)
VALUES (1,15,@ShopTabGroupID,'STORE_'+@NPCNAME+'_GROUP1', 'SN_STORE_'+@NPCNAME+'_GROUP1')
SET IDENTITY_INSERT _RefShopTabGroup OFF
INSERT INTO _RefMappingShopGroup VALUES (1,15,'GROUP_STORE_'+@NPCNAME,'STORE_'+@NPCNAME)
INSERT INTO _RefMappingShopWithTab VALUES (1,15,'STORE_'+@NPCNAME,'STORE_'+@NPCNAME+'_GROUP1 ')
DECLARE @TACTICSID INT SET @TACTICSID = (SELECT MAX (dwTacticsID) FROM Tab_RefTactics)+10
INSERT INTO Tab_RefTactics VALUES
(@TACTICSID,@MAXCOMMONID,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0 ,0,0,'NPC_'+@NPCNAME)
BEGIN
DECLARE @HIVEID INT SET @HIVEID = (SELECT MAX (dwHiveID) FROM Tab_RefHive)+1
INSERT INTO Tab_RefHive VALUES
(@HIVEID,0,0,0,0,0,0,@GAMEWORDID,2,'NPC_'+@NPCNAME )
END
BEGIN
DECLARE @REGION VARCHAR (30) SET @REGION = (SELECT (LatestRegion) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @POSX VARCHAR (30) SET @POSX = (SELECT (POSX) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @POSY VARCHAR (30) SET @POSY = (SELECT (POSY) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @POSZ VARCHAR (30) SET @POSZ = (SELECT (POSZ) FROM _Char WHERE CharName16 = @CHARNAME)
DECLARE @NESTID INT SET @NESTID = (SELECT MAX (dwNestID) FROM Tab_RefNest)+1
INSERT INTO Tab_RefNest VALUES
(@NESTID,@HIVEID,@TACTICSID,@REGION,@POSX,@POSY,@P OSZ,0,0,0,0,0,0,1,0,1,0)
END
PRINT 'add this line to characterdata_45000 @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 '+@MAXCOMMONID+' '+'NPC_'+@NPCNAME+' xxx xxx '+'SN_NPC_'+@NPCNAME+' xxx 0 1 1 2 2 0 5000 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 -1 0 -1 0 -1 0 -1 0 0 0 0 0 0 0 100 0 0 0 npc\npc\chinawoman_Noblegirl_event.bsr xxx xxx xxx xxx 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 336860180 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'
PRINT ''
PRINT 'Add this line to refshop.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+@SHOPID+' '+'STORE_'+@NPCNAME+' -1 xxx -1 xxx -1 xxx -1 xxx'
PRINT ''
PRINT 'Add this line to refshopgroup.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+@SHOPGROUPID+' '+'GROUP_STORE_'+@NPCNAME+' '+'NPC_'+@NPCNAME+' -1 xxx -1 xxx -1 xxx -1 xxx'
PRINT ''
PRINT 'Add this line to shopgroupdata.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 '+@SHOPITEMID+' '+'STORE_'+@NPCNAME+'_GROUP1 '+'SN_STORE_'+@NPCNAME+'_GROUP1'
PRINT ''
PRINT 'Add this line to refshoptab.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+@SHOPTABID+' '+'STORE_'+@NPCNAME+'_TAB1 '+'STORE_'+@NPCNAME+'_GROUP1 SN_TAB_WEAPONS'
PRINT ''
PRINT 'Add this line to refshoptabgroup.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+@SHOPTABGROUPID+' '+'STORE_'+@NPCNAME+'_GROUP1 '+'SN_STORE_'+@NPCNAME+'_GROUP1'
PRINT ''
PRINT 'Add this line to refmappingshopgroup.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+'GROUP_STORE_'+@NPCNAME+' '+'STORE_'+@NPCNAME
PRINT ''
PRINT 'Add this line to refmappingshopwithtab.txt @ server_dep\silkroad\textdata'
PRINT ''
PRINT '1 15 '+'STORE_'+@NPCNAME+' '+'STORE_'+@NPCNAME+'_GROUP1'
PRINT ''
PRINT 'A New NPC Has ADD Succesfuly Restart U Server and Login in '+@CHARNAME
END
:scooter: :scooter: :scooter: :scooter:
يااااااااااااه مش عارف شوت الكيورى دة فين قبل كدة ^_~
بس تسلم انك جابتة من هناك علشان تساعد الناس :groupwave:
omarsasa201
11-12-2012, 09:35 AM
يعنى مش محجوز على شان تكتب انى انا اللى عامل الموضوع ده اصلا فى موقع اجنبى ؟؟
يا عم كتر خير الراجل انو جابلنا الموضوع :crazyeyes: كنت اسبقو انتا وجيبو
elfr3on2010
11-12-2012, 12:06 PM
اللة ينور عليك شرح رائع
elsakr
11-12-2012, 12:51 PM
يا جماعه محدش رد عليا يا جماعه
●♥ Marwan1337 ♥●
11-12-2012, 01:54 PM
يا جماعه محدش رد عليا يا جماعه
عــايـز حضــرتـكـ تغيــر أســمـ الــ npc اللـى عنــدكـ منــ textdata_object
ويــاريـت لـو عنــدكـ مشكلــة أعمــل موضــوع جديـــد و هنســـاعــدكـ أنـ شــاء الله .
elfr3on2010
02-02-2013, 06:15 AM
تسلم ياباشا
GoldMonkey
05-03-2013, 04:29 PM
هو في ايه انا جربت اعملو اكتر من مره
يارت اي مشرف يجلي شرح تاني
شكرا
BomBom
05-03-2013, 05:15 PM
ينقل لقسم شروحات السيرفرات الخاصه
ĴũŠţ ŘũĻèŠ
05-03-2013, 06:15 PM
شرح جميل بس انا حاسس انو ناقص :)
MissDooM
06-03-2013, 02:39 PM
مجهود رائع
Mahmoud Rashwan
10-03-2013, 06:27 AM
شرح جميل
abokhaly
18-03-2013, 12:20 PM
sry but this relase so bad have no thing to do just copy and paste and thies relase miss more of steps just re try to change it u can vist this link to know how u can get new NPC not like that and sry again thats truth
http://www.silkroad4arab.com/vb/showthread.php?t=474780
Dev] Arshivel] FTWWW xD
Spicoo
31-05-2013, 03:57 PM
تب انا عندي npc عاوز اضيف فيه wepon and set d13
:111 (19)::111 (19)::111 (19):
MyRȝturn
31-05-2013, 05:10 PM
تمــــــــــــامـ
تســـــــــــــلمـ
hafishardogh
02-06-2013, 12:47 PM
Your lover doesn't carry a Louis Vuitton Monogram Canvas or like that, rather, she wants everyone to be the boast of your girlfriend burgundy calfskin tote.,Most likely the biggest footwear trend hit the high street and trusted online stores last year, shoe hiking footwear were everywhere you appear team with florals, skinny jeans and just about anything..? Western riding boots are located in long and short kinds..The fast emerging China Wholesale Handbag manufacturers have learnt to use the right techniques and therefore are successfully replicating the white markings, stamps, and emblems color schemes and crafting of your original Louis Vuitton luggage..Outlet shop routinely have loads overstocked things and so as to market gross sales volume, they are very prone to promote their items located at lessen prices..This Louis bag may be for the lady who wants to stand out in a crowd and grow noticed as the fashion diva that jane is..They are indispensable if you wish to add a Western look for your outfit..
http://www.sattrarp.se/?q=node/197290
http://www.infinitiplanet.com/node/235319
http://discover2succeed.com/index.php?q=node/88673
http://www.reddmaze.com/blog/view/170850/loui-vioton-978-89
http://www.studio.life3000.ru/marken-taschen-910-08.html
http://kantauri.com/gurasoelkartea/blog/?q=node/317506
http://ch.shakuji.net/topic.php?id=146654&replies=1#post-157632
http://std.jcps.kh.edu.tw/parent/?q=node/68387
http://www.avtoportal09.ru/node/156152
http://naughtyandnicellc.com/?q=node/27550
http://cld.irker.com/?q=node/310093
http://pokercliff.com/members/vthrtfietatw/activity/
http://www.schooladmissionappeals.co.uk/BBpress/topic/louisvoiton-804-16?replies=1#post-178792
http://sunmetropolis.org/wp-content/plugins/bbpress/topic.php?id=56002&replies=1#post-56096
http://simplifide.com/drupal6/content/louisvuitoncom-190-41
http://www.coolcourthoustonvolleyball.com/designertaschen-071-35
http://www.marionetadigital.es/foro/topic.php?id=62949&replies=1#post-66918
http://www.10000articles.com/armani-taschen-698-74-142584.html
http://www.infinitiplanet.com/node/235300
http://forum.0-00.biz/topic/gabor-taschen-415-00?replies=1#post-48418
Related Articles http://liveguide.vijos.net/node/263443
http://naughtyandnicellc.com/?q=node/30239
http://bsesport.hu/?q=content/louie-vittan-548-69
iLead
21-03-2014, 01:09 PM
طب لو عاوز اسمى npc ؟
اعمل ايه ؟
من TextData_Object
Tigger
14-05-2014, 02:00 AM
تسلم :annoyed_h4h:
mahmoud1337
28-12-2014, 06:48 PM
thanks
Leadersystem
08-12-2016, 03:08 AM
(Peace ya man (Y
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions, Inc