• 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!

Skrypt do NPC

Erevius

It Was A Good Day
Joined
Feb 12, 2010
Messages
157
Reaction score
7
Location
Poland/Olsztyn
Mam silnik TFS 0.3.6 i chcę zrobić, że gdy player się nie pożegna(onWalkAway), wtedy npc zabierze mu 20 hp. Z góry dzięki!

#Down
Po co te zbędne posty? Nie pomagasz to się nie nabijaj postów...
 
Last edited:
Code:
function creatureDisappearCallback(cid)
	if(not npcHandler:isFocused(cid)) then
		return false
	end

	doTargetCombatHealth(getNpcId(), cid, COMBAT_PHYSICAL, -20, -20, CONST_ME_POFF)
	return true
end
npcHandler:setCallback(CALLBACK_CREATURE_DISAPPEAR, creatureDisappearCallback)

gl- wklej do każdego npc, którego chcesz, a i używa npcsystemu. aha, najlepiej też do default.lua, jeżeli chcesz (prawie) do wszystkich.



PS.
30 sekund zajęło mi napisanie tego skryptu, więc następnym razem pomyśl i poszukaj, bez pierdolenia.
 
Back
Top