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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ressurection help
Author Message
darksoulfe
Journeyman
*

Posts: 60
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2013
Reputation: 0



Post: #1
Ressurection help
Well guys day,

I'm hum problem , when I am the owner and write Command .admin I click hum player and try one resurrection nothing happens , I made a resurrection script also a floor where passing over the dead player back to life. The player tries to spend more is prevented , so nothing makes the player live again.

below the script
[ 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
return 1
endif


I am with this difficulty help me
03-10-2016 11:27 PM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #2
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
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #3
RE: Ressurection help
Method to do what u want with any item.

1-create item
2- set type t_shrine
3-step the item and resurrect.
03-12-2016 06:05 AM
Find all posts by this user Like Post Quote this message in a reply
Llirik
Journeyman
*

Posts: 115
Likes Given: 0
Likes Received: 10 in 8 posts
Joined: Feb 2015
Reputation: 0

UO Forum

Post: #4
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

Smile
(This post was last modified: 03-13-2016 05:40 PM by Llirik.)
03-13-2016 05:30 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #5
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. Smile

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
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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