![]() |
| |||||||
| Vb Paylaşımlar Genel paylaşımlar.. |
| |
| |
![]() |
| | LinkBack | Konu Araçları | Stil |
| | #1 (permalink) |
| Oyuncu | Örnek Caps ![]() ![]() İlk Önce Inventory Okutalım Kod: Public Sub InventoryOku()
Dim tmpBase As Long, tmpLng1 As Long, tmpLng2 As Long, tmpLng3 As Long, tmpLng4 As Long
Dim lngItemID As Long, lngItemID_Ext As Long, lngItemNameLen As Long, AdrItemName As Long
Dim ItemNameB() As Byte, ItemName As String, i As Integer
tmpBase = LongOku(KO_PTRDLG)
tmpLng1 = LongOku(tmpBase + &H1A0) 'first pointer
Form1.ItemList.Clear
For i = 26 To 53 'read 0 to 41 inventory slots (0=earring, 1=helmet, 2=earring, 3=necklace, 4=pauldron ....14=first inventory slot)
tmpLng2 = LongOku(tmpLng1 + (&H134 + (4 * i))) 'inventory slot
tmpLng3 = LongOku(tmpLng2 + &H38) 'item id adress
tmpLng4 = LongOku(tmpLng2 + &H3C) 'item id_ext adress
lngItemID = LongOku(tmpLng3) 'item id value
lngItemID_Ext = LongOku(tmpLng4) 'item id_ext value
lngItemID = lngItemID + lngItemID_Ext 'real item id
lngItemNameLen = LongOku(tmpLng3 + &H10) 'n° characters in item name
AdrItemName = LongOku(tmpLng3 + &HC) 'item name adress
ItemName = "" 'reset ItemName variable
If lngItemNameLen > 0 Then
SıraByteOku AdrItemName, ItemNameB, lngItemNameLen 'get item name (byte array)
ItemName = StrConv(ItemNameB, vbUnicode) 'convert it to string
End If
If Form1.ItemList.ListCount <> "28" Then
Form1.ItemList.AddItem Form1.ItemList.ListCount + 1 & "-) " & ItemName
End If
Next
End Sub
Kod: Public Function ItemARA(item As String) As Boolean Dim i As Integer For i = 0 To Form1.ItemList.ListCount - 1 If InStr(1, Form1.ItemList.list(i), item) Then ItemARA = True Next End Function Kod: Sub PotBAS(PotID As String)
Paket PotID + KarakterID + KarakterID
End Sub
Sub AutoHP()
If Form1.chPot(0).Value = 1 And CharHP(0) < ((CharHP(1) * Form1.txLim(0).text) / 100) Then
If ItemARA("of favors") = True Then PotBAS "31031E7A0700": Exit Sub
If ItemARA("of grace") = True Then PotBAS "31031D7A0700": Exit Sub
If ItemARA("of love") = True Then PotBAS "31031C7A0700": Exit Sub
If ItemARA("of life") = True Then PotBAS "31031B7A0700": Exit Sub
If ItemARA("Holy water") = True Then PotBAS "31031A7A0700": Exit Sub
End If
End Sub
Sub AutoMP()
If Form1.chPot(1).Value = 1 And CharMP(0) < ((CharMP(1) * Form1.txLim(1).text) / 100) Then
If ItemARA("of Soul") = True Then PotBAS "3103247A0700": Exit Sub
If ItemARA("of Wisdom") = True Then PotBAS "3103237A0700": Exit Sub
If ItemARA("of Sagacity") = True Then PotBAS "3103227A0700": Exit Sub
If ItemARA("of Intelligence") = True Then PotBAS "3103217A0700": Exit Sub
If ItemARA("of Spirit") = True Then PotBAS "3103207A0700": Exit Sub
End If
End Sub
Kod: AutoHP AutoMp InventoryOku |
| | |
| 1 + Puan Aldı | thefailed (05-12-2011) |
| | #2 (permalink) |
| Kral |
Aynı Konu Var Kardeş Foruma Dikkatli Bak.
___[ ce'M oKaN adlı kişinin İmzası]_______________ [b] Teşekkürüde Esirgeme Artık.. GALATASARAY... Dağda üç Beş Koyun Sürüsü Tutturmuş Bir Kürdistan Türküsü Eline Almış Bayrak Diye Bir Masa örtüsü Satsan Beş Para Etmez Ne Dirisi Ne De ölüsü Soyu Soysuz Olan Sensin Toprak Senin Neyine İte Itlik Yapıp Kafa Tutma Beyine Anlasa Dediğimi Sokaktaki Köpek Ağlar Haline Duy Ulan Soysuz Ne Mutlu Türk'üm Diyene |
| | |
| | #5 (permalink) |
| GameMaster | öğrenecekler Zamanla Acele Etme ___[ RAZOR 1965 adlı kişinin İmzası]_______________ ![]() ![]() Msn Adresi: R4Z0R1965@hotmail.com İnternet Sitem: www.razor1965.tr.gg Server: Edana / Orc Job: Priest Pm: JohannyaLves Np: 115000 cLan: CantStop LeveL: 69 |
| | |
![]() |
| Etiket |
| kısa, or or, oto, pot, yapımı |
| Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
| Konu Araçları | |
| Stil | |
| |