Advertisement
slavi-dodo

getThisMonsterOnThisPlayer

Nov 25th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. function getThisMonsterOnThisPlayer(playerUid, targetUid)
  2.     local player = Player(playerUid)
  3.     local guid = player:getGuid()
  4.     local checkQuery = db.storeQuery('SELECT `monsterUID` FROM '..dBNAmE..'.`players_lasthits` WHERE `id` = '..guid..';')
  5.                        
  6.     local mUid = result.getDataInt(checkQuery, "monsterUID")
  7.     if mUid == targetUid then
  8.         result.free()  
  9.         return true
  10.     end
  11.     result.free()
  12.     return false
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement