Potion green and Purple with effect

10/20/2011 07:52 .Rebel#1
gretings i whant put my client with that potions make the effect

i have try by quest but not working
but if i type ingame /effect 3 work fine

PHP Code:
quest potionuse begin
    state start begin
        when 27113.click 
or 27114.click or 27115.click begin
            
--cmdchat("effect 4")
            
command("effect 4")
        
end
        when 27110.click 
or 27111.click or 27112.click begin
            
--cmdchat("effect 3")
            
command("effect 3")
        
end
    end
end 
and in the client is configured that effect

the bin have

PHP Code:
EFFECT_DXUP_PURPLE..EFFECT_SPEEDUP_GREEN 
the root have playermodule

PHP Code:
chrmgr.RegisterCacheEffect(chrmgr.EFFECT_SPEEDUP_GREEN"""d:/ymir work/effect/etc/recuperation/drugup_green.mse")
    
chrmgr.RegisterCacheEffect(chrmgr.EFFECT_DXUP_PURPLE"""d:/ymir work/effect/etc/recuperation/drugup_purple.mse"
if someone can help will apreciate
10/20/2011 11:04 .$Terra$.#2
type of the items?

What happen if you use the items?
10/20/2011 11:26 .Alpha.#3
Players have no access to the command /effect
I could give you a difference file so you can enable it for players but it could be possible that a player does find out the command and spams effects ...
You should rename the command to avoid this.
And oh, you have to use command("effect 3") instead of cmdchat("effect 3")
10/20/2011 16:45 .Rebel#4
Quote:
Originally Posted by .$Terra$. View Post
type of the items?

What happen if you use the items?
the item be used like normal "function work fine" but with no "effect"
and they are type 3

Quote:
Originally Posted by .Nova. View Post
Players have no access to the command /effect
I could give you a difference file so you can enable it for players but it could be possible that a player does find out the command and spams effects ...
You should rename the command to avoid this.
And oh, you have to use command("effect 3") instead of cmdchat("effect 3")
i will apreciate if you do that and corse change the name of the function in that way no joking with the effects
10/30/2011 22:07 FedoraPro#5
i Have the same problem Lexico i have just added the Effect for AutoPotion while Potting and seen that ther are these 2 effect to when i use ingame /effect3 74 it works fine but with the potion it just the sound anf no effect.

do u know where the red an Blue Potion get this effect /effect1 and /effect2 assigned ?
mybe u have to assigne the 2 effects too?