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-nmm6 (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-nmm6 (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-nmm6 (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
Raise
Author Message
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #1
Raise
Hi, help me please in advice.

Code:
[function f_rslow]
newitem=05a
act.p=<p>
act.m=0,1,-20
act.type=t_rslow
act.timerd=1
act.morez=<p.z>
act.attr=010

This script raise stone wall block from the underground. How could it be rewriten for an npc? instead of newitem newnpc=i_warrior, but my warrior does not get out of the ground and sits there.
06-03-2018 02:22 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Raise
Use serv.newnpc c_ogre and then new.p, same for the above
06-03-2018 07:55 PM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #3
RE: Raise
Thank you Darksun, now c_ogre gettin out of the ground (serv.newnpc,new.p=<p>), but other lines of code do not work. The thing is that - npc should get out more slowly.
06-03-2018 11:14 PM
Find all posts by this user Like Post Quote this message in a reply
azmanomer
Journeyman
*

Posts: 139
Likes Given: 4
Likes Received: 18 in 16 posts
Joined: Nov 2013
Reputation: 1



Post: #4
RE: Raise
you need to replace all act as new like ;

[function f_rslow]
serv.newnpc c_ogre
new.p=<p>
new.m=0,1,-20
new.type=t_rslow
new.timerd=1
new.morez=<p.z>
new.attr=010
06-04-2018 01:08 AM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #5
RE: Raise
(06-04-2018 01:08 AM)azmanomer Wrote:  you need to replace all act as new like ;

[function f_rslow]
serv.newnpc c_ogre
new.p=<p>
new.m=0,1,-20
new.type=t_rslow
new.timerd=1
new.morez=<p.z>
new.attr=010

Still he does not want to get out of the ground. With stone wall its ok, but with mobs..Sad( ogre appears, but sits underground

Code:
[typedef t_rslow]
on=@timer
if (<p.z> < <morez>)
m=0,0,1
timerd={1 3}
endif
return 1
06-04-2018 04:08 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: Raise
These are item properties, while character properties are different:

https://wiki.spherecommunity.net/index.p...Characters
06-04-2018 04:38 AM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #7
RE: Raise
may i ask you to edit this script
06-04-2018 04:52 AM
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)