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
Unshrink
Author Message
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #1
Unshrink
Hi,
I have this problem when player tamed a horse shrunk him and after unshrinking him the horse is attacking him. Can i change that?
10-19-2014 01:29 AM
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: #2
RE: Unshrink
This is not happening to me maybe player unshrink the horse while he is in warmode?
10-19-2014 02:00 AM
Find all posts by this user Like Post Quote this message in a reply
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #3
RE: Unshrink
horse is evil - karma, warmode doesnt make any difference. Seems like animal remembers that he was atacking you and after unshrinking he is still atacking you
10-19-2014 02:19 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #4
RE: Unshrink
I asume you have default shrinks, right? If so try this:

Code:
[typedef t_figurine]
ON=@DClick
ref1=<more2>
if (<ref2.ischar> && <ref2.IsMyPet> && (<ref2.flags>&statf_war))
ref2.flags &=~statf_war
endif
10-19-2014 02:35 AM
Find all posts by this user Like Post Quote this message in a reply
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #5
RE: Unshrink
from witch scp did you get this as i cant find this anywhere on my scripts
10-19-2014 03:01 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #6
RE: Unshrink
From none, [typedef ] is used to create new types or to override the existing ones, just place anywhere on your scripts and you are done.
10-19-2014 04:31 PM
Find all posts by this user Like Post Quote this message in a reply
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #7
RE: Unshrink
Hi, i did that but the same problem exists. I have noticed that if that shrinked animal is being given to another player, after unshrinking it doesnt attack. Maybe problem is with taming script? I am using original taming system
10-19-2014 05:21 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #8
RE: Unshrink
The problem itself is that taming doesn't remove the war memories, which is not a problem IMO, but you can adapt it to remove them with externals, remove the last code and apply this to your taming skill:

Code:
ON=@Success
if (<act.attacker.id <uid>>>=0)
    act.attacker.delete <uid>
endif

Easier and cleaner than the typedef fix.
10-19-2014 05:52 PM
Find all posts by this user Like Post Quote this message in a reply
Kapa
Journeyman
*

Posts: 74
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2014
Reputation: 0



Post: #9
RE: Unshrink
Still having the same problem. Seems like after taming an animal player can even hit him and he stays loyal but still attacks him. And only after getting killed by the animal the animal stops attacking player. It dont matter if you shrink animal after taming or just mount after unmounting he still attacks you

After using peace making the animal stops attacking
(This post was last modified: 10-19-2014 11:58 PM by Kapa.)
10-19-2014 11:51 PM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #10
RE: Unshrink
This problem relates to any 'red' evil pet that any player has, you need a small event for your pets.
Code:
[events e_npc_evil]
on=@attack
if (<memoryfindtype.02>)
  if (<memoryfindtype.02.link>==<src.uid>)
    return 1
  endif
endif
Add the event e_npc_evil to all your npc characters, easy to do in sphere.ini.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
10-21-2014 06:54 AM
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: 9 Guest(s)