Hello comunity,
I have a problem,i created a quest that i need to check a specific bType from affect table player->affect in the bType column,i`m using mysql_querry if u check this spiler:
local efect
efect = mysql_query("SELECT bType from player.affect WHERE dwPID='"..pc.get_player_id().."' ORDER BY bType='512' desc,bType LIMIT 1" )
the problem is that i cant use a IF statement in quest to check if bType 512 is on the player 512 is this item 71094 i tryed like this to check if player has that affect value applied on him with this
Code:
if efect == 512 then
do stuff
else
do stuff
end
but is not working,and in affect table the bType is there from 71094 item.
Anyone can help me?
UP
anyone?