Hey,
I have NPC which 'have' missions for players, and this mission is bugged.. what is the problem?
I have NPC which 'have' missions for players, and this mission is bugged.. what is the problem?
Code:
if(msgcontains(msg, 'fourth')) then
selfSay('Hey, again you. This time i want to ask you for collect 100 blueberries. See, my sister really loves {blueberries}, and she is really sad last time. I hope that will make her little happy', cid)
talkState[talkUser] = 1
elseif(msgcontains(msg, 'blueberries') and talkState[talkUser] == 1) then
if (getPlayerStorageValue(cid,102) < 1) then
selfSay('Have you arleady 100 blueberries?.', cid)
else
if (getPlayerStorageValue(cid,103) > 0) then
selfSay('Sorry, but you arleady did this mission!', cid)
else
if(doPlayerRemoveItem(cid, item4, 100) == TRUE) then
setPlayerStorageValue(cid,103,1)
doPlayerAddExperience(cid,10000)
selfSay('Thanks for blueberries. (10000exp up)', cid)
else
selfSay('I need 100 blueberries.', cid)
end
end
end
return true
end
Code:
17:25 GM[1]: fourth
17:25 Gandalf: Hey, again you. This time i want to ask you for collect 100 blueberries. See, my sister really loves blueberries, and she is really sad last time. I hope that will make her little happy
17:25 GM [1]: blueberries
17:25 Gandalf: Have you arleady 100 blueberries?.
17:25 GM [1]: blueberries
17:25 Gandalf: Have you arleady 100 blueberries?.