• TibiaFace

    Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...

    .
    demo menumenu

    Afiliados



    Votar:

    [Actions] first item Tfs/ Otx chest

    Compartir:

    Ver el tema anterior Ver el tema siguiente Ir abajo  Mensaje (Página 1 de 1.)

    1[Actions] first item Tfs/ Otx chest Empty [Actions] first item Tfs/ Otx chest Vie Jul 17, 2015 10:58 pm

    [Admin] God Maya

    [Admin] God Maya
    Administrador
    Administrador
    hola usuarios de tibiaface

    hoy les traigo el firstitem chest

    te vas a:

    data/actions/scripts

    creas un archivo y lo nombras vocacionchest.lua dentro pegas esto.


    Código:
     function onUse(cid, item, frompos, item2, topos)

    voc = getPlayerVocation(cid)
    queststatus = getPlayerStorageValue(cid,11554)


    if voc == 5 then
    if queststatus == -1 then
    doPlayerAddItem(cid,10518,1)
    doPlayerAddItem(cid,8918,1)
    doPlayerAddItem(cid,8922,1)
    doPlayerAddItem(cid,2305,1)
    doPlayerAddItem(cid,2304,1)
    doPlayerAddItem(cid,6132,1)
    doPlayerAddItem(cid,8890,1)
    doPlayerAddItem(cid,7730,1)
    doPlayerAddItem(cid,2261,1)
    doPlayerAddItem(cid,9778,1)
    doPlayerAddItem(cid,2293,1)
    doPlayerAddItem(cid,7590,100)
    doPlayerAddItem(cid,2268,1)
    doPlayerAddItem(cid,2195,1)
    doPlayerAddItem(cid,2160,1)
    doPlayerAddItem(cid,2789,100)
    doPlayerAddItem(cid,2120,1)
    doPlayerAddItem(cid,5710,1)
    doPlayerAddItem(cid,2420,1)
    setPlayerStorageValue(cid,11554,1)
    else
    doPlayerSendTextMessage(cid,22,"Warea gay")
    end
    elseif voc == 6 then
    if queststatus == -1 then
    doPlayerAddItem(cid,10518,1)
    doPlayerAddItem(cid,8918,1)
    doPlayerAddItem(cid,2474,1)
    doPlayerAddItem(cid,8910,1)
    doPlayerAddItem(cid,2305,1)
    doPlayerAddItem(cid,8890,1)
    doPlayerAddItem(cid,7730,1)
    doPlayerAddItem(cid,2304,1)
    doPlayerAddItem(cid,9778,1)
    doPlayerAddItem(cid,6132,1)
    doPlayerAddItem(cid,7590,100)
    doPlayerAddItem(cid,2268,1)
    doPlayerAddItem(cid,2269,1)
    doPlayerAddItem(cid,2261,1)
    doPlayerAddItem(cid,2293,1)
    doPlayerAddItem(cid,2278,1)
    doPlayerAddItem(cid,2160,1)
    doPlayerAddItem(cid,2195,1)
    doPlayerAddItem(cid,2789,100)
    doPlayerAddItem(cid,2120,1)
    doPlayerAddItem(cid,5710,1)
    doPlayerAddItem(cid,2420,1)
    else
    doPlayerSendTextMessage(cid,22,"Warea gay")
    end
    elseif voc == 7 then
    if queststatus == -1 then
    doPlayerAddItem(cid,10518,1)
    doPlayerAddItem(cid,6391,1)
    doPlayerAddItem(cid,7368,1)
    doPlayerAddItem(cid,2305,1)
    doPlayerAddItem(cid,2293,1)
    doPlayerAddItem(cid,2278,1)
    doPlayerAddItem(cid,8851,1)
    doPlayerAddItem(cid,6529,1)
    doPlayerAddItem(cid,2261,1)
    doPlayerAddItem(cid,8888,1)
    doPlayerAddItem(cid,2269,1)
    doPlayerAddItem(cid,9777,1)
    doPlayerAddItem(cid,2471,1)
    doPlayerAddItem(cid,6132,1)
    doPlayerAddItem(cid,8472,100)
    doPlayerAddItem(cid,2268,1)
    doPlayerAddItem(cid,2160,1)
    doPlayerAddItem(cid,2195,1)
    doPlayerAddItem(cid,2789,100)
    doPlayerAddItem(cid,2120,1)
    doPlayerAddItem(cid,5710,1)
    doPlayerAddItem(cid,2420,1)
    setPlayerStorageValue(cid,11554,1)
    else
    doPlayerSendTextMessage(cid,22,"Warea gay")
    end
    elseif voc == 8 then
    if queststatus == -1 then
    doPlayerAddItem(cid,10518,1)
    doPlayerAddItem(cid,8930,1)   
    doPlayerAddItem(cid,6433,1)
    doPlayerAddItem(cid,2304,1)
    doPlayerAddItem(cid,2269,1)
    doPlayerAddItem(cid,2261,1)
    doPlayerAddItem(cid,2305,1)
    doPlayerAddItem(cid,2293,1)
    doPlayerAddItem(cid,2278,1)
    doPlayerAddItem(cid,6132,1)
    doPlayerAddItem(cid,7620,1)
    doPlayerAddItem(cid,8881,1)
    doPlayerAddItem(cid,2469,1)
    doPlayerAddItem(cid,2493,1)
    doPlayerAddItem(cid,2195,1)
    doPlayerAddItem(cid,7591,100)
    doPlayerAddItem(cid,2160,1)
    doPlayerAddItem(cid,2789,100)
    doPlayerAddItem(cid,2120,1)
    doPlayerAddItem(cid,5710,1)
    doPlayerAddItem(cid,2420,1)
    setPlayerStorageValue(cid,11554,1)
    else
    doPlayerSendTextMessage(cid,22,"Warea gay.")
    end
    else
    return 0
    end

    return 1
    end
    ahora vas a y añades esta tag:

    data/action/actions.xml


    Código:
    <action uniqueid="3541" script="vocacionchest.lua"/>
    ahora abres tu mapa en rme y en un chest colocas en UniqueID:3541

    Solo editas los items en:


    Código:

    doPlayerAddItem(cid,10518,1)
    en 10518sera el ID del item y en 1sera la cantidad.

    y listo



    [Actions] first item Tfs/ Otx chest YNU5B25
    http://www.tibiaface.com

    Ver el tema anterior Ver el tema siguiente Volver arriba  Mensaje (Página 1 de 1.)

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

     

    BienvenidosTibiaFace es una comunidad de Open Tibia. Para participar debes estar registrado (click para Regístrate).