Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - riffruff

Pages: 1 ... 3 4 [5]
61
Scripting / PCmds Suggestions
« on: December 08, 2008, 06:18:33 PM »
Quote from: Shadow
If anyone has a "bot command" they do not want to have a trigger, post here and I will try my best to script it so it requires no trigger.
You say that like it's hard...

Code: [Select]
Sub Event_UserTalk(Username, Flags, Message, Ping)
  if left(lcase(message), 4) = "ping" then
    Command BotVars.Username, "//ping " & Username, True
  end if
end sub

Pretty easy to do with any command!

62
Fail Bot / InterBot protocol
« on: November 22, 2008, 04:26:47 PM »

bla...didn't see 2nd page.

63
Fail Bot / InterBot protocol
« on: November 15, 2008, 09:27:32 PM »
Did you ever get the VPS and host this?

I have a VPS if you'd like to use it...I can create you an account for you.  It's Linux -- not Windows, if you care.

64
Plugins and Add-Ons / Error with Vector's Clan Info Script
« on: November 15, 2008, 08:04:42 PM »
Code: [Select]
cmd = Split(Mid(Lcase(Message), Len(BotVars.Trigger) + 1), " ")Wouldn't that line make it error every time anyone says something, when they have over 10 access and have no space in the message...

65
Xbox / Gears of War 2
« on: November 15, 2008, 05:24:20 PM »
Using the same weapon get boring...Having a large choice keeps the variety in the game up..

66
Project Neglected Fury / PNF Suggestions
« on: November 15, 2008, 03:43:41 PM »
Well I typed the code wrong anyways -- so if you copied exactly what I did, it won't work...I forgot an argument in one of the sub routines..

Anyways, it's not that hard to integrate this in...I already did one entire command -- all you have to do is create the others..

67
Xbox / Gears of War 2
« on: November 15, 2008, 03:18:49 PM »
I haven't gone online...but in the campain, there are literally like 15 weapon choices throughout the entire game..

68
Project Neglected Fury / PNF Suggestions
« on: November 15, 2008, 03:15:16 PM »
Quote from: Shadow
Also, the code will be cleaned up before final release.
You should write the code as best you can once, and test it as much as you can...You shouldn't have to "clean it up" unless there are bugs with it...

Also, on your codebox comment, most people use Internet Explorer, and people can't copy and paste from IE when someone uses codeboxes -- it only works with normal code tags.  You won't get me to use a codebox without editing my post unless it's something really long.

69
StealthBot / Stealthbot 3.0
« on: November 15, 2008, 11:42:20 AM »
Don't get your hopes up...Don't expect this for at least a year...Most likely 2 or 3.

70
Project Neglected Fury / PNF Suggestions
« on: November 15, 2008, 11:05:25 AM »
Looking at your code, if you plan to have multiple people working on this, you should better organize how commands are processed.

To make things easier, everyone should create their own functions/subs, and nobody should be forced to edit the "main", built in subs.
For example, command processing, I would do like this..

[div class='codetop']CODE[/div][div class='codemain' style='height:200px;white-space:pre;overflow:auto']'// Access Requirements
PNF_Lockdown_CMD_Access = 90


Sub PNF_Commands(Username, Flags, Message, Ping, From)
  Select Case LCase(Message)
   Case "?lockdown": PNF_Lockdown_CMD Username, Message, From
  End Select
End Sub

Sub PNF_Lockdown_CMD(Username, From)

  GetDBEntry Username, uAccess, uFlags

  If uAccess < PNF_Lockdown_CMD_Access Then
   Exit Sub
  End If

  If InStr(Message, " ") > 0 Then
   Arg = Split(Message, " ", 2)(1)
   Select Case LCase(Arg)
     Case "on":  SetSetting "PNF", "Lockdown", True, "", True
              DSP From, "[PNF] Lockdown Enabled", Username, vbGreen
     Case "off": SetSetting "PNF", "Lockdown", False, "", True
              DSP From, "[PNF] Lockdown Disabled", Username, vbRed
   End Select
  Else
   If GetSetting("PNF", "Lockdown") Then
     DSP From, "[PNF] Lockdown is active.", Username, vbGreen
   Else
     DSP From, "[PNF] Lockdown is disbabled.", Username, vbRed
   End If
  End If
End Sub


Sub PNF_Event_UserTalk(Username, Flags, Message, Ping)
  PNF_Commands Username, Flags, Message, Ping, 3
End Sub[/div]

This makes it VERY easy to add a new command.  A person writes their sub routine, and creates a simple call to their sub routine within the commands main routine.
This isolates all code created by everyone, so errors can easily be found.  If a single sub routine is having problems, that sub routine can be disabled.

71
Xbox / Gears of War 2
« on: November 15, 2008, 10:44:55 AM »
The choice of weapons in gears 2 sucks...There are not many to choose from..

Pages: 1 ... 3 4 [5]