Hello I have this script
I want to edit this script in this way:
When use make visible to all people a text saying You are Mounted!
If you use the doll once you will transform into a monster, if you use it again you will convert into human if you use it again in a monster etc...
when you are mounted make the speed of the player increase +30
Thanks I will appreciate if you can do this script for me. I will rep+++
Ekt
Lua:
local waittime = 2 --Default (30 seconds)
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (1000 * waittime))
monsters = {"Orc Rider", "Orc Marauder", "Serpent Spawn"}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if hasCondition(cid, CONDITION_EXHAUST) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must mount every 2 Seconds")
return TRUE
end
get = monsters[math.random(1, #monsters)]
if (getPlayerItemCount(cid, 9019) > 0) then
doSetMonsterOutfit(cid, get, -1)
doPlayerSendTextMessage(cid, 25, "You are mounted!")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doAddCondition(cid, exhaust)
end
return true
end
I want to edit this script in this way:
When use make visible to all people a text saying You are Mounted!
If you use the doll once you will transform into a monster, if you use it again you will convert into human if you use it again in a monster etc...
when you are mounted make the speed of the player increase +30
Thanks I will appreciate if you can do this script for me. I will rep+++
Ekt