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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
paralyze shield problem..
Author Message
Pidrila
Apprentice
*

Posts: 36
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #1
paralyze shield problem..
i have a problem with paralyze shield..
first of all i have combat system on@=gethit trigger
and a paralyze field with on@=gethit trigger function..
when i get a spellsucces or gethit then player who hits other player (who have equiped this shield) then he gets paralyzed, but the problem is there that when player is gets paralyzed, the other player who has this shield, didnt get the last damage from player.. as like it missed the target.. that should not be..

here is the paralyze shield script

Code:
[ITEMDEF i_paralizzly_shield]
ID=I_SHIELD_Dupre
NAME=Paralizzly Shield
ARMOR=70
TYPE=T_SHIELD
SKILLMAKE=CARPENTRY 200.0, t_carpentry
VALUE=100

ON=@CREATE
HITPOINTS=100
COLOR=04ad

ON=@Click
MESSAGE  <name>
MESSAGE [Durability: <HITPOINTS>]
return 1

ON=@EQUIP
IF (<SRC.ISMAGE>)
SRC.events +e_paralizzly_shield
ELSE
SRC.events -e_paralizzly_shield
unequip
src.sysmessage @07a1,3 You cant equip mage items.
return 1
endif


ON=@UNEQUIP
SRC.events -e_paralizzly_shield
RETURN 1



[EVENTS e_paralizzly_shield]
ON=@GETHIT
IF !(<src.archery>>960.0)
IF rand(4)==1
var.act <src.act.uid>
src.newitem i_ice_memory_shield
src.act.equip
src.act <var.act>
src.damage <eval <act.tag0.damage>>,1,<uid>
return 1
endif
ENDIF


ON=@SpellSuccess
IF (<ARGN>==49) || (<ARGN>==1) || (<ARGN>==27) || (<ARGN>==57) || (<ARGN>==42) || (<ARGN>==43) || (<ARGN>==3) || (<ARGN>==69) || (<ARGN>==28) || (<ARGN>==18) || (<ARGN>==51) || (<ARGN>==12) || (<ARGN>==30) || (<ARGN>==5) || (<ARGN>==31) || (<ARGN>==53) || (<ARGN>==46) || (<ARGN>==55) || (<ARGN>==37) || (<ARGN>==38) || (<ARGN>==47) || (<ARGN>==39)
        if !(<act.uid> == <src.uid>)
        IF !(<SRC.NPC>)
            IF rand(4)==1
            timerf 1,ACT.SPELLEFFECT S_PARALYZE,10000
            timerf 1,ACT.SAY @0444 Paralyze!
            endif
            endif
            ENDIF
            ENDIF





ON=@SPELLEFFECT
IF (<ARGN>==49) || (<ARGN>==1) || (<ARGN>==27) || (<ARGN>==57) || (<ARGN>==42) || (<ARGN>==43) || (<ARGN>==3) || (<ARGN>==69) || (<ARGN>==28) || (<ARGN>==18) || (<ARGN>==51) || (<ARGN>==12) || (<ARGN>==30) || (<ARGN>==5) || (<ARGN>==31) || (<ARGN>==53) || (<ARGN>==46) || (<ARGN>==55) || (<ARGN>==37) || (<ARGN>==38) || (<ARGN>==47) || (<ARGN>==39)
    IF !(<SRC.UID>==<UID>)
        IF !(<SRC.NPC>)
                IF rand(4)==1
          SRC.SPELLEFFECT S_PARALYZE,10000
                RETURN 1
            ENDIF
            ENDIF
            ENDIF
            ENDIF

[ITEMDEF i_ice_memory_shield]
ID=I_MEMORY
TYPE=T_EQ_SCRIPT

ON=@EQUIP
TIMERD=1

ON=@TIMER
CONT.EFFECT=3,i_fx_curse,15,15,1
CONT.FLAGS |= 04
CONT.SAY @0444 Paralyze!
REMOVE
RETURN 1
02-09-2014 05:36 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
paralyze shield problem.. - Pidrila - 02-09-2014 05:36 PM
RE: paralyze shield problem.. - Samba - 02-09-2014, 06:35 PM
RE: paralyze shield problem.. - XuN - 02-09-2014, 06:53 PM
RE: paralyze shield problem.. - Pidrila - 02-09-2014, 06:53 PM

Forum Jump:


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