Damon
Check my status to contact me :)
Hey there,
I want this npc to not only add my player experience, but also give him item xy(so i can choose which reward item is):
I want this npc to not only add my player experience, but also give him item xy(so i can choose which reward item is):
Code:
if(msgcontains(msg, 'Aldurian Forest')) then
selfSay('Please bring me 10 "meat"', cid)
talkState[talkUser] = 1
elseif(msgcontains(msg, 'meat') and talkState[talkUser] == 1) then
if (getPlayerStorageValue(cid,100) > 0) then
selfSay('You finished this mission.', cid)
else
if(doPlayerRemoveItem(cid, 2666, 10) == TRUE) then
setPlayerStorageValue(cid,100,1)
doPlayerAddExperience(cid,1000)
selfSay('Thank you! Here is your key! (you received 1000 points of experience)', cid)
else
selfSay('You must have more items.Get me some meat, Rapido!', cid)
end
end
return true
end