SphereCommunity
Raise - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Raise (/Thread-Raise)



Raise - mrkarlo - 06-03-2018 02:22 PM

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.


RE: Raise - darksun84 - 06-03-2018 07:55 PM

Use serv.newnpc c_ogre and then new.p, same for the above


RE: Raise - mrkarlo - 06-03-2018 11:14 PM

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.


RE: Raise - azmanomer - 06-04-2018 01:08 AM

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


RE: Raise - mrkarlo - 06-04-2018 04:08 AM

(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



RE: Raise - darksun84 - 06-04-2018 04:38 AM

These are item properties, while character properties are different:

https://wiki.spherecommunity.net/index.php?title=Characters


RE: Raise - mrkarlo - 06-04-2018 04:52 AM

may i ask you to edit this script