lokolokio
Well-Known Member
Hello dear OtLanders i have this script because i think its a great way to tamming the inoperatives, you can change all values and if theres some bugs plx anyone can tell me how to fix, but on my opinion its very good and nice script. i put the next screenshoot to see what im talking about.
Lua:
function onUse(cid,item,fromPosition,itemEx,toPosition)
local storageUniwheel = 2024
local storageTL = 2025
local mountIdUniwheel = 15
local mountIdLizzard = 8
local rand = math.random(1, 100)
local percentageToBrokeOil = 45
local percentageToBrokeKey = 45
local percentageToGetOilMount = 8
local percentageToGetKeyMount = 8
if(item.itemid == 13938 and itemEx.itemid == 13937)then
if(getPlayerStorageValue(cid, storageUniwheel) <= 0)then
if(rand <= percentageToGetOilMount)then
doCreatureSay(cid, 'Vroooomratatatatatatat. The strange wheel seems to vibrate and slowly starts turning continuously.', TALKTYPE_ORANGE_1)
doSendMagicEffect(toPosition, 67)
addEvent(doSendMagicEffect, 300, toPosition, 67)
addEvent(doSendMagicEffect, 600, toPosition, 67)
addEvent(doSendMagicEffect, 900, toPosition, 67)
doPlayerAddMount(cid, mountIdUniwheel)
setPlayerStorageValue(cid, storageUniwheel, 1)
elseif(rand <= percentageToBrokeOil)then
doCreatureSay(cid, 'Splosh! It looks like most of the special oil this can was holding was spilt without any effect.', TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
else
doCreatureSay(cid, 'There is not enough oil, try to put more in the uniwheel.', TALKTYPE_ORANGE_1)
end
else
doCreatureSay(cid, 'You have already this mount.', TALKTYPE_ORANGE_1)
end
elseif(item.itemid == 13292 and itemEx.itemid == 13306)then
if(getPlayerStorageValue(cid, storageTL) <= 0)then
if(rand <= percentageToGetKeyMount)then
doCreatureSay(cid, 'Krkrkrkrk You wind up the tin lizzard.', TALKTYPE_ORANGE_1)
doSendMagicEffect(toPosition, 67)
addEvent(doSendMagicEffect, 300, toPosition, 67)
addEvent(doSendMagicEffect, 600, toPosition, 67)
addEvent(doSendMagicEffect, 900, toPosition, 67)
doPlayerAddMount(cid, mountIdLizzard)
setPlayerStorageValue(cid, storageTL, 1)
elseif(rand <= percentageToBrokeKey)then
doCreatureSay(cid, 'You broke the key while you are trying to star up the tin lizzard.', TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
else
doCreatureSay(cid, 'The key does not match, try again.', TALKTYPE_ORANGE_1)
end
else
doCreatureSay(cid, 'You have already this mount.', TALKTYPE_ORANGE_1)
end
end
end
Attachments
-
Inoperatives.jpg24.4 KB · Views: 62 · VirusTotal
Last edited by a moderator: