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

NPC what attacks players

andu

Sold 649 scripts, 25 maps and 9 events!
Joined
Aug 7, 2009
Messages
978
Solutions
17
Reaction score
373
GitHub
olrios
Twitch
jamagowy
It's possible to make a NPCs who attacks peoples with outfit id xxx in area 4sqm from npc?
But other players without outfit xxx can buying items and normaly talk with him?
 
Yes of course it's possibly. I don't know whether can NPC attack in range 4sqm but it's likely :thumbup:

LUA:
getCreatureOutfit(cid)
 
Hmm...
@EDIT
Oh, sorry, it's not working.

work work :D
but with "1" not "true", i know that but NPC dont lose health

PHP:
<npc name="Donald" script="default.lua" attackable="1" walkinterval="2000" floorchange="0">
this NPC it's attackable but he don't lose... health

there is anyway how to fix this?
 
Back
Top