tollaks
Advanced User
- Dołączył
- Lipiec 29, 2009
- Posty
- 231
- Liczba reakcji
- 9
- Wiek
- 31
Odp: [7.92+] Firma poprawiaj?ca skrypty by Ovner & Gelio
Wersja Tibi 8.5
Silnik:The forgotten server 0.2.4 mystic spirit
Opis B??du:Zrobilem anhilator 2 tylko ze jak ktos juz wykonal anhilator zwykly to nie moze wziasc itemow z anhilator 2;/ prosze o pomoc
Skrypt:
Wersja Tibi 8.5
Silnik:The forgotten server 0.2.4 mystic spirit
Opis B??du:Zrobilem anhilator 2 tylko ze jak ktos juz wykonal anhilator zwykly to nie moze wziasc itemow z anhilator 2;/ prosze o pomoc

Skrypt:
local playerPosition =
{
{x = 1243, y = 897, z = 9, stackpos = STACKPOS_TOP_CREATURE},
{x = 1242, y = 897, z = 9, stackpos = STACKPOS_TOP_CREATURE},
{x = 1241, y = 897, z = 9, stackpos = STACKPOS_TOP_CREATURE},
{x = 1240, y = 897, z = 9, stackpos = STACKPOS_TOP_CREATURE}
}
local newPosition =
{
{x = 1262, y = 897, z = 9},
{x = 1261, y = 897, z = 9},
{x = 1260, y = 897, z = 9},
{x = 1259, y = 897, z = 9}
}
-- Do not modify the declaration lines below.
local player = {0, 0, 0, 0}
local failed = TRUE
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 then
for i = 1, 4 do
player = getThingfromPos(playerPosition)
if player.itemid > 0 then
if isPlayer(player.uid) == TRUE then
if getPlayerStorageValue(player.uid, 30016) == -1 then
if getPlayerLevel(player.uid) >= 100 then
failed = FALSE
end
end
end
end
if failed == TRUE then
doPlayerSendCancel(cid, "Sorry, not possible.")
return TRUE
end
failed = TRUE
end
for i = 1, 4 do
doSendMagicEffect(playerPosition, CONST_ME_POFF)
doTeleportThing(player.uid, newPosition, FALSE)
doSendMagicEffect(newPosition, CONST_ME_ENERGYAREA)
end
doTransformItem(item.uid, item.itemid + 1)
elseif item.itemid == 1946 then
doPlayerSendCancel(cid, "Sorry, not possible.")
end
return TRUE
end