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

MoveEvent Banana Skin (Servers RPG or War)

azzkaban

Monster Maker
Joined
Feb 23, 2010
Messages
1,101
Reaction score
194
Location
Iquique Chile
oue2.gif


Code:
        <movevent type="StepIn" itemid="2219" event="script" value="cascaraPlatano.lua"/>

Code:
-------------- (``•.¸(``•.¸(``•.¸ ¸.•`´)¸.•`´)¸.•`´) --------------
--------- (``•.¸(``•.¸ SCRIPT BY STRACK ¸.•`´)¸.•`´) --------
------ (``•.¸(``•.¸    Idea by Amy Azzkaban ¸.•`´)¸.•`´) ------
-------------- (¸.•`´(¸.•`´(¸.•`´ ``•.¸)``•.¸)``•.¸) --------------

local tiempo = 4 -- en segundos
local corpse = {man=2317, woman=6560}

local cman = createConditionObject(CONDITION_OUTFIT)
setConditionParam(cman, CONDITION_PARAM_TICKS, tiempo*1000)
addOutfitCondition(cman, {lookTypeEx = corpse.man})

local cwoman = createConditionObject(CONDITION_OUTFIT)
setConditionParam(cwoman, CONDITION_PARAM_TICKS, tiempo*1000)
addOutfitCondition(cwoman, {lookTypeEx = corpse.woman})

function onStepIn(cid, item, position, fromPosition)

  if isPlayer(cid) then
      doCreatureSay(cid, "Aaaay!", TALKTYPE_ORANGE_1)
      doCreatureAddHealth(cid, -getCreatureHealth(cid)*0.3)
      doCreatureSetNoMove(cid, true)
      doSendMagicEffect(position, CONST_ME_STUN)
      doPlayerSendCancel(cid, 'Cuidado! Las cascaras de bananas son muy peligrosas.')
      addEvent(doCreatureSetNoMove,tiempo*1000,cid,false)
      return getPlayerSex(cid) == 0 and doAddCondition(cid, cwoman) or doAddCondition(cid, cman)
  end
return true
end

Version 2: Remove bana skin on step in.

Code:
-------------- (``•.¸(``•.¸(``•.¸ ¸.•`´)¸.•`´)¸.•`´) --------------
--------- (``•.¸(``•.¸ SCRIPT BY STRACK ¸.•`´)¸.•`´) --------
------ (``•.¸(``•.¸    Idea by Amy Azzkaban ¸.•`´)¸.•`´) ------
-------------- (¸.•`´(¸.•`´(¸.•`´ ``•.¸)``•.¸)``•.¸) --------------

local tiempo = 4 -- en segundos
local corpse = {man=2317, woman=6560}

local cman = createConditionObject(CONDITION_OUTFIT)
setConditionParam(cman, CONDITION_PARAM_TICKS, tiempo*1000)
addOutfitCondition(cman, {lookTypeEx = corpse.man})

local cwoman = createConditionObject(CONDITION_OUTFIT)
setConditionParam(cwoman, CONDITION_PARAM_TICKS, tiempo*1000)
addOutfitCondition(cwoman, {lookTypeEx = corpse.woman})

function onStepIn(cid, item, position, fromPosition)

  if isPlayer(cid) then
      doCreatureSay(cid, "Aaaay!", TALKTYPE_ORANGE_1)
      doCreatureAddHealth(cid, -getCreatureHealth(cid)*0.3)
      doCreatureSetNoMove(cid, true)
      doSendMagicEffect(position, CONST_ME_STUN)
      doRemoveItem(item.uid)
      doPlayerSendCancel(cid, 'Cuidado! Las cascaras de bananas son muy peligrosas.')
      addEvent(doCreatureSetNoMove,tiempo*1000,cid,false)
      return getPlayerSex(cid) == 0 and doAddCondition(cid, cwoman) or doAddCondition(cid, cman)
  end
return true
end
Credits: Strack
 
Last edited:
Looking good, i like it!
Not sure how i can give you credit tho, i am not used to this OTland change yet.
 
Back
Top