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:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
elementals
Author Message
mrkarlo
Journeyman
*

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



Post: #1
elementals
hey people! i have a problem. i cant mine elementals:

Code:
[REGIONRESOURCE mr_iron]    // default mining result.
// t_rock
skill=1.0,30.0
amount=9,30
REAP=i_ore_iron
REGEN=60*60*10

ON=@RESOURCEFOUND
IF (<eval RAND(2)> == 1)
    SERV.NEWNPC c_elem_earth
    NEW.UPDATEX
    NEW.ANIM 12
    NEW.ATTACK <SRC>
    ENDIF

tell me please, why?
(This post was last modified: 02-03-2013 07:07 AM by mrkarlo.)
02-03-2013 07:06 AM
Find all posts by this user Like Post Quote this message in a reply
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #2
RE: elementals
the server creates the elemental, but u don't have the coordinates where to put it.
so u have to add
new.p = <p>
or act.p, or whatever is the right p Tongue
02-03-2013 07:13 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: #3
RE: elementals
yee thanks man, new.home <new.p>

else, how can i make that he got out from earth more slowly? its possible?
(This post was last modified: 02-03-2013 07:33 AM by mrkarlo.)
02-03-2013 07:29 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: elementals
Hmm... Looks like part of my mining. I'll take a look, it used to work, was under the impression it still did.

Doesn't need <p> it fires under @resourcefound at which point a world gem but is placed and that is the <p>

Code:
[REGIONRESOURCE mr_iron]    // default mining result.
// t_rock
skill=1.0,30.0
amount=9,30
REAP=i_ore_iron
REGEN=60*60*10

ON=@RESOURCEFOUND
    SERV.NEWNPC c_elem_earth
    NEW.UPDATEX
    NEW.ANIM 12
    NEW.ATTACK <SRC>

works fine and will dig up an earth ele every time.
As for speeding up or slowing down the animation of him climbing out, I an not sure it can be done.

[Image: 2nis46r.jpg]
(This post was last modified: 02-03-2013 07:46 AM by Mordaunt.)
02-03-2013 07:31 AM
Visit this user's website 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: elementals
yes sir its yours. maybe its possible to to make that elemental grow up from earth more slowly? i dont mean rand!
02-03-2013 07:49 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: elementals
Yes I know what you mean, I'm not sure the animation effect can be slowed though.

[Image: 2nis46r.jpg]
02-03-2013 07:49 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #7
RE: elementals
well...it depends on what u want.....
if u want a certain delay between the found ore and the summoning of the elemental, instead of doing directly under @resourcefound the things, u could use a TIMERF function, so u can give the delay.

Or, always with timerf, u can spawn the elemental "UNDER" the ground, and make it slowely rise duging up it time to time, dunno if u get it.

These are the only things that comes up in my mind as a workround for ur anim.
02-03-2013 07:52 AM
Find all posts by this user Like Post Quote this message in a reply
arka
Apprentice
*

Posts: 14
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #8
RE: elementals
something old i found in my scripts, u could rewrite it for your elemental and raise it out of the ground

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


[typedef t_raise]
on=@timer
if (<p.z> < <morez>)
m=0,0,1
timerd={1 3}
endif
return 1
02-03-2013 01:19 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: #9
RE: elementals
wow, that would be great!
02-03-2013 06:47 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: #10
RE: elementals
people tell me, how to bind this func to on=@resourcefound? call f_raise ? howw?
02-09-2013 11:40 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)