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
NPC does not drink potion. and invisible spell problems
Author Message
Satvet
Journeyman
*

Posts: 105
Likes Given: 32
Likes Received: 6 in 6 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
Post Reply 


Messages In This Thread
RE: NPC does not drink potion. and invisible spell problems - Satvet - 05-17-2018 07:34 AM

Forum Jump:


User(s) browsing this thread: 6 Guest(s)