SphereCommunity
Tylerman [Can't dclick] - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Tylerman [Can't dclick] (/Thread-Tylerman-Can-t-dclick)



Tylerman [Can't dclick] - Lazarus - 09-10-2012 11:29 AM

Hi! i have a problem with a script of tillerman

Im using the tiller of someone. Works fine if you are a GM and you get the dclick on the tillerman, but! if you are a player, you never get too close to click it [You don't reach that]..
Any ideas?

Code:
on=@dclick
if <region.uid> != <src.region.uid>
    ref1=<link>
    forcont <src.findlayer(layer_pack)>
        if <type> == t_key
            if <link> == <ref1>
                local.key = <uid>
            endif
        endif
    endfor
    forobjs
        if <region.uid> == <ref1>
            if <isitem>
                if <link> == <ref1> && <uid> != <ref1>
                    local.item ++
                endif
            else
                local.char ++
            endif
        endif
    endfor
    if <src.flags>&statf_dead
        src.sysmessage @,,2 502493 //Pareces muerto.
    elif !<local.key>
        src.sysmessage @,,2 502494 //Debes tener una llave para deedear el barco.
    elif !<link.tag0.anchor>
        src.sysmessage @,,2 1010570 //Deberias bajar el ancla para estacionar el bote.
    elif <local.char>
        src.sysmessage @,,2 502495 //No se puede acoplar el bote con seres a bordo!
    elif <local.item>
        src.sysmessage @,,2 502496 //No puedes acoplar el bote con la cubierta llena!.
    elif <ref1.hatch.count>
        src.sysmessage @,,2 502497 //Fijate que el cajon este vacio e intenta de nuevo!
    else
        f_ResendDialog d_DryDocking
    endif
    return 1
endif

Thanks!

Lazarus


RE: Tylerman [Can't dclick] - Extreme - 09-10-2012 12:12 PM

Change to @Click.


RE: Tylerman [Can't dclick] - Shaklaban - 09-10-2012 02:30 PM

you can also add CAN_I_DCIGNORELOS to tillerman. but you have to add all of them in sphere_item_ship_parts.scp.

[ITEMDEF 03e4b]
//tiller man
TYPE=T_SHIP_TILLER
CAN=CAN_I_DCIGNORELOS
//DUPEITEM=03e4a


RE: Tylerman [Can't dclick] - Lazarus - 09-10-2012 02:42 PM

(09-10-2012 02:30 PM)Shaklaban Wrote:  you can also add CAN_I_DCIGNORELOS to tillerman. but you have to add all of them in sphere_item_ship_parts.scp.

[ITEMDEF 03e4b]
//tiller man
TYPE=T_SHIP_TILLER
CAN=CAN_I_DCIGNORELOS
//DUPEITEM=03e4a


more easy the click

Thanks to all =)
^_^