OTServ
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Dirección Ip
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) 3
Conectarse

Recuperar mi contraseña

Buscar
 
 

Resultados por:
 

 


Rechercher Búsqueda avanzada

Mejores posteadores
XxStroksxX (463)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote1111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote2111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote3111 
~*~[:Đαяќ:]~[:тιβια:]~*~ (366)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote1111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote2111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote3111 
spoor (83)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote1111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote2111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote3111 
Dj Pacos (73)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote1111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote2111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote3111 
God Skit (68)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote1111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote2111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote3111 
GoD MexicanSoul (40)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote1111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote2111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote3111 
fuzzy (35)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote1111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote2111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote3111 
Eddie (31)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote1111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote2111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote3111 
GOD Chimito (30)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote1111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote2111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote3111 
conalep1996 (23)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote1111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote2111[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Vote3111 

Últimos temas
» [???] [Super Naruto OT]
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Icon_m10Lun Jun 08, 2015 12:08 pm por keishmer91

» [ACTION] God/GM da item a un player
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Icon_m10Mar Dic 02, 2014 12:53 pm por hecmanos

» [8.60] Nuevo War Thais By TheRobertxon
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Icon_m10Vie Jun 20, 2014 10:56 am por luismc

» [7.92]Naruto Final Story!
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Icon_m10Dom Mayo 26, 2013 2:40 am por ricardotuck

» [9.1] Fun Server
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Icon_m10Mar Mayo 14, 2013 5:32 pm por skifer

» [9.1] The Forgotten Server v0.2.11pl2 (Mystic Spirit)
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Icon_m10Mar Mayo 14, 2013 5:29 pm por skifer

» New Map 8.60 (Darksystem) By: Turock & Gilio LIsto Arreglado El
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Icon_m10Mar Mayo 07, 2013 5:27 pm por tonyso

» Ocean Clasic Global Map 8.6
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Icon_m10Miér Mayo 01, 2013 11:19 pm por maganiua

» ayuda a abrir puertos
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Icon_m10Lun Abr 29, 2013 5:58 pm por XxStroksxX

» [8.60] Speedy War
[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Icon_m10Dom Abr 28, 2013 5:51 pm por Sunnade'Audio

Upload Images
ImagesHack
Scanner
VirusTotal

[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features)

2 participantes

Ir abajo

[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Empty [Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features)

Mensaje por XxStroksxX Miér Ene 26, 2011 6:54 am

[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Ticpic

Instalando
Vaya a serverdirectory \ data -> hacer un nuevo archivo llamado "Phases.lua" área editable en el que será su configuración de área)
Código:
--// Editable ( you will just edit the stuff in editable zone) \\-- 

turn_id_tocken = 328859 -- empty storage

turn_tocken = 325888 -- empty storage

canMove_token = 336888 -- empty storage

round_token = 339888 -- empty storage

winner_token = 338888 -- empty storage

running_token = 333445 -- empty storage

won_token = 323245 -- empty storage

ITem_WinnEr  = { {2160,2} , {2446,1} } -- {item,count} make sure non-stackable items would be with count 1 only

tic_pos = {
                frompos = { x= 975, y = 1016, z = 7 },    -- start position of playing field
                topos = { x= 977, y = 1018, z = 7 } -- end position of playing field
            }

config_tic
= { -- cross player starting pos on lever            ,    cross player
pos in game          ,  storage for cross player  ,    cross token pos
 
                  { pos_start = { x= 977, y = 1012, z = 7 }  , pos_game
= { x= 979, y = 1017, z = 7 } ,  storage = 52944 ,  token_pos = { x=
979, y = 1016, z = 7 } },

                    -- circle player
starting pos on lever              ,    circle player pos in game   
  ,  storage for circle player ,    circle token pos
             
    {pos_start = { x= 975, y = 1012, z = 7 }  , pos_game = { x= 973, y
= 1017, z = 7 } , storage = 52949, token_pos = { x= 973, y = 1018, z =
7 } }

                }




--// End \\-- (Don't touch stuff down there)







Phases_Tic_Tac = {
                    -- // Horizontal raws \\--
 
                  { {x = tic_pos.frompos.x, y = tic_pos.frompos.y, z =
tic_pos.frompos.z } , {x = tic_pos.frompos.x+1, y = tic_pos.frompos.y,
z = tic_pos.frompos.z } , {x = tic_pos.frompos.x+2, y =
tic_pos.frompos.y, z = tic_pos.frompos.z } },

             
    { {x = tic_pos.frompos.x, y = tic_pos.frompos.y+1, z =
tic_pos.frompos.z } , {x = tic_pos.frompos.x+1, y =
tic_pos.frompos.y+1, z = tic_pos.frompos.z } , {x =
tic_pos.frompos.x+2, y = tic_pos.frompos.y+1, z = tic_pos.frompos.z } },

 
                  { {x = tic_pos.frompos.x, y = tic_pos.frompos.y+2, z
= tic_pos.frompos.z } , {x = tic_pos.frompos.x+1, y =
tic_pos.frompos.y+2, z = tic_pos.frompos.z } , {x =
tic_pos.frompos.x+2, y = tic_pos.frompos.y+2, z = tic_pos.frompos.z } },

                    -- // Vertical raws \\--
 
                  { {x = tic_pos.frompos.x, y = tic_pos.frompos.y, z =
tic_pos.frompos.z } , {x = tic_pos.frompos.x, y = tic_pos.frompos.y+1,
z = tic_pos.frompos.z } , {x = tic_pos.frompos.x, y =
tic_pos.frompos.y+2, z = tic_pos.frompos.z } },

             
    { {x = tic_pos.frompos.x+1, y = tic_pos.frompos.y, z =
tic_pos.frompos.z } , {x = tic_pos.frompos.x+1, y =
tic_pos.frompos.y+1, z = tic_pos.frompos.z } , {x =
tic_pos.frompos.x+1, y = tic_pos.frompos.y+2, z = tic_pos.frompos.z } },

 
                  { {x = tic_pos.frompos.x+2, y = tic_pos.frompos.y, z
= tic_pos.frompos.z } , {x = tic_pos.frompos.x+2, y =
tic_pos.frompos.y+1, z = tic_pos.frompos.z } , {x =
tic_pos.frompos.x+2, y = tic_pos.frompos.y+2, z = tic_pos.frompos.z } },


                    --// Crosses raws \\--
 
                  { {x = tic_pos.frompos.x, y = tic_pos.frompos.y, z =
tic_pos.frompos.z } , {x = tic_pos.frompos.x+1, y =
tic_pos.frompos.y+1, z = tic_pos.frompos.z } , {x =
tic_pos.frompos.x+2, y = tic_pos.frompos.y+2, z = tic_pos.frompos.z } },

 
                  { {x = tic_pos.frompos.x, y = tic_pos.frompos.y+2, z
= tic_pos.frompos.z } , {x = tic_pos.frompos.x+1, y =
tic_pos.frompos.y+1, z = tic_pos.frompos.z } , {x =
tic_pos.frompos.x+2, y = tic_pos.frompos.y, z = tic_pos.frompos.z } }


                }


function markWinningRaw(item, pos1, pos2, pos3, timer)--By Doggynub
    doRemoveItem(getTileItemById(pos1,item).uid)
    doRemoveItem(getTileItemById(pos2,item).uid)
    doRemoveItem(getTileItemById(pos3,item).uid)
    addEvent(doCreateItem,timer,item,1,pos1)
    addEvent(doCreateItem,timer,item,1,pos2)
    addEvent(doCreateItem,timer,item,1,pos3)
end

function turn()
    if getStorage(canMove_token) ~= 0 and getStorage(running_token) > 0 then
        doSendAnimatedText(config_tic[getStorage(turn_tocken)].token_pos,"Play",TEXTCOLOR_GREEN)
        addEvent(turn,1000)
    end
end
function checkCircle() --By Doggynub
    local raw = 0
    local check = false
    for i = 1,#Phases_Tic_Tac do
        local caller = Phases_Tic_Tac[i]
        local item = getTileItemById(caller[1],6557).uid
        local item1 = getTileItemById(caller[2],6557).uid
        local item2 = getTileItemById(caller[3],6557).uid

        if ( item > 0 and item1 > 0 and item2 > 0 ) then
            check = true
            raw = i
            break
        end
    end

    if check == true and raw > 0 then
        local call = Phases_Tic_Tac[raw]
        for i = 1,7 do
            addEvent(markWinningRaw, i *800, 6557,call[1] , call[2], call[3], 400)
        end
    end

    return check
end

function checkCross()--By Doggynub
    local raw = 0
    local check = false
    for i = 1,#Phases_Tic_Tac do
        local caller = Phases_Tic_Tac[i]
        local item = getTileItemById(caller[1],6556).uid
        local item1 = getTileItemById(caller[2],6556).uid
        local item2 = getTileItemById(caller[3],6556).uid

        if ( item > 0 and item1 > 0 and item2 > 0 ) then
            check = true
            raw = i
            break
        end
    end

    if check == true and raw > 0 then
        local call = Phases_Tic_Tac[raw]
        for i = 1,7 do
            addEvent(markWinningRaw, i *800, 6556,call[1] , call[2], call[3], 400)
        end
    end

    return check
end   




function isCircle(cid)--By Doggynub
    return getPlayerStorageValue(cid,config_tic[2].storage) == 1 and true or false
end

function isCross(cid)--By Doggynub
    return getPlayerStorageValue(cid,config_tic[1].storage) == 1 and true or false
end

function gatherTokens(frompos,topos, crosspos , circlepos)--By Doggynub
        for i = frompos.x, topos.x do
            for j = frompos.y, topos.y do
                local pos = {x = i, y=j,z=frompos.z}
                local circle = getTileItemById(pos,6557).uid
                local cross = getTileItemById(pos,6556).uid
                if cross > 0 then
                    doTeleportThing(cross,crosspos)
                elseif circle > 0 then
                    doTeleportThing(circle,circlepos)
                end
            end
        end
    return true
end

function endPoint(frompos,topos)--By Doggynub
        local check = true
        for i = frompos.x, topos.x do
            for j = frompos.y, topos.y do
                local pos = {x = i, y=j,z=frompos.z}
                local circle = getTileItemById(pos,6557).uid
                local cross = getTileItemById(pos,6556).uid
                if circle < 1 and cross < 1 then
                    check = false
                    break
                end
            end
        end
    return check
end

function isWinner(cid)--By Doggynub
    if isCircle(cid) then
        if checkCircle() then
            return true
        end
    elseif isCross(cid) then
        if checkCross() then
            return true
        end
    end
    return false
end


function send(uid,cid,n,type)--By Doggynub

        for i = 1, n do
            if type == nil then
                addEvent(doSendDistanceShoot,i*300,getThingPos(uid),getThingPos(cid),41)
                addEvent(doSendAnimatedText,i*300,getThingPos(cid),"Winner!",math.random(0,255))
            else
                addEvent(doSendDistanceShoot,i*300,getThingPos(uid),config_tic[1].pos_game,41)
                addEvent(doSendDistanceShoot,i*300,getThingPos(uid),config_tic[2].pos_game,41)
                addEvent(doSendAnimatedText,i*300,config_tic[1].pos_game,"Draw!",math.random(0,255))
                addEvent(doSendAnimatedText,i*300,config_tic[2].pos_game,"Draw!",math.random(0,255))
            end
        end
    return true
end
function endGame()--By Doggynub
    local array = {getTopCreature(config_tic[1].pos_game).uid, getTopCreature(config_tic[2].pos_game).uid}
    local item = ITem_WinnEr[math.random(1,#ITem_WinnEr)]
    addEvent(doPlayerAddItem,1000,getStorage(winner_token),item[1],item[2])
 
 
addEvent(doPlayerSendTextMessage,1000,getStorage(winner_token),MESSAGE_EVENT_ORANGE,"You
won "..item[2] .."x ".. getItemNameById(item[1])..". If you didn't
recieve it, then you don't have enogh space or cap.")
    for i = 1,2 do
        doTeleportThing(array[i],getTownTemplePosition(getPlayerTown(array[i])))
        doCreatureSetNoMove(array[i],0)
        doRemoveCondition(array[i],CONDITION_INFIGHT)
        doSendMagicEffect(getThingPos(array[i]),10)
    end
    doSetStorage(winner_token,-1)
    doSetStorage(round_token,-1)
    doSetStorage(running_token,-1)
    doSetStorage(won_token,-1)
    return true
end

function doAddCopiedContainer(it, new) --By Doggynub

    local uid,its,news = it.uid, {},{}
    local size = getContainerSize(uid)
    local test = {}
    for i = 0, size-1 do
        local item = getContainerItem(uid,i)
        table.insert(test,{item, item.type})
        if isContainer(item.uid) then
            table.insert(its,item)
        end
    end

    for i = #test,1,-1 do
        local call = test[i]
        local ufg = doAddContainerItem(new,call[1].itemid,(call[2] < 1 and 1 or call[2]) )
        if isContainer(ufg) then
            table.insert(news,ufg)
        end
    end
    for i = 1,#its do
        doAddCopiedContainer(its[i], news[i])
    end
    return true
end   

function getRefree(cid,type)--By Doggynub
    local str1 = ""
    local str2 = ""
    if type == nil then
        if getStorage(round_token) < 1 then
            str1 = getCreatureName(cid).." won Round <1> "
            str2 = "Round <2> : start"
            doSetStorage(round_token,2)
            doSetStorage(winner_token,cid)
        elseif getStorage(round_token) == 2 then
            if getStorage(winner_token) == cid then
                str1 = getCreatureName(cid).." won the game, and will recive his reward."
                doSetStorage(won_token,1)
                str2 = "You will be teleported out shortly."
            else
                str1 = getCreatureName(cid).." won Round <2>."
                str2 = "Final Round : start"
                doSetStorage(round_token,3)
                doSetStorage(winner_token,cid)
            end
        elseif getStorage(round_token) == 3 then
            str1 = getCreatureName(cid).." won the game, and will recive his reward."
            doSetStorage(won_token,1)
            str2 = "You will be teleported out shortly."
            doSetStorage(winner_token,cid)
        end
    else
        str1 = "No one won. Round re-match. "
        str2 = "Round <".. ( getStorage(round_token) < 1 and "1" or getStorage(round_token) ) .."> : start"
    end
 
  local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y =
tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })
    doChangeSpeed(uid, - getCreatureSpeed(uid) )
    addEvent(doCreatureSay,100,uid,str1,19)
    addEvent(doCreatureSay,10*300+ 1000,uid,str2,19)
    addEvent(turn,10*300+ 3305)
    if type == nil then
        addEvent(doCreatureSetLookDirection,10*300+ 8,uid, 2)
    end
    addEvent(doRemoveCreature,10*300+ 3300,uid)
    doCreatureSetLookDirection(uid, getDirectionTo(getThingPos(uid), getThingPos(cid)))
    send(uid,cid,10,type)
    addEvent(doSetStorage,10*300+ 3300,canMove_token,1)
        if getStorage(won_token) > 0 then
            addEvent(endGame,10*300+ 3300)
        end

    return true[/size][/font]
[font="arial, sans-serif"][size="2"]end

2) Action.xml paste :
Código:
<action actionid="1111" event="script" value="tic.lua"/>

action-->scripts--> new "tic.lua" :
Código:
local fight = createConditionObject(CONDITION_INFIGHT,-1)
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local pl1_game = getTopCreature(config_tic[1].pos_start).uid
    local pl2_game = getTopCreature(config_tic[2].pos_start).uid
    local players1_enter = getTopCreature(config_tic[1].pos_game).uid
    local players2_enter = getTopCreature(config_tic[2].pos_game).uid
    local players = {}

    if  players1_enter < 1 and players2_enter < 1 then
        if getStorage(running_token) > 0 then
            doSetStorage(winner_token,-1)
            doSetStorage(round_token,-1)
            doSetStorage(running_token,-1)
            doSetStorage(won_token,-1)
        end
    end

    if getStorage(running_token) > 0 then
        return  doPlayerSendCancel(cid,"The players inside didn't finish there game yet.")
    end

    if pl1_game > 0 and pl2_game > 0 then
        table.insert(players, pl1_game)
        table.insert(players, pl2_game)
    else
        return doPlayerSendCancel(cid,"The game needs 2 players to start.")
    end
    gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_pos , config_tic[2].token_pos)
    for i = 1,#players do
        doTeleportThing(players[i],config_tic[i].pos_game,false)
        doSendMagicEffect(config_tic[i].pos_game,10)
        doCreatureSetNoMove(players[i],1)
        doAddCondition(players[i],fight)
        setPlayerStorageValue(players[i],config_tic[i].storage,1)
        setPlayerStorageValue(players[i],turn_id_tocken,i)
    end
 
  local uid = doCreateMonster("chicken",{x = tic_pos.frompos.x+1, y =
tic_pos.frompos.y+1, z = tic_pos.frompos.z,stackpos = 0 })

    doSetStorage(turn_tocken,math.random(1,2))
    doSetStorage(running_token,1)
    doChangeSpeed(uid, - getCreatureSpeed(uid) )
    doSetStorage(canMove_token,0)
    addEvent(doCreatureSay,100,uid,"Round <1> : start",19)
    addEvent(doRemoveCreature,2400,uid)
    addEvent(doSetStorage,2410,canMove_token,1)
    addEvent(turn,2411)


    return true
end

3) Movement.xml 3 lines :
Código:
<movevent type="RemoveItem" itemid="6556" event="script" value="tic.lua"/>
    <movevent type="RemoveItem" itemid="6557" event="script" value="tic.lua"/>
    <movevent type="AddItem" tileitem="1" uniqueid="6666" event="script" value="tic.lua"/>

movement-->script--> new "tic.lua" :
Código:
dofile('./data/Phases.lua') --<< line 1 script started


function onRemoveItem(moveItem, tileItem, position, cid)
local returnplace = ( moveItem.itemid == 6556 and config_tic[1].token_pos or config_tic[2].token_pos )
    if cid > 0 then

        if getStorage(running_token) > 0 then


            if doComparePositions(position,config_tic[1].token_pos) or doComparePositions(position,config_tic[2].token_pos) then

                if getStorage(canMove_token) == 0 then
 
                  return doPlayerSendCancel(cid,"Sorry, you can't move
your token now.") and doSendMagicEffect(returnplace,2) and
doTeleportThing(moveItem.uid,returnplace)
                end

                if getStorage(turn_tocken) ~=  getPlayerStorageValue(cid,turn_id_tocken) then
 
                  return doSendMagicEffect(returnplace,2) and
doPlayerSendCancel(cid,"Sorry, this isn't your turn.") and
doTeleportThing(moveItem.uid,returnplace)
                end

                local p = getThingPosition(moveItem.uid)
                local f = moveItem.itemid

                if not isInRange(p,tic_pos.frompos,tic_pos.topos) then
 
                  return doSendMagicEffect(returnplace,2) and
doTeleportThing(moveItem.uid,returnplace) and
doPlayerSendCancel(cid,"You can't move the token outside play zone.")
                end

                if isWinner(cid) then
                    doSetStorage(canMove_token,0)
                    addEvent(gatherTokens,6700,tic_pos.frompos,tic_pos.topos, config_tic[1].token_pos , config_tic[2].token_pos)
                    addEvent(getRefree,7000,cid)
                else
                    if endPoint(tic_pos.frompos,tic_pos.topos) then
                        doSetStorage(canMove_token,0)
                        gatherTokens(tic_pos.frompos,tic_pos.topos, config_tic[1].token_pos , config_tic[2].token_pos)
                        addEvent(getRefree,200,cid,1)
                        doSetStorage(turn_tocken, math.random(1,2) )
                    else
                        doSetStorage(turn_tocken, ( getStorage(turn_tocken) == 1 and 2 or 1 ) )
                    end
                end
            end

        else
 
          return doSendMagicEffect(returnplace,2) and
doTeleportThing(moveItem.uid,returnplace) and
doPlayerSendCancel(cid,"Game not started.")
        end

    end

    return true
end

function onAddItem(moveItem, tileItem, position, cid)
    if cid > 0 then
        local check = false
        for i = tic_pos.frompos.x, tic_pos.topos.x do
            for j = tic_pos.frompos.y, tic_pos.topos.y do
                local pos = {x = i, y=j,z=tic_pos.frompos.z}
                if doComparePositions(position,pos) then
                    check = true
                    break
                end
            end
        end
        if not isInArray({6556,6557},moveItem.itemid) then
            local count = moveItem.type
            if not isContainer(moveItem.uid) then
                doRemoveItem(moveItem.uid)
                doPlayerAddItem(cid,moveItem.itemid,count)
                doPlayerSendCancel(cid,"You can't drop your item here.")
                doSendMagicEffect(getThingPos(cid),2)
            else
                local uids = moveItem
                local bp = doPlayerAddItem(cid,uids.itemid,1)
                doAddCopiedContainer(uids, bp)
 
              return doRemoveItem(moveItem.uid) and
doPlayerSendCancel(cid,"You can't drop your item here.") and
doSendMagicEffect(getThingPos(cid),2)
            end
        else
            if check == false then
                doRemoveItem(moveItem.uid)
            end
        end
    end
    return true
end

Descargar Mapa

Creditos:100% Doggynub
XxStroksxX
XxStroksxX

+ Administrador +
+ Administrador +

¡Sorcerer Rapero!
Masculino España Géminis Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 463
Localización Localización : Barcelona
Fecha de inscripción Fecha de inscripción : 01/08/2010

Hoja de personaje
Personaje: Khail Phount
Vocation: Knight
Mundo: Infernia

http://www.otserv.biz/

Volver arriba Ir abajo

[Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features) Empty Re: [Action, Movement] Tres Rounds Tic-Tac-Toc System(Fixed Version + More Features)

Mensaje por ~*~[:Đαяќ:]~[:тιβια:]~*~ Sáb Ene 29, 2011 4:05 pm

ta chido we
~*~[:Đαяќ:]~[:тιβια:]~*~
~*~[:Đαяќ:]~[:тιβια:]~*~

+ Moderador +
+ Moderador +

*~Elder Wolf~*
Masculino Mexico Virgo Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 366
Localización Localización : :O ala versh XD
Fecha de inscripción Fecha de inscripción : 29/01/2011

http://www.chaosserv.no-ip.info

Volver arriba Ir abajo

Volver arriba


 
Permisos de este foro:
No puedes responder a temas en este foro.