function onStepIn( cid , item , pos , fromPos )
if isPlayer( cid ) then
pos = getThingPos( cid )
if( first )then
doSendMagicEffect( pos , CONST_ME_FIREWORK_BLUE )
doCreatureSay( cid , 'Welcome back, little hero!' , TALKTYPE_ORANGE_1 )
elseif( second ) then
doSendMagicEffect( pos , CONST_ME_FIREWORK_YELLOW )
doCreatureSay( cid , 'Congratulations, brave warrior!' , TALKTYPE_ORANGE_1 )
else
doSendMagicEffect( pos , CONST_ME_FIREWORK_RED )
doCreatureSay( cid , 'Respect and honour to you, champion!' , TALKTYPE_ORANGE_1 )
end
end
end