17 Mayıs 2009 Pazar

Bytype & Evt ilişkisi %100 ( 1 Zone 100 Farklı NPC )

İlk önce bize lazım olan DB'mizde EVENT_TRIGGER tablosu.

Click this bar to view the full image.
Click the image to open in full size.

nIndex = Önemsiz
bNpcType = K_NPC [byType] değeri
sNpcID = K_NPCPOS [TrapNumber] Değeri
nTriggerNum = Evt kodlamasında kullancağımız değer.

Örnek;

Kod:
K_NPC için kodumuz; ( Kırmızı olan, EVENT_TRIGGER tablosundaki bNpcType değeri )
Insert Into [K_NPC] Values (15591,[Quest] Moradon,2050,100,0,0,1,0,28,1,1,1,0,90,0,0,100000,0,0,15000,497,497,0,1500,0,0,1000,0,0,0,255,255,255,255,255,255,255,200,30,35,35,0,0,1,1,0)
Kod:
K_NPCPOS için kodumuz; ( Kırmızı olan, EVENT_TRIGGER tablosundaki sNpcID değeri )
Insert Into [K_NPCPOS] values (21,15591,100,0,0,0,1,299,330,299,330,299,330,299,330,1,10000,0,0,NULL)

Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

0 yorum: on "Bytype & Evt ilişkisi %100 ( 1 Zone 100 Farklı NPC )"

Yorum Gönder