http://heavenswings.ace.st
Would you like to react to this message? Create an account in a few clicks or log in to continue.


http://heavenswings.ace.st Herkez Gelsin Bu Site Kapanacaktır!
 
AnasayfaAnasayfa  Latest imagesLatest images  Kayıt OlKayıt Ol  Giriş yapGiriş yap  

 

 [Guide] Unique "Spawn/Kill"-Notice Function

Aşağa gitmek 
YazarMesaj
carpediem
Admin
carpediem


Mesaj Sayısı : 236
Kayıt tarihi : 18/05/08
Nerden : São Paulo/Brasil

[Guide] Unique "Spawn/Kill"-Notice Function Empty
MesajKonu: [Guide] Unique "Spawn/Kill"-Notice Function   [Guide] Unique "Spawn/Kill"-Notice Function Icon_minitimeSalı Mayıs 20, 2008 9:01 am

[Guide] Unique "Spawn/Kill"-Notice Function
Add this to your modGamerServer.bas:


Code:
Public Function WriteUniqueComment(Kill As Boolean, PlayerName As String, MobID As String)

fData = "5830"
fData = fData & "0000"

If Kill = True Then
'Kill = True means, Unique got killed
fData = fData & "06"
Else
'Kill = False means, Unique spawned
fData = fData & "05"
End if

fData = fData & WordFromInteger(MobID)
fData = fData & "0000"

If Kill = True Then
'we need the name of the player who killed the unique
fData = fData & WordFromInteger(Len(PlayerName))
fData = fData & cv_HexFromString(PlayerName)
End if

pLen = (Len(fData) - Cool / 2
fData = WordFromInteger(pLen) & fData

For i = 1 To UBound(PlayerData)
If PlayerData(i).Ingame = True Then
frmMain.GameSocket(i).SendData cv_StringFromHex(fData)
End If
Next i

End Function



Examples how to use this:


Code:
Privat Sub YourButton_Click()

WriteUniqueComment False, 0, 2002 'Will result "Isyutaru has appeard in Karakoram"
'False = A Unique SPAWN,
'0 = No PlayerName needed on spawn ;-)
'2002 = MonsterID (Isyutaru)

End Sub




Code:
Privat Sub Your2ndButton_Click()

WriteUniqueComment True, TestName, 1954 'Will result "[TestName] killed [Tigergirl from Tigermountain]"
'True = A Unique KILL,
'TestName = PlayerName shown in the Message
'1954 = MonsterID (Tigergirl)

End Sub



If u use a REAL UniqueID like 2002 for Isy, the Client will add the information "[...from Katakoram]" automatically!!!.

If you write a "normal" ID like 1933 (Mangyang) the message will be "[<PlayerName>] killed [Mangyang]"
Sayfa başına dön Aşağa gitmek
https://worldhackteam.forumdizini.com
 
[Guide] Unique "Spawn/Kill"-Notice Function
Sayfa başına dön 
1 sayfadaki 1 sayfası
 Similar topics
-
» [Guide]All Unique Dead GM Command (Add to old command spawn)
» [Guide]All Unique Dead GM Command (Add to old command spawn)
» [Guide]New Dmg System
» [Guide] Weather-Function 4 VB
» [Guide]Skill upgrade

Bu forumun müsaadesi var:Bu forumdaki mesajlara cevap veremezsiniz
http://heavenswings.ace.st :: http://heavenswings.ace.st :: http://heavenswings.ace.st-
Buraya geçin: