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

[Script] Please?

God Pollito

New Member
Joined
Dec 6, 2010
Messages
19
Reaction score
0
Anyone Can Make Me Script That When Player Steps On Item With X Id It Makes Him Walk 1 Step TO the South And sets Him An Outfit With X Colors?! Please Ill Rep++ Him


Thanks
 
Last edited:
REP ++ PLEASE !!

TAG:

<movevent type="StepIn" itemid="xxxx" event="script" value="filename.lua"/>

xxxx = tile id
Lua:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)

	if not isPlayer(cid) then
		return true
	end
		local outfit = {lookType = 266, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}
		doMoveCreature(cid, SOUTH)
		doCreatureChangeOutfit(cid, outfit) -- or doSetCreatureOutfit(cid, outfit, -1) with this the player cant change the outfit
 return true
end
 
Let Me Test Anyways Here Is Your Rep :)

Code:
Thanks for adding reputation to this user. May you be lucky enough to receive the same Reputation back in turn.
 
Lua:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
 
	if not isPlayer(cid) then
		return true
	end
		local outfit = {lookType = 0, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}

				if getPlayerSex(cid) == 1 then
				outfit.lookType = 266
				else
				outfit.lookType = 266
				end

		doMoveCreature(cid, SOUTH)
		doCreatureChangeOutfit(cid, outfit) -- or doSetCreatureOutfit(cid, outfit, -1) with this the player cant change the outfit
 return true
end
 
Tab :(?
Lua:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if not isPlayer(cid) then
   return true
end
local outfit = {lookType = 0, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}
      if getPlayerSex(cid) == 1 then
         outfit.lookType = 266
      else
          outfit.lookType = 266
      end
         doMoveCreature(cid, SOUTH)
         doCreatureChangeOutfit(cid, outfit) -- or doSetCreatureOutfit(cid, outfit, -1) with this the player cant change the outfit
  return true
end
 
Back
Top