The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tylerman [Can't dclick]
Author Message
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #1
Tylerman [Can't dclick]
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

[Image: 2hy9q0y.png]
09-10-2012 11:29 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Tylerman [Can't dclick]
Change to @Click.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-10-2012 12:12 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #3
RE: Tylerman [Can't dclick]
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
09-10-2012 02:30 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Lazarus
Master
**

Posts: 352
Likes Given: 11
Likes Received: 7 in 6 posts
Joined: Jun 2012
Reputation: 1

Hybris Ultima Online

Post: #4
RE: Tylerman [Can't dclick]
(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 =)
^_^

[Image: 2hy9q0y.png]
09-10-2012 02:42 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 4 Guest(s)