• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Nowe efekty w cliencie

Seminari

Banned User
Joined
Dec 13, 2009
Messages
1,496
Reaction score
34
Location
Poland
Tworze nowe itemy i działają, tworzę nowe outfity i też działają, ale kurde dodałem 2 nowe efekty i nie działają?

Zmieniłem talkaction żeby nie blokował:

Code:
function onSay(cid, words, param, channel)
	param = tonumber(param)
	if(not param or param < 0 or param > CONST_ME_LAST+4) then
		doPlayerSendCancel(cid, "Numeric param may not be lower than 0 and higher than " .. CONST_ME_LAST+4 .. ".")
		return true
	end

	doSendMagicEffect(getCreaturePosition(cid), param)
	return true
end

I nie zwraca cancela, ale też nic się nie dzieje...?
 
Znalazł.

//edit

MAGIC_EFFECT_LAST

ale gdzie to jest? bo jak w libie zmieniłem by MAGIC_EFFECT_LAST = 72 to nie podziałało :(


// edit

znalazłem w tools.cpp i w const.h

do zamknięcia.
 
Last edited:
Musisz dodać do klienta, jak i do serwera. W const.h, jeśli się nie mylę - i raczej wszystko powinno obsłużyć. Do używania w LUA, też gdzieś w bibliotekach globalnych.
 
Back
Top