Bot Questions - Item usage action.. Quan Chi2 - Mon Sep 05, 2005 7:35 pm Post subject: Item usage action..
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...
xsp0rtsfanx - Mon Sep 05, 2005 9:36 pm Post subject:
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.
Cyan~Fire - Mon Sep 05, 2005 10:39 pm Post subject:
It won't be a keydown, it'll be an EVENT_PlayerWeapon.
xsp0rtsfanx - Mon Sep 05, 2005 11:11 pm Post subject:
i dont know that much c++ but i learned blitz basic so i did the command keydown . i didnt know that was the command so i should look into that Muskrat - Mon Sep 05, 2005 11:15 pm Post subject:
Or maybe (if you're using mervbot) look at the bot's source.
Quan Chi2 - Tue Sep 06, 2005 1:06 am Post subject:
EVENT_PlayerWeapon
In spawns.cpp eh...
k
Quan Chi2 - Tue Sep 06, 2005 3:28 am Post subject:
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
Muskrat - Tue Sep 06, 2005 3:17 pm Post subject:
Wouldnt it be...