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

Help with this NPC lines (LUA Code):

Nubaza

LUA Scripter
Joined
Jun 5, 2011
Messages
337
Solutions
1
Reaction score
23
Location
Chile
Hello! I have a problem :/

Code:
local this = getCreatureMaster(cid)
selfSay("Hello! You are full health!")
addEvent(doSetCreatureOutfit, 500, this, {lookType = 626}, 1000)
addEvent(doSetCreatureOutfit, 1000, this, {lookType = 627}, 1000)
addEvent(doSetCreatureOutfit, 1500, this, {lookType = 626}, 1000)
addEvent(doSetCreatureOutfit, 2000, this, {lookType = 181}, 1000)

With that code, the player will be change his outfit.. but i need this:

When the npc say Hello! You are full health! the NPC change his outfit with add event

I try with this line but don't work
Code:
addEvent(doSetCreatureOutfit, 1500, npc, {lookType = 626}, 1000)

Who can help me? D:
Thanks.
 
Back
Top