Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC does not drink potion. and invisible spell problems
Author Message
Satvet
Journeyman
*

Posts: 84
Likes Given: 30
Likes Received: 5 in 5 posts
Joined: Sep 2015
Reputation: 0



Post: #1
NPC does not drink potion. and invisible spell problems
In the 56b version, over NPCs in when I left the potions on the they were drinking.
why does not this feature now? or how can I activate this feature?

the player becomes invisible with Invisible (An Lor Exen) magic.
and then pass from inside another player or NPC the invisibility is degraded
Build Version: 528. 56d-Nightly

Errors triggers success.
05-10-2018 10:41 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,657
Likes Given: 234
Likes Received: 160 in 149 posts
Joined: Mar 2012
Reputation: 33



Post: #2
RE: NPC does not drink potion. and invisible spell problems
I am sure that NPCs never drank potion without the use of some scripts
05-10-2018 05:37 PM
Find all posts by this user Like Post Quote this message in a reply
Satvet
Journeyman
*

Posts: 84
Likes Given: 30
Likes Received: 5 in 5 posts
Joined: Sep 2015
Reputation: 0



Post: #3
RE: NPC does not drink potion. and invisible spell problems
I think you are wrong.
player character with would you try to drop a potion on a wounded ANIMAL. with the empty 56b package. it she works here.

Errors triggers success.
05-11-2018 12:54 AM
Find all posts by this user Like Post Quote this message in a reply
azmanomer
Journeyman
*

Posts: 131
Likes Given: 4
Likes Received: 17 in 15 posts
Joined: Nov 2013
Reputation: 1



Post: #4
RE: NPC does not drink potion. and invisible spell problems
for invis u can add event to players like;

on @personalspace

if <findlayer.39>
return 1
endif


for temporary solution. if you want to achive it from scripts there will be work around i think changing it from source is better idea.
(This post was last modified: 05-11-2018 02:14 AM by azmanomer.)
05-11-2018 01:58 AM
Find all posts by this user Like Post Quote this message in a reply
Satvet
Journeyman
*

Posts: 84
Likes Given: 30
Likes Received: 5 in 5 posts
Joined: Sep 2015
Reputation: 0



Post: #5
RE: NPC does not drink potion. and invisible spell problems
@azmanomer
thanks for the suggestion but I tried it.
it does not pass through. .:/

Errors triggers success.
05-11-2018 04:58 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 813
Likes Given: 4
Likes Received: 188 in 154 posts
Joined: Jul 2012
Reputation: 6

Dimension Shard

Post: #6
RE: NPC does not drink potion. and invisible spell problems
honestly I don't remember exactly the 56b behavior because last time I used 56b was 5 years ago

but I think the correct behavior is as it is now, if you drop an item over an pet, it should just try to place it on backpack (if it have an backpack) instead try to use the item

but anyway, to make pets invisible you can just cast Invisibility spell on the pet, or add an custom trigger @DropOn_Char on the invisibility potion to "activate" it when it got dropped over the pet
(This post was last modified: 05-17-2018 04:38 PM by Coruja.)
05-12-2018 07:04 AM
Find all posts by this user Like Post Quote this message in a reply
Satvet
Journeyman
*

Posts: 84
Likes Given: 30
Likes Received: 5 in 5 posts
Joined: Sep 2015
Reputation: 0



Post: #7
RE: NPC does not drink potion. and invisible spell problems
@Coruja
I think it was misunderstood. @DropOn_Char for I mean that, If you want to use 56d console, you can take an example
to an event on the character add


PHP Code:
[ITEMDEF I_POTION_COOLDOWN_ANIMAL]
DEFNAME=I_POTION_COOLDOWN_ANIMAL
ID
=I_MEMORY
ATTR
=ATTR_DECAY
TYPE
=T_EQ_SCRIPT
LAYER
=LAYER_SPECIAL

ON
=@TIMER
REMOVE
RETURN 1

ON
=@ITEMDROPON_CHAR
//- ARGO = Binek (ANIMAL)
//- ACT = Üzerine bırakılan obje (ITEM)
//- SRC = İşlem yapan kişi (CHAR)
IF (<ARGO.ISEVENT.E_ANIMALS>)
IF (<
ARGO.FINDID.I_POTION_COOLDOWN_ANIMAL>)
SRC.SYSMESSAGE @048,,1 Bu kadar hızlı iksir içmesi hiç iyi değil//- Drinking such fast potions is not good!
RETURN 1
ELSE
IF (<
ARGO.HITS> >= <ARGO.STR>)
SRC.SYSMESSAGE @48,,1 Sağlığı gayet iyi durumdaDaha fazla iksir içemez miğdesini bulandırabilir//- The health is fine! More potions absent the drinking. / The health is fine! More potions can make sick.
RETURN 1
ELSE
IF (<
ACT.BASEID> == I_POTION_HEALGREAT) && (<ARGO.HITS> < <ARGO.STR>)
IF (<
ACT.AMOUNT> >= 2)
SERV.NEWITEM=I_POTION_HEALGREAT,<EVAL <ACT.AMOUNT> -1>,<SRC>
SERV.NEWITEM=I_BOTTLE_EMPTY,1,<ARGO>
ARGO.EFFECT=3,I_FX_HEAL_EFFECT,6,19,
ARGO
.HITS=+={25 50}
ACT.REMOVE
DORAND 2
ARGO
.ANIM=5
ARGO
.ANIM=6
ENDDO
SERV
.NEWITEM=I_POTION_COOLDOWN_ANIMAL,1,<ARGO>
NEW.
LINK=<ARGO>
NEW.
TIMER=14
NEW.ATTR=06
RETURN 1
ELSE
SERV.NEWITEM=I_BOTTLE_EMPTY,1,<ARGO>
ARGO.EFFECT=3,I_FX_HEAL_EFFECT,6,19,
ARGO
.HITS=+={25 50}
ACT.REMOVE
DORAND 2
ARGO
.ANIM=5
ARGO
.ANIM=6
ENDDO
SERV
.NEWITEM=I_POTION_COOLDOWN_ANIMAL,1,<ARGO>
NEW.
LINK=<ARGO>
NEW.
TIMER=14
NEW.ATTR=06
RETURN 1
ENDIF //- (<ACT.AMOUNT> >= 2)
ENDIF //- (<ACT.BASEID> == I_POTION_HEALGREAT) && (<ARGO.HITS> < <ARGO.STR>)
ENDIF //- (<ARGO.HITS> >= <ARGO.STR>)
ENDIF //- (<ARGO.FINDID.I_HANDR_1>)
ENDIF //- (<ARGO.ISEVENT.E_ANIMALS>) 


watch the video for invisibility spell
the video

Errors triggers success.
(This post was last modified: 05-18-2018 06:57 PM by Satvet.)
05-17-2018 07:34 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 813
Likes Given: 4
Likes Received: 188 in 154 posts
Joined: Jul 2012
Reputation: 6

Dimension Shard

Post: #8
RE: NPC does not drink potion. and invisible spell problems
so you're talking about the reveal, not the invisibility spell cast?

to avoid reveal invisible chars when walk over him you can use @PersonalSpace trigger, setting ARGN1=0 will make the trigger skip dex/stamina/reveal checks, so you just need to check if (<FLAGS> & statf_invisible) -> set ARGN1=0
05-17-2018 04:54 PM
Find all posts by this user Like Post Quote this message in a reply
Satvet
Journeyman
*

Posts: 84
Likes Given: 30
Likes Received: 5 in 5 posts
Joined: Sep 2015
Reputation: 0



Post: #9
RE: NPC does not drink potion. and invisible spell problems
It does not work;
Quote:ON=@PersonalSpace
IF (<FLAGS>&Statf_Invisible)
ARGN1=0
ENDIF

Errors triggers success.
05-18-2018 03:55 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 813
Likes Given: 4
Likes Received: 188 in 154 posts
Joined: Jul 2012
Reputation: 6

Dimension Shard

Post: #10
RE: NPC does not drink potion. and invisible spell problems
my fault, ARGN1=0 will just make the char walk over without check dex or lose stamina. To skip all checks and messages (including hidden/invisible flags) you must set ARGN1=-1
05-18-2018 05:30 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.