• Welcome to Valhalla Legends Archive.
 

Sub argument dependency

Started by hismajesty, July 16, 2004, 04:47 PM

Previous topic - Next topic

hismajesty

I'm not sure how good that subject title was, oh well. :P

This is a general VB question but the example (and question) arises from a bot development issue. I have my sendpacket sub that has support for 8 protocols, and also takes an argument determing the winsock and packet to send. Right now I have an enumeration with about 82 packets in it (I did this because of a laziness issue - I didn't want to type the packet and liked having a list appear), they're all BNCS but I want to have an enumeration for other protocols such as BNLS and have a list of those packets. Would it be possible to have the third argument (packet id) show a list of packets based on the protocol seleceted in the first argument?

Edit:

Example:

SendPacket(BNCS, wSocket, SID_PING) would only show a list of BNCS packets when I got to typing in SID_PING, and the same for other protocols.

TIA

Maddox

asdf.

hismajesty