• 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!

Need script for Mining!

Casanna

Legend...
Joined
Oct 26, 2008
Messages
35
Reaction score
0
Location
Wierden, Netherlands
hello,

im searching for an full working mining script.
i'v got an converted illusions map 8.54, but now i need a mining script for the mininG area.

for the ppl who dont know what i mean:p

in 7.6 you had a script that when u are using a pick on a stone, its says ~clang and then you got cash or an iron ore.

now i need the script for the pick, the stones And the iron ore table in the map illusions :)

please help me.
kind regards,

Casanna

ps. sorry for my bad english :p
 
Code:
function getStone(cid, toPosition)
                 random_number = math.random(1,100)
                 doSendMagicEffect(toPosition,3)
                 if random_number>=95 then
    		 doCreateItem(2157, 1, toPosition)
                 elseif random_number<=94 and random_number>89 then
    		 doCreateItem(1294, 1, toPosition)
                 elseif random_number<=88 and random_number>83 then
    		 doCreateItem(1293, 1, toPosition)
                 elseif random_number<=82 and random_number>77 then
    		 doCreateItem(1295, 1, toPosition)
end
end
rocha = {386, 387, 390, 391}

function onUse(cid, item, frompos, itemEx, toPosition)
	if isInArray(rocha, itemEx.itemid) == TRUE then
		 getStone(cid, toPosition)

	elseif (itemEx.uid > 0 or itemEx.actionid > 0) and (itemEx.itemid == 354 or itemEx.itemid == 355) then
		doTransformItem(itemEx.uid, 392)
		doDecayItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		return TRUE
        else 
    return 0
   end
   return 1
   end
 
Should be good now
Lua:
function getStone(cid, toPosition)
                 random_number = math.random(1,100)
                 doSendMagicEffect(toPosition,3)
                 if random_number>=95 then
    		 doPlayerAddItem(cid, 2157, 1)
                 elseif random_number<=94 and random_number>89 then
    		 doPlayerAddItem(cid, 1294, 1)
                 elseif random_number<=88 and random_number>83 then
    		 doPlayerAddItem(cid, 1293, 1)
                 elseif random_number<=82 and random_number>77 then
    		 doPlayerAddItem(cid, 1295, 1)
end
end
rocha = {386, 387, 390, 391}

function onUse(cid, item, frompos, itemEx, toPosition)
	if isInArray(rocha, itemEx.itemid) == TRUE then
		 getStone(cid, toPosition)

	elseif (itemEx.uid > 0 or itemEx.actionid > 0) and (itemEx.itemid == 354 or itemEx.itemid == 355) then
		doTransformItem(itemEx.uid, 392)
		doDecayItem(itemEx.uid)
		doSendMagicEffect(toPosition, CONST_ME_POFF)
		return TRUE
        else 
    return 0
   end
   return 1
   end
 
Back
Top