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
Item usage action..

 
Post new topic   Reply to topic Printable version
 View previous topic  Chat Post :: Post Bot sends msg to Chat channel  View next topic  
Author Message
Quan Chi2
Member of "Sexy Teenagers that Code" Group
Member of


Age:34
Gender:Gender:Male
Joined: Mar 25 2005
Posts: 860
Location: NYC
Offline

PostPosted: Mon Sep 05, 2005 7:35 pm    Post subject: Item usage action.. Reply to topic Reply with quote

I've seen this before, where when someone tries to use a thor, and they get a ship engine shutdown and an item.. I want to do this for an effect I plan to execute...

Heres the bottom line.. I want to make a plugin that does this.. for merv, that is..

How would I do that..(I know it may be newbish, but questions got me to make nice things later on)?

Thanks in advanced...
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
xsp0rtsfanx
Seasoned Helper


Age:36
Gender:Gender:Male
Joined: Dec 27 2004
Posts: 168
Location: California
Offline

PostPosted: Mon Sep 05, 2005 9:36 pm    Post subject: Reply to topic Reply with quote

ok i cant code to save my life but my guess is something like where bot checks for a keydown on f6 it pms the person *prize #14 (for engine shutdown) and then random a prize from 1 to 28.. although thats just a guess thats what i think it should look like.
Back to top
View users profile Send private message Add User to Ignore List MSN Messenger
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon Sep 05, 2005 10:39 pm    Post subject: Reply to topic Reply with quote

It won't be a keydown, it'll be an EVENT_PlayerWeapon.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
xsp0rtsfanx
Seasoned Helper


Age:36
Gender:Gender:Male
Joined: Dec 27 2004
Posts: 168
Location: California
Offline

PostPosted: Mon Sep 05, 2005 11:11 pm    Post subject: Reply to topic Reply with quote

i dont know that much c++ but i learned blitz basic so i did the command keydown tongue.gif. i didnt know that was the command so i should look into that icon_smile.gif
Back to top
View users profile Send private message Add User to Ignore List MSN Messenger
Muskrat
Server Help Squatter


Age:38
Joined: Aug 24 2004
Posts: 829
Location: Swamp
Offline

PostPosted: Mon Sep 05, 2005 11:15 pm    Post subject: Reply to topic Reply with quote

Or maybe (if you're using mervbot) look at the bot's source.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Quan Chi2
Member of "Sexy Teenagers that Code" Group
Member of


Age:34
Gender:Gender:Male
Joined: Mar 25 2005
Posts: 860
Location: NYC
Offline

PostPosted: Tue Sep 06, 2005 1:06 am    Post subject: Reply to topic Reply with quote

EVENT_PlayerWeapon
In spawns.cpp eh...

k
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Quan Chi2
Member of "Sexy Teenagers that Code" Group
Member of


Age:34
Gender:Gender:Male
Joined: Mar 25 2005
Posts: 860
Location: NYC
Offline

PostPosted: Tue Sep 06, 2005 3:28 am    Post subject: Reply to topic Reply with quote

What would I put after this...?

case EVENT_PlayerWeapon:
{
Player *p = (Player*)event.p[0];
weaponInfo wi;
wi.n = *(Uint16*)&event.p[1];
}
break;

Mind you, I want to make it on DECOY usage... which is F5(default key)..
What would I put, and where would I put the sendPrivate message...

Thanks
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Muskrat
Server Help Squatter


Age:38
Joined: Aug 24 2004
Posts: 829
Location: Swamp
Offline

PostPosted: Tue Sep 06, 2005 3:17 pm    Post subject: Reply to topic Reply with quote

Wouldnt it be...
Code: Show/Hide

   case EVENT_PlayerWeapon:
      {
         Player *p = (Player*)event.p[0];
         weaponInfo wi;
         wi.n = *(Uint16*)&event.p[1];

         if(wi.type == PROJ_Decoy)
            sendPrivate("BlahBlah");
      }
      break;
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Quan Chi2
Member of "Sexy Teenagers that Code" Group
Member of


Age:34
Gender:Gender:Male
Joined: Mar 25 2005
Posts: 860
Location: NYC
Offline

PostPosted: Wed Sep 07, 2005 12:10 pm    Post subject: Reply to topic Reply with quote

awesome

thank you very much, sir
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
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: 172 page(s) served in previous 5 minutes.

phpBB Created this page in 0.453099 seconds : 33 queries executed (94.1%): GZIP compression disabled