Thread Rating:
- 1 Votes - 5 Average
- 1
- 2
- 3
- 4
- 5
Ressurection help
|
Author |
Message |
Kanibal
Master
Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0
|
RE: Ressurection help
WTF?
Code:
ON = @ STEP
SRC.RESURRECT
return 1
endif
This works fine. Sphere 0.56b
Code:
[ITEMDEF i_resspase]
name=marble floor
id=i_floor_marble
on=@create
attr=attr_move_never | attr_static | attr_invis
color=0
on=@step
src.resurrect
Grandmaster Localhost Admin
|
|
03-11-2016 05:48 PM |
|
|
Llirik
Journeyman
Posts: 115
Likes Given: 0
Likes Received: 10 in 8 posts
Joined: Feb 2015
Reputation: 0
UO Forum
|
RE: Ressurection help
Type for t_shrine:
[TYPEDEF t_shrine]
ON=@ContextMenuRequest
SRC.AddContextEntry 101,3006195,<QVAL (<SRC.FLAGS> & statf_dead)? 0:1> //Resurrect
SRC.AddContextEntry 102,3006049,<QVAL (<SRC.Necromancy> < 1000) && (<SRC.FLAGS> & statf_dead) ? 0:1> // Train Necromancy
ON=@ContextMenuSelect
IF (<ARGN>==101) && (<SRC.FLAGS> & statf_dead)
SRC.RESURRECT
ENDIF
IF (<ARGN>==102) && (<SRC.FLAGS> & statf_dead) && (<SRC.Necromancy> < 1000)
IF (<SRC.GOLD> >= 10000)
SRC.GOLD -= 10000
SRC.UPDATE
src.Necromancy += 1
SRC.RESURRECT
ELSE
SRC.SYSMESSAGE You don't have 10000 gold.
ENDIF
ENDIF
(This post was last modified: 03-13-2016 05:40 PM by Llirik.)
|
|
03-13-2016 05:30 PM |
|
|
Khaos
Master
Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11
|
RE: Ressurection help
Use Src.Resurrect 1. In fact go to script submissions and grab my t_Shrine code from there and just run checks for a floor tile and make it so it doesn't parse the tithing for the tile.
Llirik, I added support for @DClick just a few moments ago. Try to keep the Src.Resurrect 1 on it instead of removing the 1. It forces the parsing and might be an issue without it. Not sure, it used to be. So forcing it seems more ideal and the syntax looks cleaner using the 1.
Code:
[ItemDef i_resspase]
Name=marble floor
ID=i_Floor_Marble
Type=t_Floor
Can=Can_I_Platform
On=@Create
Attr=Attr_Move_Never|Attr_Static|Attr_Invis
On=@Step
If (<Src.Flags> &StatF_Dead)
Src.Resurrect 1
EndIf
There, that should process it now. Resurrect 2 would never work. If you need them to have fractional life or even full life, let me know. Will edit it for you.
(This post was last modified: 03-13-2016 11:04 PM by Khaos.)
|
|
03-13-2016 10:31 PM |
|
|
User(s) browsing this thread: 1 Guest(s)