Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Poison Problem
Author Message
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #1
Poison Problem
Hi guys,

I have 1 problem with the poison, if i infect one player or mob with poison ( using magery or weapons ) the player and the mobs, automatically remove the poison.
I've been watching my scripts and I dont have nothing to indicate that the mobs and players can have this behavior.

I need your help.
04-29-2016 10:46 PM
Find all posts by this user Like Post Quote this message in a reply
roberpot
Moderator
****

Posts: 48
Likes Given: 4
Likes Received: 12 in 8 posts
Joined: Apr 2014
Reputation: 0



Post: #2
Poison Problem
Are you sure poison is removed or only the hits bar becomes normal?
04-30-2016 01:19 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #3
RE: Poison Problem
(04-29-2016 10:46 PM)Van Glan Bloom Wrote:  Hi guys,

I have 1 problem with the poison, if i infect one player or mob with poison ( using magery or weapons ) the player and the mobs, automatically remove the poison.
I've been watching my scripts and I dont have nothing to indicate that the mobs and players can have this behavior.

I need your help.

Where is the script that apply the poison?
What are you using? SRC.POISON?
This happen when you don't set the strength..

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
04-30-2016 03:34 AM
Find all posts by this user Like Post Quote this message in a reply
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #4
RE: Poison Problem
In my scripts for poisoning the weapons i have this :

Code:
LOCAL.POISONUSES=<ARGV[0]>
LOCAL.POISONDMG=<ARGV[1]>
        if (<src.targ.isweapon>)
            SRC.TARG.EVENTS +t_poison_potion
            SRC.TARG.TAG0.POISONUSES=<dLOCAL.POISONUSES>
            SRC.TARG.TAG0.POISONUSESMAX=<dLOCAL.POISONUSES>
            SRC.TARG.TAG0.POISONDMG=<dLOCAL.POISONDMG>
            SRC.NEWITEM i_bottle_empty
                        SRC.SOUND 583
            SRC.NEW.Bounce
            SRC.TARG.UPDATE
            SRC.CONSUME 1 i_potion_poisoncactus
            src.sysmessage @09c1 You apply the poison in this <src.targ.name>
            remove
            return 1
        else
            src.sysmessage @09c1 That is not a weapon!
            return 1        
        endif
    else
        src.sysmessage @09c1 You can`t apply the <name> in this <src.targ.name>
        return 1        
    endif
ENDIF
RETURN 1

But the problem is all the forms for aplly the poison in the mobs or players. If i use the poison spell hapens the same. I can poison my target but 1 sec later the poison is automatically remove.

http://forum.spherecommunity.net/images/.../image.png

1 sec. later

http://forum.spherecommunity.net/images/.../image.png


Attached File(s) Thumbnail(s)
       
04-30-2016 10:00 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #5
RE: Poison Problem
You sent the script when poison weapon.. I want to know how you apply that poison on players/npcs..

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
04-30-2016 10:19 PM
Find all posts by this user Like Post Quote this message in a reply
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #6
RE: Poison Problem
for the weapons i use this code

Code:
[TYPEDEF t_poison_potion]
ON=@DAMAGE
IF (<TAG0.POISONUSES><=0)
    emote reached the limit of poison charges
    EVENTS -t_poison_potion
ELSE
    SRC.EFFECT=3,i_fx_curse,15,15,1
    SRC.POISON <dTAG0.POISONDMG>
    SRC.SOUND=snd_spell_poison
    TAG0.POISONUSES -= 1
ENDIF

on=@click
Message @055 [Poisoned: <dTAG0.POISONUSES>/<dTAG0.POISONUSESMAX>]

But i need in POISON SPELL too. Where i can see the problem?
05-01-2016 12: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: #7
RE: Poison Problem
Do you have fresh script pack? or an older one with a newer build? Since some time ago some spells require to have LAYER=xx in their definition.
05-01-2016 07:09 PM
Find all posts by this user Like Post Quote this message in a reply
Van Glan Bloom
Journeyman
*

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0



Post: #8
RE: Poison Problem
In currently moment i using the sphere 0.56c, soon is a newer build. Idont have made any change in the script spells, since I upgraded the server. However in the sphere 56b I never had this problem with the poison.

Where i can make the changes?
05-02-2016 09:13 AM
Find all posts by this user Like Post Quote this message in a reply
Criminal
Journeyman
*

Posts: 182
Likes Given: 38
Likes Received: 22 in 22 posts
Joined: Jun 2015
Reputation: 0

SantiagoUO.com

Post: #9
RE: Poison Problem
go sphere_spells

[SPELL 20]
DEFNAME=s_poison
NAME=Poison
SOUND=snd_spell_poison
RUNES=IN
CAST_TIME=1.5
RESOURCES=i_reag_nightshade
RUNE_ITEM=i_rune_poison
SCROLL_ITEM=i_scroll_poison
FLAGS=spellflag_dir_anim|spellflag_targ_obj|spellflag_harm|spellflag_fx_targ
EFFECT_ID=i_fx_curse
EFFECT=0 // 100,750
LAYER=layer_flag_poison
DURATION=1.0,15.0
MANAUSE=9
SKILLREQ=MAGERY 30.0
INTERRUPT=100.0,100.0

[Image: mfqAZnj.png]
Discord: SantiagoUO
Skype:
criminaluo
05-02-2016 09:49 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Criminal's post
XuN
Sphere Developer
*****

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



Post: #10
RE: Poison Problem
I know that having that insane amount of text in front of you makes you think about commiting suicide, however it is almost a must to read the revisions files between your old build and the newer one because there are more changes like this that needs you to update your files (same as for sphere_msgs holding font, color, etc for names and much more, new flags for spells on sphere_spells.scp and not only that LAYER, same for skills in sphere_skills.... most of these changes are documented after a 'script pack' note in them, you should take a look at least into them) Smile
05-02-2016 06:46 PM
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)