- Dołączył
- Grudzień 15, 2012
- Posty
- 1032
- Liczba reakcji
- 39
Siemano potrzebuj? doda? do tego skryptu :
[LUA] function onUse(cid, item, frompos, item2, topos)
local randNumber = math.random(1,10)
local randItem = {2286, 2230, 2231, 2232, 2233, 2234, 2247, 2248, 2219, 2220}
local rok = math.random(1,5000000)
if ((item2.itemid >= 101 and item2.itemid <= 350) or item2.itemid == 368 or (item2.itemid >= 791 and item2.itemid <= 890) or (item2.itemid >= 3263 and item2.itemid <= 3297) and (item2.itemid >= 4526 and item2.itemid <= 4595) or item2.itemid == 4765 or (item2.itemid >= 5711 and item2.itemid <= 5726)) then
if randNumber > 10 then
doSendMagicEffect(topos,2)
elseif randNumber > 0 and randNumber <= 10 then
local dupacycki = doCreateItem(randItem[randNumber], 1, topos)
doItemSetAttribute(dupacycki, "description", "Wykopane przez "..getPlayerName(cid)..",pochodzi z roku ok. "..rok.." p.n.e.")
end
end
return true
end[/LUA]
Takie co? pos1 ( x=,y=,z=) pos2(x=,y=,z=)
Chodzi o to ?e wpisuj? pos1-pozycja g?rny lewy r?g|pos2-pozycja prawy dolny r?g.
O to biega, ?e tylko na tym obszarze mo?na kopa?/wydobywa? te item(skrypt s?u?y do tego).A nie kole? idzie i kopie gdzie chce tylko w wybranym miejscu bym by? bardzo wdzi?czny u mo?e jakie? info jak nei b?dzie kopa? na tym obszarze "Musisz isc na wyznaczone miejsce".
[LUA] function onUse(cid, item, frompos, item2, topos)
local randNumber = math.random(1,10)
local randItem = {2286, 2230, 2231, 2232, 2233, 2234, 2247, 2248, 2219, 2220}
local rok = math.random(1,5000000)
if ((item2.itemid >= 101 and item2.itemid <= 350) or item2.itemid == 368 or (item2.itemid >= 791 and item2.itemid <= 890) or (item2.itemid >= 3263 and item2.itemid <= 3297) and (item2.itemid >= 4526 and item2.itemid <= 4595) or item2.itemid == 4765 or (item2.itemid >= 5711 and item2.itemid <= 5726)) then
if randNumber > 10 then
doSendMagicEffect(topos,2)
elseif randNumber > 0 and randNumber <= 10 then
local dupacycki = doCreateItem(randItem[randNumber], 1, topos)
doItemSetAttribute(dupacycki, "description", "Wykopane przez "..getPlayerName(cid)..",pochodzi z roku ok. "..rok.." p.n.e.")
end
end
return true
end[/LUA]
Takie co? pos1 ( x=,y=,z=) pos2(x=,y=,z=)
Chodzi o to ?e wpisuj? pos1-pozycja g?rny lewy r?g|pos2-pozycja prawy dolny r?g.
O to biega, ?e tylko na tym obszarze mo?na kopa?/wydobywa? te item(skrypt s?u?y do tego).A nie kole? idzie i kopie gdzie chce tylko w wybranym miejscu bym by? bardzo wdzi?czny u mo?e jakie? info jak nei b?dzie kopa? na tym obszarze "Musisz isc na wyznaczone miejsce".
