SkiZo Posted August 4, 2017 Share Posted August 4, 2017 (edited) Hello, so i'm trying to make Bot kills set +1 only if skin is 107 or 108 addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function ( killer ) addPlayerBossKills ( killer ) end ) So .. How i can do that ??! i have something maybe can help --# THIS IS NOT TESTED addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function ( killer ) -- local id = getElementModel ( --[[ i don't know what bot is exactly]] ) local id = getElementModel ( Bot ) if id == 107 or id == 108 then addPlayerBossKills ( killer ) end end ) #EDIT .. change id to 107 & 108 Edited August 4, 2017 by Legend<3 Link to comment
NeXuS™ Posted August 4, 2017 Share Posted August 4, 2017 Next time use the Slothbot's WIKI Page, it'll help a lot. Quote The source of this event is the Bot that died addEvent("onBotWasted", true) addEventHandler("onBotWasted", root, function(killer) if getElementModel(source) == 180 or getElementModel(source) == 181 then addPlayerBossKills(killer) end end) Try this. 1 Link to comment
SkiZo Posted August 4, 2017 Author Share Posted August 4, 2017 Just now, NeXuS™ said: Next time use the Slothbot's WIKI Page, it'll help a lot. --- # i already did ! addEvent("onBotWasted", true) addEventHandler("onBotWasted", root, function(killer) if getElementModel(source) == 180 or getElementModel(source) == 181 then addPlayerBossKills(killer) end end) Try this. Thank you a lot... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now