Arena RPG Maker
Olá, visitante!
Seja bem-vindo ao fórum Arena RPG Maker, caso queira aprender sobre criação de jogos, está no fórum certo. Esperamos que possa aprender tanto quanto possa nos ensinar aqui.

Atenciosamente,
Equipe Arena RPG Maker.
Arena RPG Maker
Olá, visitante!
Seja bem-vindo ao fórum Arena RPG Maker, caso queira aprender sobre criação de jogos, está no fórum certo. Esperamos que possa aprender tanto quanto possa nos ensinar aqui.

Atenciosamente,
Equipe Arena RPG Maker.
Arena RPG Maker

Estamos de volta o/ ... Ou não.Eu amo a -Dark
Doações para o fórum abertas, clique aqui e saiba mais.
Últimos assuntos
» Ainda temos gente aqui?
Spell de copiar a sprite do Player EmptyQui 25 Nov 2021, 14:04 por Halt

» [Dúvida] Como tirar a porcentagem de esquiva
Spell de copiar a sprite do Player EmptySex 19 Nov 2021, 17:14 por Halt

» Pokémon Genesis Online! (PGO)
Spell de copiar a sprite do Player EmptyQua 05 Jul 2017, 18:08 por Lexar

» Tileset Converter to MV
Spell de copiar a sprite do Player EmptySex 12 maio 2017, 14:07 por Douggi

» Pack Resources, Sprites e etc
Spell de copiar a sprite do Player EmptyQua 23 Dez 2015, 12:30 por raydengv

» Download RPG Maker 2003 + RTP em português
Spell de copiar a sprite do Player EmptyTer 22 Dez 2015, 11:14 por ::KimMax::

» Fantasy Art Online
Spell de copiar a sprite do Player EmptyDom 18 Out 2015, 18:42 por daviih123

» Você vai ter medo do Nerve gear?
Spell de copiar a sprite do Player EmptySáb 25 Jul 2015, 17:02 por Kirito-kun

» O Barato é louco
Spell de copiar a sprite do Player EmptySáb 27 Jun 2015, 16:26 por Halt

» Download RPG Maker 2000 + RTP em português
Spell de copiar a sprite do Player EmptyQui 21 maio 2015, 20:28 por Wismael


Você não está conectado. Conecte-se ou registre-se

Ver o tópico anterior Ver o tópico seguinte Ir para baixo  Mensagem [Página 1 de 1]

1Spell de copiar a sprite do Player Empty Spell de copiar a sprite do Player Qui 10 Jan 2013, 15:41

Halt

Halt
Administrador
Administrador
jadieljr escreveu:
Client~Side

Na frmEditor_Spel crie um chekbox com as configurações:

Name: chkCSprite
Caption: Copiar Sprite


E adicione isso dentro dele:

Código:
    If chkCSprite.Value = 0 Then
        Spell(EditorIndex).CSprite = False
    Else
        Spell(EditorIndex).CSprite = True
    End If


Em Type Spellrec adicione no final:

Código:
CSprite as Boolean


Procure por:

Código:
        If Spell(EditorIndex).IsAoE Then
            .chkAOE.Value = 1
        Else
            .chkAOE.Value = 0
        End If


E abaixo adicione:

Código:
        If Spell(EditorIndex).CSprite Then
            .chkCSprite.Value = 1
        Else
            .chkCSprite.Value = 0
        End If


Serve~side

Em Type Spellrec adicione no final:

Código:
CSprite as Boolean


Procure por:

Código:
Public Sub CastSpell(ByVal Index As Long, ByVal spellslot As Long, ByVal target As Long, ByVal targetType As Byte)


Abaixo de:

Código:
    Dim SpellCastType As Long


Adicione:

Código:
    Dim NpcTarget As String, PlayerTarget As String


Procure por:

Código:
    ' find out what kind of spell it is! self cast, target or AOE


Acima adicione:

Código:
    ' Copiar Sprite
    If Spell(spellnum).CSprite = True Then
        If targetType = TARGET_TYPE_PLAYER Then
            Call SetPlayerSprite(Index, Player(TempPlayer(Index).target).Sprite)
            Call PlayerWarp(Index, GetPlayerMap(Index), GetPlayerX(Index), GetPlayerY(Index))
            Exit Sub
        ElseIf targetType = TARGET_TYPE_NPC Then
            Call SetPlayerSprite(Index, NPC(TempPlayer(Index).target).Sprite)
            Call PlayerWarp(Index, GetPlayerMap(Index), GetPlayerX(Index), GetPlayerY(Index))
            Exit Sub
        End If
    End If


Creditos:

Ricardo

https://arenarpgmaker.forumeiros.com

Ver o tópico anterior Ver o tópico seguinte Ir para o topo  Mensagem [Página 1 de 1]

Permissões neste sub-fórum
Não podes responder a tópicos