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
Shrink
Author Message
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #1
Shrink
Hi, a little problem

on=@gethit
shrink


When player hits an npc with this trigger, shrink works. But, it doesnt work with NPC. I mean, NPC hits this NPC(with this trigger).

Serv.log says that it's Undefined keyword 'shrink'.

Any ideas?
(This post was last modified: 04-08-2013 10:19 AM by Alaric.)
04-08-2013 10:05 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: #2
RE: Shrink
I think because as the command tele and resurrect are treated like a spell, so it's shrink.

So it's possible that the flag SPELLFLAG_PLAYERONLY found in spherespells.scp in the shrink spell, forbids the npc to use it .(You have to restart the server when you remove it)
04-08-2013 07:43 PM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #3
RE: Shrink
[spell 72]
flags
spellflag_targ_char (it is char....)
spellflag_dir_anim (doesnt matter)
spellflag_harm (doesnt matter)
spellflag_fx_targ (targ living thing, it is living...)
04-08-2013 11:20 PM
Find all posts by this user Like Post Quote this message in a reply
sco
Apprentice
*

Posts: 38
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Mar 2012
Reputation: 7

Elantharil

Post: #4
RE: Shrink
You could just do it soft:

PHP Code:
on=@gethit
uid
.<f_custom_shrink>.= <p>

//Custom Shrink - has to be called on a npc, no checks
//no args
//return - the uid of the item to unshrink it
[function f_custom_shrink]
flags = <flags> | 068000000
removefromview
disconnect
serv
.newitem <icon>
serv.lastnewitem.name = <name>
serv.lastnewitem.more2 = <uid>
serv.lastnewitem.more1 = <id>
serv.lastnewitem.attr 020
serv
.lastnewitem.type t_figurine //not needed in most cases
actarg1 = <serv.lastnewitem.uid>
action 111
return <serv.lastnewitem.uid
(This post was last modified: 04-09-2013 06:22 PM by sco.)
04-09-2013 06:19 PM
Visit this user's website 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)