Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raise
Author Message
mrkarlo
Journeyman
*

Posts: 158
Likes Given: 3
Likes Received: 3 in 3 posts
Joined: Mar 2012
Reputation: 0



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,634
Likes Given: 224
Likes Received: 149 in 140 posts
Joined: Mar 2012
Reputation: 33



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: 158
Likes Given: 3
Likes Received: 3 in 3 posts
Joined: Mar 2012
Reputation: 0



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: 129
Likes Given: 4
Likes Received: 17 in 15 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: 158
Likes Given: 3
Likes Received: 3 in 3 posts
Joined: Mar 2012
Reputation: 0



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,634
Likes Given: 224
Likes Received: 149 in 140 posts
Joined: Mar 2012
Reputation: 33



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: 158
Likes Given: 3
Likes Received: 3 in 3 posts
Joined: Mar 2012
Reputation: 0



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)

This forum uses Lukasz Tkacz MyBB addons.