[Problem]Effect buff item

11/10/2012 11:44 Shagod6#1
Hi epvpers!

Yesterday I try to add some item with effect buff. So there are 3 problem:

1) How do I recall the effect buff in game witch "cmdchat" if the item type can't be 16? Do not tell me to put the type 18 because otherwise the item is not equipped in the two special slots.

2) The effect buff not start from the ground but from above the ead.

3) Writing in chat (buff1) or similar, runs the effect even without using the item.

So, these are the pieces of code that I added to the client:

game.py:

Code:
def __buff1(self):		net.SendChatPacket("(buff1)")
	def __buff2(self):
		net.SendChatPacket("(buff2)")
	def __buff3(self):
		net.SendChatPacket("(buff3)")
	def __pot1(self):
		net.SendChatPacket("(pot1)")
	def __pot2(self):

		net.SendChatPacket("(pot2)")
In -> def __ServerCommand_Build(self):
serverCommandList={
Code:
"buff1"                    : self.__buff1,
            "buff2"                    : self.__buff2,
            "buff3"                    : self.__buff3,
            "pot1"                    : self.__pot1,
            "pot2"                    : self.__pot2,
playersettingmodule.py:

Code:
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+12, "", BuffStr+"buff_item1.mse")
    net.RegisterEmoticonString("(buff1)")

    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+13, "", BuffStr+"buff_item2.mse")
    net.RegisterEmoticonString("(buff2)")

    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+14, "", BuffStr+"buff_item3.mse")
    net.RegisterEmoticonString("(buff3)")
And I said:

Code:
BuffStr = "d:/ymir work/effect/etc/buff/"
uichat.py:


Code:
def __SendChatPacket(self, text, type):
if text == "(buff1)":
            return
        elif text == "(buff2)":
            return
        elif text == "(buff3)":
            return
        elif text == "(pot1)":
            return
        elif text == "(pot2)":
            return
        elif net.IsChatInsultIn(text):
            chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
        else:
            net.SendChatPacket(text, type)
Hoping that I had made ​​it clear(i'm italian).

Curious to see if someone will help me. :o

Kind regards :awesome:

11/10/2012 11:50 Chezzi#2
fail
11/10/2012 11:54 CrystalPrime#3
Quote:
Originally Posted by Chezzi View Post
fail
Hilf lieber statt zu Failen.

b2t:
leider kp davon
11/10/2012 11:59 Shagod6#4
I don't understand the reason for these answers.
Probably even you know how to solve.
11/10/2012 12:45 DasKuchen#5
The Item type can be 16 but you also need to set the subtype to 2 and the flag to 9216

That means:

type= 16
subtype = 2
flag = 9216
11/10/2012 13:00 Shagod6#6
Ok Thank you for solved 1 of the problem!

Now, [Only registered and activated users can see links. Click Here To Register...] this is the second problem.

And the third: When I write in the normal chat "(buff1) or (buff2) or (buff3)" the client play the effect..

Any idea?
11/10/2012 19:59 DasKuchen#7
Quote:
Originally Posted by Shagod6 View Post
Ok Thank you for solved 1 of the problem!

Now, [Only registered and activated users can see links. Click Here To Register...] this is the second problem.

And the third: When I write in the normal chat "(buff1) or (buff2) or (buff3)" the client play the effect..

Any idea?
2. problem = you need an other .mse file. i uploaded some of them.
3. problem = you need to edit uichat.py in the root.epk

I uploaded it for you
11/11/2012 00:48 Shagod6#8
Thanks a lot man!

Moderator can close this topic!

Thank you so much DasKuchen! All problem solved!

Kind regards
02/04/2013 13:13 NabbHackeR#9
I've got a problem with these rings

The effect it's still above my head, even if i use DasKuchen's .msm. files

Help!