Look i found this one
elseif msgcontains(msg, 'slayer medal') then
selfSay('Voce tem os 50 Slayer Coins para comprar 1 Slayer Medal?')
talk_state = 14
talk_start = os.clock()
elseif talk_state == 14 and msgcontains(msg, 'yes') then
if getPlayerItemCount(cid,2157) >= 50 then
if...