wc3ft with bots - fix
Posted: Sat Dec 30, 2006 3:51 pm
[FOR ADMINS]Before thinking about deleting, i want to say that i searched a day for how to do this, and i finally got it... by myself (my coding is close to 0) and i tought other people might need this too.
FOR VERSION 2.3.2, if you want bot_buy_item 0 (bots not allowed to buy items), it doesn't work: you have to search events.inl for this:
and replace it with this:
then recompile (guess u already knew that... and u got it.
If you want to disable the bot's ultimates post here, if the topic still exists
P.S.: not sure if i should post here... anyway
FOR VERSION 2.3.2, if you want bot_buy_item 0 (bots not allowed to buy items), it doesn't work: you have to search events.inl for this:
Code: Select all
if(is_user_bot(id)){
new Float:randomnumber = random_float(0.0,1.0)
if (randomnumber <= iCvar[FT_BOT_BUY_ITEM]){
new num = random_num(1,2)
if (num == 1)
_menu_Shopmenu_One(id, random_num(0,8))
else
_menu_Shopmenu_Two(id, random_num(0,8))
}
if (randomnumber <= 0.06){
p_data[id][P_XP]=xplevel[floatround(random_float(0.0,3.16)*random_float(0.0,3.16))]
p_data[id][P_RACE] = random_num(1,iCvar[FT_RACES])
}
}
Code: Select all
// if(is_user_bot(id)){
// new Float:randomnumber = random_float(0.0,1.0)
// if (randomnumber <= iCvar[FT_BOT_BUY_ITEM]){
// new num = random_num(1,2)
// if (num == 1)
// _menu_Shopmenu_One(id, random_num(0,8))
// else
// _menu_Shopmenu_Two(id, random_num(0,8))
// }
// if (randomnumber <= 0.06){
// //p_data[id][P_XP]=xplevel[floatround(random_float(0.0,3.16)*random_float(0.0,3.16))]
// p_data[id][P_RACE] = random_num(1,iCvar[FT_RACES])
// }
// }
Code: Select all
amxxpc warcraft3FT.sma
If you want to disable the bot's ultimates post here, if the topic still exists

P.S.: not sure if i should post here... anyway