Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
Chcia?em przerobi? ten skrypt ?eby za po?o?enie itema (nie kasy) teleportowa?, ale wci?? wyskakuje mi "Po?o? taki i taki item". Pozmienia?em id i count, z kas? dzia?a - z itemem nie. Jak przerobi? aby to wreszcie zadzia?a?o...
--[[
Zaawansowany skrypt na platny exp by TF
]]--
local config = {
goldIDAndCount = {2160, 25},
goldPosition = {x=1029, y=1025, z=8, stackpos=255},
targetPosition = {x=370, y=342, z=7},
minLevel = 100, -- mozesz zostawic puste (brak wymaganego lvl)
magicEffectAtTarget = 10, -- mozesz zostawic puste (brak efektu) lub wpisac 'random' (losowy efekt)
effects = {1, 6, 10, 12, 39, 54}
}
function onUse(cid, item, frompos, item2, topos)
local getGold = getThingfromPos(config.goldPosition)
local playerPosition = getPlayerPosition(cid)
local effect = config.magicEffectAtTarget
if config.magicEffectAtTarget == 'random' then
local randomValue = math.random(1, #config.effects)
effect = config.effects[randomValue]
end
if item.itemid = 1946 then
doTransformItem(item.uid, 1945)
return true
end
if getGold.itemid ~= config.goldIDAndCount[1] or getGold.type < goldIDAndCount[2] then
doPlayerSendTextMessage(cid,22,'Poloz 25cc kolo dzwigni.')
return true
end
if config.minLevel ~= nil and getPlayerLevel(cid) < config.minLevel then
doPlayerSendTextMessage(cid,22,'Nie masz wymaganego levela (' .. config.minLevel .. '.')
return true
end
doRemoveItem(getGold.uid, config.goldIDAndCount[2])
doTeleportThing(cid, config.targetPosition)
doSendMagicEffect(config.targetPosition, effect)
doTransformItem(item.uid, 1946)
return true
end
nigdy bym takiego nie zrobi? a jak ju? jest to znalaz?em ze 100 zastosowa?;d
, bardzo mi si? przyda?.
jednak ots nie wypali?
...