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] GlobalChat-Function 4 VB

Aşağa gitmek 
YazarMesaj
carpediem
Admin
carpediem


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

[Guide] GlobalChat-Function 4 VB Empty
MesajKonu: [Guide] GlobalChat-Function 4 VB   [Guide] GlobalChat-Function 4 VB Icon_minitimeSalı Mayıs 20, 2008 9:03 am

[Guide] GlobalChat-Function 4 VB
Add this to your Char.ini

Code:
[item29]
type=ETC
ID=3851
amount=10


This gives you 10Unit GlobalChatting


Add this to your modGameServer.bas
This is the opCode:

Code:
Case "75BD" 'Global Chatting
SendMessage 6, PlayerData(index).Charname, Mid(dData, 23, (Len(dData) - 22)), True




Now my SendMessage-Function (usable for nearby ALL ChatTypes)


Code:
Public Function SendMessage(ChatType As Integer, Name As String, Message As String, MessageInUnicode As Boolean)

Dim HexMessage As String
Dim HexWithOhs As String

fData = "6736" & "0000"
fData = fData & "0" & ChatType
pLen = Len(Name)
If Not ChatType = 7 Then
fData = fData & WordFromInteger(pLen)
fData = fData & cv_HexFromString(Name)
End If
If MessageInUnicode = False Then
HexMessage = cv_HexFromString(Message)
For i = 1 To Len(HexMessage) Step 2
HexWithOhs = HexWithOhs & Mid(HexMessage, i, 2) & "00"
Next i
fData = fData & WordFromInteger(Len(Message))
fData = fData & HexWithOhs
Else
fData = fData & (WordFromInteger(Len(Message) / 4))
fData = fData & Message
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



Now you can use the GlobalChatting Item in your inventory. Have fun
Sayfa başına dön Aşağa gitmek
https://worldhackteam.forumdizini.com
 
[Guide] GlobalChat-Function 4 VB
Sayfa başına dön 
1 sayfadaki 1 sayfası
 Similar topics
-
» [Guide]New Dmg System
» [Guide] Weather-Function 4 VB
» [Guide]Skill upgrade
» [Guide] Exchange-Function 4 VB
» [Guide] Party-Function 4 VB

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: