local telePos = {x=33356, y=31180, z=8}
local newsPosition = {x=33356, y=31180, z=8}
local newzPosition = {x=33223, y=31100, z=8}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(isInArray(HOLES, itemEx.itemid)) then
if(itemEx.itemid ~= 8579) then
itemEx.itemid = itemEx.itemid + 1
else
itemEx.itemid = 8585
end
doTransformItem(itemEx.uid, itemEx.itemid)
doDecayItem(itemEx.uid)
return true
end
if(SAND_HOLES[itemEx.itemid] ~= nil and itemEx.actionid == 100) then
doSendMagicEffect(toPosition, CONST_ME_POFF)
doTransformItem(itemEx.uid, SAND_HOLES[itemEx.itemid])
doDecayItem(itemEx.uid)
return true
end
if(itemEx.itemid == SAND and not isRookie(cid)) then
local rand = math.random(1, 100)
if(rand >= 1 and rand <= 5) then
doCreateItem(ITEM_SCARAB_COIN, 1, toPosition)
if(rand > 85) then
doCreateMonster("Scarab", toPosition, false)
end
doSendMagicEffect(toPosition, CONST_ME_POFF)
end
return true
end
if(itemEx.actionid == 12528 and getPlayerStorageValue(cid,42827) < 0) then
doPlayerAddItem(cid,12258,1)
setPlayerStorageValue(cid, 42827, 1)
doCreatureSay(cid, 'You dig out a handful of earth from this sacred place.', TALKTYPE_ORANGE_1)
return true
end
if(itemEx.uid == 3623 and getPlayerStorageValue(cid,42324) >= 2) then
doTeleportThing(cid, newsPosition, TRUE)
doSendMagicEffect(newsPosition, CONST_ME_POFF)
else
doCreatureSay(cid, 'You dont have enough energy to dig out from this sacred place.', TALKTYPE_ORANGE_1)
end
return true
end
lo que no entiendo es que el hole que tengo en mi mapa el id es 468 y se transforma a 469 pero cambie eso en el script a ver si era eso y nada
![[Actions] [Actions] ayuda tengo un problema con la shovel Proble11](https://i.servimg.com/u/f86/20/28/04/17/proble11.jpg)
bueno yo cree con el gm el hole 8579 y si lo abre pero en el ot map editor no me sale ese ole si no el 489 ahora si hay una manera de buscar el hole 8579 en el ot map editor si me dirias como buscarlo yo digo que eso tambien resolveria el problema ahora si el problema es solo el script bueno tambien me serviria por que no me doy tanta mala vida
ja!! ahorita probe creando el hole 469 en mi mapa con el gm y si abre el hole asi osea de verdad no entiendo que locura pasa