• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[8.54][NPC] Funkcja do zmiany powitania NPC

Status
Not open for further replies.

Erevius

It Was A Good Day
Joined
Feb 12, 2010
Messages
157
Reaction score
7
Location
Poland/Olsztyn
Jak w temacie, potrzebuje funkcji lua która zmieni mi tekst powitania NPC (np.: gdy mamy 1lvl to NPC wita nas "Czesc mlodzeńcze", a jak 8lvl "Witaj panie"). Podajcie mi ową funkcję lub skrypt NPC ktory to stosuje... REPP

#Edit
Próbowałem już to przerobić. Udało mi się to lecz:
1. Po ustawionym tekscie i warunku w "function greetCallback(cid)", NPC wypowiedział to co miał i mnie olewał.
2. Pod tym wstawiłem funkcję "function creatureSayCallback(cid, type, msg)", i NPC jej nie czytał...

Ale dzięki za chęci!
 
Last edited:
A takie coś:
Code:
function greetCallback(cid)
	if getPlayerLevel(cid) < 8 then
		selfSay('Czesc mlodziencze.', cid)
	else
		selfSay('Witaj panie.', cid)
	end

	return true
end
npcHandler:setCallback(CALLBACK_GREET, greetCallback)
 
Status
Not open for further replies.
Back
Top