Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Codes

 
Post new topic   Reply to topic Printable version
 View previous topic  1v1 Dueling Bot Post :: Post Give multi to ship 5  View next topic  
Author Message
Oer The Dragon
Novice


Age:37
Gender:Gender:Male
Joined: Feb 20 2005
Posts: 95
Location: Norway-Bergen: The city between the seven mountains
Offline

PostPosted: Sun Jul 03, 2005 3:26 pm    Post subject: Codes Reply to topic Reply with quote

how do you know what to write to make a plugin do something? like is there a list of commands to write or do you have to figure it out yourself (guessing) lol
_________________
Back to top
View users profile Send private message Add User to Ignore List Send email
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sun Jul 03, 2005 3:32 pm    Post subject: Reply to topic Reply with quote

if you go through all the #includes all the functions are in there. The rest is just basic syntax.

for example in spawns.h we see the headers for the chat functions:

Code: Show/Hide
void sendPrivate(Player *player, char *msg);
void sendPrivate(Player *player, BYTE snd, char *msg);

void sendTeam(char *msg);
void sendTeam(BYTE snd, char *msg);

void sendTeamPrivate(Uint16 team, char *msg);
void sendTeamPrivate(Uint16 team, BYTE snd, char *msg);

void sendPublic(char *msg);
void sendPublic(BYTE snd, char *msg);

void sendPublicMacro(char *msg);
void sendPublicMacro(BYTE snd, char *msg);

void sendChannel(char *msg);         // #;Message
void sendRemotePrivate(char *msg);      // :Name:Messsage
void sendRemotePrivate(char *name, char *msg);


so if we wanted to send a public message we could just call sendPublic with a char* and it would send it.

so like

char* helloMessage = "hello";
sendPublic(helloMessage);

or simply

sendPublic("hello");
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Assassin2684
Server Help Squatter


Age:34
Gender:Not sure
Joined: Jul 27 2004
Posts: 990
Location: Florida
Offline

PostPosted: Sun Jul 03, 2005 4:26 pm    Post subject: Reply to topic Reply with quote

Ya like with me learning C++ I was wondering the same thing. I think we get this stuff in the tutorial on http://catid.ssihosting.com/
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Oer The Dragon
Novice


Age:37
Gender:Gender:Male
Joined: Feb 20 2005
Posts: 95
Location: Norway-Bergen: The city between the seven mountains
Offline

PostPosted: Mon Jul 04, 2005 2:27 am    Post subject: Reply to topic Reply with quote

Quote:
if you go through all the #includes all the functions are in there. The rest is just basic syntax.


Thanks icon_biggrin.gif, didn't know that
Back to top
View users profile Send private message Add User to Ignore List Send email
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 17 page(s) served in previous 5 minutes.

phpBB Created this page in 0.463709 seconds : 28 queries executed (94.8%): GZIP compression disabled