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:
In -> def __ServerCommand_Build(self):
serverCommandList={
playersettingmodule.py:
And I said:
uichat.py:
Hoping that I had made it clear(i'm italian).
Curious to see if someone will help me. :o
Kind regards :awesome:
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)")
serverCommandList={
Code:
"buff1" : self.__buff1,
"buff2" : self.__buff2,
"buff3" : self.__buff3,
"pot1" : self.__pot1,
"pot2" : self.__pot2,
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)")
Code:
BuffStr = "d:/ymir work/effect/etc/buff/"
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)
Curious to see if someone will help me. :o
Kind regards :awesome: