[How to] new effect by xCPx and grren/purple pots

01/27/2012 13:56 .Rebel#1
the people are to mutch confuse with the [Only registered and activated users can see links. Click Here To Register...] new effect realease
ther you go litle help from me on make this 100% work

i dont whant tanks give the tanks to xCPx he have do the realase
original [Only registered and activated users can see links. Click Here To Register...]

1- download the etc
[Only registered and activated users can see links. Click Here To Register...]

2 - put the files in
Source\ymir work\effect\etc

compile the files
PHP Code:
        <File archivedPath="d:/ymir work/effect/etc/recuperation/drugup_green.mse" type="2"><![CDATA[Source\ymir work\effect\etc\recuperation\drugup_green.mse]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/recuperation/drugup_purple.mse" type="2"><![CDATA[Source\ymir work\effect\etc\recuperation\drugup_purple.mse]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/buff_item1.mde" type="1"><![CDATA[Source\ymir work\effect\etc\buff\buff_item1.mde]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/buff_item1.mse" type="2"><![CDATA[Source\ymir work\effect\etc\buff\buff_item1.mse]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/buff_item2.mse" type="2"><![CDATA[Source\ymir work\effect\etc\buff\buff_item2.mse]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/buff_item3.mse" type="2"><![CDATA[Source\ymir work\effect\etc\buff\buff_item3.mse]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/candy1.dds" type="1"><![CDATA[Source\ymir work\effect\etc\buff\candy1.dds]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/happy_ring1.dds" type="1"><![CDATA[Source\ymir work\effect\etc\buff\happy_ring1.dds]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/item_buff1.dds" type="1"><![CDATA[Source\ymir work\effect\etc\buff\item_buff1.dds]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/light010.dds" type="1"><![CDATA[Source\ymir work\effect\etc\buff\light010.dds]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/light012.dds" type="1"><![CDATA[Source\ymir work\effect\etc\buff\light012.dds]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/light017.dds" type="1"><![CDATA[Source\ymir work\effect\etc\buff\light017.dds]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/light616.dds" type="1"><![CDATA[Source\ymir work\effect\etc\buff\light616.dds]]></File>
        <
File archivedPath="d:/ymir work/effect/etc/buff/ring1.dds" type="1"><![CDATA[Source\ymir work\effect\etc\buff\ring1.dds]]></File
3 - open edit the root files
game.py

PHP Code:
def __ServerCommand_Build(self):
        
serverCommandList={
            
"buff1"                    self.__buff1,
            
"buff2"                    self.__buff2,
            
"buff3"                    self.__buff3,
            
"pot1"                    self.__pot1,
            
"pot2"                    self.__pot2
game.py
PHP 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)"
playersettingmodule.py
PHP Code:
    #########################################################################################
    ## Emoticon
    
EmoticonStr "d:/ymir work/effect/etc/emoticon/"
    
BuffStr "d:/ymir work/effect/etc/buff/"

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+0""EmoticonStr+"sweat.mse")
    
net.RegisterEmoticonString("(Ȳ´ç)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+1""EmoticonStr+"money.mse")
    
net.RegisterEmoticonString("(µ·)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+2""EmoticonStr+"happy.mse")
    
net.RegisterEmoticonString("(±â»Ý)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+3""EmoticonStr+"love_s.mse")
    
net.RegisterEmoticonString("(ÁÁ¾Æ)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+4""EmoticonStr+"love_l.mse")
    
net.RegisterEmoticonString("(»ç¶û)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+5""EmoticonStr+"angry.mse")
    
net.RegisterEmoticonString("(ºÐ³ë)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+6""EmoticonStr+"aha.mse")
    
net.RegisterEmoticonString("(¾ÆÇÏ)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+7""EmoticonStr+"gloom.mse")
    
net.RegisterEmoticonString("(¿ì¿ï)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+8""EmoticonStr+"sorry.mse")
    
net.RegisterEmoticonString("(Á˼Û)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+9""EmoticonStr+"!_mix_back.mse")
    
net.RegisterEmoticonString("(!)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+10""EmoticonStr+"question.mse")
    
net.RegisterEmoticonString("(?)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+11""EmoticonStr+"fish.mse")
    
net.RegisterEmoticonString("(fish)")

    
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)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+15"""d:/ymir work/effect/etc/recuperation/drugup_green.mse")
    
net.RegisterEmoticonString("(pot1)")

    
chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+16"""d:/ymir work/effect/etc/recuperation/drugup_purple.mse")
    
net.RegisterEmoticonString("(pot2)")


    
## Emoticon
    ######################################################################################### 
uichat.py
PHP Code:
def __SendChatPacket(selftexttype):
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_INFOlocale.CHAT_INSULT_STRING)
        else:
            
net.SendChatPacket(texttype
5 - make potionuse.quest and buffs.quest

PHP Code:
quest potionuse begin
    state start begin
        when 27113.click 
or 27114.click or 27115.click begin
            cmdchat
("pot2")
        
end
        when 27110.click 
or 27111.click or 27112.click begin
            cmdchat
("pot1")
        
end
    end
end 
PHP Code:
quest buffs begin
    state start begin
        when xxxxx
.use begin
        cmdchat
("buff1")
        
end    
        when xxxxx
.use begin
        cmdchat
("buff2")
        
end    
        when xxxxx
.use begin
        cmdchat
("buff3")
        
end    
    end
end 
6- chance the type items to 18 to use quest
PHP Code:
27110
27111
27112
27113
27114
27115
and the buffs items 
Screens
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

dont forget give tanks to [Only registered and activated users can see links. Click Here To Register...] for the old realease and to [Only registered and activated users can see links. Click Here To Register...] for the cordenate job
Done have fun
01/27/2012 14:21 SaNiD - Neirox#2
Das Lila sollte intensiver sein, damit man's auch unterscheiden kann.
01/27/2012 14:25 Jakuz0#3
Everything works!

Only potion effect do not work
01/27/2012 14:54 miszczuuuuu#4
This spam block only work if players use oryginal and not modified client, if players remove block from uichat.py or play on mod. client then can spam effect ;)
Normal player can write on chat /buff1 and have effect.

I prefer swap oryginal effects (not used - example, effect 14/15), change command (effect) and unlock it for players - this is the best way on this moment.
01/27/2012 15:03 [ShiizoPhreN]™#5
Quote:
Originally Posted by SaNiD - Neirox View Post
Das Lila sollte intensiver sein, damit man's auch unterscheiden kann.
erstell dir ne mse datei und kräftige die farbe ich glaub das heißt

Code:
ColorOperationType
oder so
01/27/2012 15:54 xCPx#6
Nice :)
Somebody that has understood my release ;)
If there where more guys like you that think about my how to´s (i know that they never work exactly perfect when i release them so that you have to think about how to make it perfect ;) )

i would release more ;)
because i don´t what to stuck you all things into the ass.
But helping you thinking is my way to release an How-To
01/27/2012 16:20 Jakuz0#7
Potions effect do not work.
01/27/2012 18:37 XxS0n1xX#8
all item do not work....
01/27/2012 18:57 IgorGlock#9
höhö... meine alte Methode :) habe ich früher auch so die Sache geklärt. Werde weiterhin diese Methode nutzen.

grren <= Überschrift fail'd xD
01/27/2012 19:03 £αšεℜ™#10
Bei mir geht es nur mit den vio potts nicht Komich
01/27/2012 19:08 CHXMVN#11
Funktioniert zu 100%.
Danke.

Gruß,
CHMarvin.
01/27/2012 19:56 XxS0n1xX#12
Ich habe alle Schritte, aber nicht funktioniert ...
01/27/2012 20:15 Fear *_*#13
Sehr schön, Vielen Dank :D
01/28/2012 01:13 77BMW!#14
Bekomme das irgendwie nicht in die Game.py
Kommt ein Syntax Fehler in die Syserr & Ladebalken bleibt hängen wenn er voll ist s:
01/28/2012 03:05 [ShiizoPhreN]™#15
dann haste nen fehler beim eintragen gemacht wenn du es genauso gemacht hast wie wie im release steht dann gehts