• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action ghettobird's MARIJUANA SCRIPT!

ghettobird

LUA newbie
Joined
Aug 17, 2013
Messages
679
Reaction score
132
Location
OTland
Whattup otlanders, i'm here today to give you my marijuana script (it's just 4 fun :p)

well, let's start

actions/scripts
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
doCreatureSay(cid, "Smoked some marijuana..." ,TALK_TYPE_ORANGE)
doCreatureAddHealth(cid,-5)
doCreatureAddMana(cid, -5)
doSendAnimatedText(getCreaturePosition(cid), "THE MARIJUANA... ITS GETTING TO ME!",TEXTCOLOR_LIGHTGREEN)
return true
end

PS: if someone can tell me how to make the player DRUNK after he uses it that would be awesome, i searched everywhere couldn't find a way. anyway good luck hope it helps :peace:
 
Lua:
local drunk = createConditionObject(CONDITION_DRUNK)
setConditionParam(drunk, CONDITION_PARAM_TICKS, 60000)

doAddCondition(cid, drunk)
 
Back
Top