Arena Svargrond

Batonek

Senior User
Zarejestrowany
Dołączył
Kwiecień 26, 2008
Posty
605
Liczba reakcji
25
Witam. Ot?? wzi??em sobie cz??? mapki z aren? Svargrond z mapy Vanilia. Nie wiem nawet jaki to by? silnik bo mia?em sam folder data. Chcia?bym prosi? was ?eby?cie opisali mi dok?adnie krok po kroku jeden ze skrypt?w owej areny bo nie bardzo rozumiem niekt?re jego cz??ci. Chcia?bym si? r?wnie? dowiedzie?, czy owy skrypt b?dzie dzia?a? na TFSie 0.3.6, je?eli nie, to nawet nie opisujcie skryptu. Ew. by?oby mi?o gdyby kto? poda? jaki? lepsze, dzia?aj?ce na TFSie 0.3.6 skrypty.
Kod:
function onAddItem(moveitem, tileitem, pos)
local function doCheckBody(moveitem, stonepos, monster)
stonepos = {x=663, y=154, z=9, stackpos=1}
local stone = getThingfromPos(stonepos)
local goblet = doCreateItemEx(1354, 1)

    if moveitem.itemid == 7349 then   
        doRemoveItem(moveitem.uid,1)
        doRemoveItem(stone.uid,1)
        doSendAnimatedText(pos,"Victory!",198)    
        doSendMagicEffect(pos,13)
    elseif moveitem.itemid == 3058 or moveitem.itemid == 3065 then
        local dPos = getThingPos(moveitem.uid)
        local passArgs = {dPos = dPos}
        addEvent(removeCorpse,1000,passArgs)
        doCreatureAddHealth(monster,-10000)
    end
end
    if tileitem.actionid == 3011 then
        doCheckBody(moveitem, stonepos, monster)
    end
end
function onStepIn(cid,item,pos)
tppos1 = {x=491, y=504, z=8}
daredos = {x=668, y=153, z=9}
tppos2 = {x=668, y=154, z=9}
tppos3 = {x=680, y=136, z=8}
    if item.actionid == 16002 then
        if getPlayerStorageValue(cid,12011) == 1 then
        else
            doTeleportThing(cid,tppos1)
            doSendMagicEffect(cid,13)
        end
    elseif item.actionid == 16026 then
        doSendAnimatedText(pos,"Fight",198)
        doTeleportThing(cid,tppos2)
end
end
Z g?ry dzi?ki i
pozdrawiam.
 
Back
Do góry