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

Solved infinity food

Status
Not open for further replies.

itachi_

Banned User
Joined
Oct 29, 2019
Messages
44
Solutions
1
Reaction score
8
Location
Egypt
I wanna to make a simulation like food but with action id, reached this but the game crashes while using it .
Code:
  quences = 400
  local drunk = createConditionObject(CONDITION_DRUNK)
  setConditionParam(drunk, CONDITION_PARAM_TICKS, 10000)

  function onUse(cid, item, frompos, item2, topos)
      food = 60
      if (getPlayerFood(cid) + food > quences) then
          doPlayerSendCancel(cid,"You are full.")
          return 1
      end
      doPlayerFeed(cid,food)
        doPlayerSay(cid,"Yummy",16)
      return 1
  end
Code:
   <action itemid="5882" event="script" value="new/infinity food.lua"/>

solved the problem was from the file path it was on another way btw.
 
Status
Not open for further replies.
Back
Top