SphereCommunity
trigger=timer - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions)
+--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help)
+--- Thread: trigger=timer (/Thread-trigger-timer)



trigger=timer - jdchixin - 03-31-2013 12:02 PM

ONTRIGGER=TIMER
newitem=0xx //can not work

return 1

Time-trigger, can not produce the ITEMS?


RE: trigger=timer - x77x - 03-31-2013 12:43 PM

Code:
[ITEMMENU 303]
Okay Then. But You Gotta Say The Magic Words...
ON=I've Fallen And I Can't Get Up!
IF <SRC.FLAGS> & 2
SAY Help! I've Fallen And I Can't Get Up!
SRC.FAME 0
NEWITEM 07878 //ID of the stuck coin
ACT.LINK=<SRC.SERIAL>
ACT.TIMER=20
SYSMESSAGE #0481,3,You will be resurrected in 20 seconds...
ELSE
SRC.SYSMESSAGE=You Are Not Dead!
RETURN 1
ENDIF


Code:
//RESURRECT COIN

[7878]
ID=0eed
ATTR=090
TYPE=0
NAME=rez coin

ONTRIGGER=TIMER
IF <LINK.FLAGS> & 2
    LINK.RESURRECT
    LINK.SYSMESSAGE #0481,3, You have been Revived!
    LINK.SYSMESSAGE #0481,3, You Need To Be More Careful...
        LINK=04FFFFFFF
        REMOVE
    RETURN 1
    ELSE
    LINK.SYSMESSAGE You Are Not Dead!
        LINK=04FFFFFFF
        REMOVE
    RETURN 1
    ENDIF



RE: trigger=timer - jdchixin - 03-31-2013 01:32 PM

i want NEWITEM something, Not modify the properties of LINK

Just now I'm in your sever


RE: trigger=timer - Mulambo - 03-31-2013 09:26 PM

Timers have no problem with creating items. We use them in our spawn trap system

Code:
ONTRIGGER=TIMER
    IF (<MOREY> == 1)
        LINK.NEWITEM=0xxxx
        LINK.ACT.P=<LINK.P>
        LINK=04fffffff
        MOREY=0
        TIMER=<MOREX>
    ENDIF
    RETURN 1



RE: trigger=timer - evening - 04-01-2013 02:53 AM

Say the features you need!


RE: trigger=timer - uo520 - 06-29-2013 07:11 PM

In 51a, item cannot create anything, so use cont or link to a npc to create newitem.