• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Break 5 jars spawn monster

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

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
 
I am really sorry but most of the times when you explain stuff, I dont understand :/...


Like



For me this could mean,

Put in .lua script itemid lalala

OR put in actions.xml

action id? i dno.
 
I go to actions.xml


and put this




only jars with action id will break?
<action actionid="9988" script="horestis.lua"/>
 
in actions.xml you can use:

actionid="xxx"
itemid="xxx"

alright?

use itemid for action is for your item id, or use action id and put in rme the action id.
 
Back
Top