vingo
Active Member
- Joined
- Oct 27, 2012
- Messages
- 464
- Reaction score
- 43
AS it says does anyone have the Horestis break jars script?
Maybe even to remove the wall after breaking 5 jars.
Something along the lines of this
Maybe even to remove the wall after breaking 5 jars.
Something along the lines of this
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local storage = 26000
local count = getGlobalStorageValue(storage)
local options = {
[1] = {name = "Break!"},
[2] = {name = "Waaaaaah!"},
[3] = {name = "You are too afraid to destroy this object."}
}
local fazer = options[math.random(1, #options)]
if fazer.name == "Break!" then
count = count - 1
setGlobalStorageValue(storage, count)
doRemoveItem(cid, itemEx.uid,1)
doPlayerSendTextMessage(cid, TEXTCOLOR_ORANGE_1, "Break!")
if count == 0 then
doSummonCreature(CREATURENAME, POSITION, true true) -- Of course put in the creaturename and position yourself
end
else
doPlayerSendTextMessage(cid, TEXTCOLOR_ORANGE_1, ""..fazer.."")
end
return true
end