Hello. I created a lua script for buying weapons and ammunition. Problem is that, if player ask for crossbow he gets a bow, because word crossbow contains a 'bow'. Is there any way to check only for full (exact) word and not just a part of it ?
Here is my code:
Full script: http://pastebin.com/3d8UbDb4
Here is my code:
Code:
shopModule:addBuyableItem({'bow'}, 2456, 400, 1, 'Bow')
shopModule:addBuyableItem({'crossbow'}, 2455, 400, 1, 'Crossbow')
Full script: http://pastebin.com/3d8UbDb4