Witam chodzi mi o to że np oddaje item barbarian outfit np i Ajax daje mi axe ale jak zrobić żeby trzeba było odczekać xx czasu np 15 min inaczej pisze że Sorry ale odwiedź mnie za 15 min.
if msgcontains(msg, "lizard leather") and getPlayerStorageValue(cid, 302) == 34 then
if getPlayerItemCount(cid,5876) >= 50 then
npcHandler:say("You bring 50 lizard leather?", cid)
setPlayerStorageValue(cid, 302, 35)
else
npcHandler:say("Sorry, but You don\'t have lizard leathers !", cid)
setPlayerStorageValue(cid, 302, 34)
end
end
talkState[talkUser] = 18
if msgcontains(msg, "yes") and getPlayerStorageValue(cid, 302) == 35 and talkState[talkUser] == 18 then
if doPlayerRemoveItem(cid,5876,50) then
npcHandler:say("Ah! All stuff there. I will start making axes now. Come later and ask me for axe.", cid)
setPlayerStorageValue(cid, 302, 36)
end
end
talkState[talkUser] = 19
Tutaj przydała by się jakaś blokada na pisanie właśnie tego axe nie wiem jak to zrobić może dodać
pod yes osobnego storage który dostanie się po 15 minutach? Tylko pytanie jak
if msgcontains(msg, "axe") and getPlayerStorageValue(cid, 302) == 36 and talkState[talkUser] == 19 then
npcHandler:say("Axe is done! For you. Take. Wear like me.", cid)
doSendMagicEffect(getCreaturePosition(cid), 13)
setPlayerStorageValue(cid, 302, 37)
doPlayerAddOutfit(cid, 143, 1)
doPlayerAddOutfit(cid, 147, 1)
talkState[talkUser] = 20