Glowie sie nad tym jak zrobic zmieniajacy sie message_greet, farewell itd. w zaleznosci od np. storage, moze ktos wie jak sobie z tym poradzic
Tym sposobem:
Wywala blad:Cytuj:
if(getPlayerStorageValue(cid, first) == 0) then
npcHandler:setMessage(MESSAGE_GREET, "xxx")
talkState[talkUser] = 1
setPlayerStorageValue(cid, first, 1)
else
npcHandler:setMessage(MESSAGE_GREET, "xxy")
talkState[talkUser] = 1
end
@downCytuj:
table index is nil
Kod:data/lib/npc.lua:54: attempt to index local 'message' <a nil value>