Jump to content

Baby System c ++


F-Caneiras
 Share

Recommended Posts

Boas

Hoje encontrei um sistema de veras interessante e vim partilhar.

Pelo que parece o sistema cria uma replica tipo pet do nosso personagem.

Não testei nem sei como implementar só vim fazer a partilha pode ser util para quem quiser testar.

 Imagens

Spoiler

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

 

Vamos começar

Para a pasta root add

Abrir o Ficheiro 

game.py

Procurar por:

from switchbot import Bot

Adicionar:

import uiChild

Procurar:

processpreservedservercommand self .__ ()

Adicionar:

self.uiChild = uiChild.ChildWindowKevin ()

Procurar:

def Close (self):
In self.hi ()

Adicionar

self.uichild.clos A ()

Procurar:

  def BINARY_NEW_RemoveAffect (self, type, pointIdx):
       self.affectShower.BINARY_NEW_RemoveAffect (type, pointIdx)
       if chr.NEW_AFFECT_DRAGON_SOUL_DECK1 == type or chr.NEW_AFFECT_DRAGON_SOUL_DECK2 == type:
           self.interface.dragonsouldeactivat A ()

Adicionar:

def BINARY_NEW_OpenPet (self, name):
       self.uichild.openwindow (name)
   def BINARY_NEW_UpdatePet (self, level, hp, maxhp, dmg, dmgmax, exp, expmax, boni1, boni2, pickup, hitting, emo, antiexp):
       self.uiChild.Update (level, hp, maxhp, dmg, dmgmax, exp, expmax, boni1, boni2, pickup, hitting, emo, antiexp)
   def BINARY_NEW_ClosePet (self):
       self.uichild.clos A ()
       self.uiChild = uiChild.ChildWindowKevin ()

Procurar:

def OnUpdate (self):
app.updateg tool ()

Adicionar

if self.uiChild! = None:
self.uichild.onupdat A ()

uiinventory.py 

def ClickDSSButton (self):

Adicionar:

 # Bebeksystem
   def ClickDSSButton (self):
       print "click_dss_button"
       net.sendchatpacket ( "/ babyspawn")

locale inventorywindow.py :

## Dragon Soul Button
    ## Bebeksystem
                       {
                           "name": "DSSButton",
                           "type": "button",
                           "x": 77,
                           "y": 109,
                           "tooltip_text": uiScriptLocale.KIND_TITLE,
                           "default_image": "locale / tr / ui / button / babybtn.tga"
                           "over_image": "locale / tr / ui / button / babybtn_h.tga"
                           "down_image": "locale / tr / ui / button / babybtn_h.tga"
                       },

Adicionar ao locale_interface.txt

KIND_TITLE Baby

Botão sistema

Exemplos para a surce.

EterGrnLib / ThingInstance.cpp

EterLib / GrpObjectInstance.cpp

EterLib / GrpObjectInstance.h

 

Fonte FreakGames

Edited by Caneiras
  • Like 1
Link to comment
Share on other sites

+
If you don't have Shoulder Sash system as Acce and Costume Weapon system with 7 type the system will crash the db every time when you summon the baby.

+
Add a function to the logout to unmount your character before it disconnect from the game.

+

Add a function to unmount your character whenever you summon the baby because the DB will crash...

 

(Tested 2 years ago and found this bugs with it)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...