Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

eddy34

Members
  • Posts

    52
  • Joined

  • Last visited

    Never

Posts posted by eddy34

  1. Description: EO has a system of animated items for those who do not know … But he always gets the second frame to the last. The fix makes the first take to the last.

    Example of animated item (Made by darkpeople196):

    ![](http://img585.imageshack.us/img585/6290/90601137.gif)

    How to Make Item Anim :

    ![](http://img651.imageshack.us/img651/8716/item4.png)

    In **Sub BltAnimatedInvItems()**, find :

    ```
    If MapItem(i).Frame < MaxFrames - 1 Then

    MapItem(i).Frame = MapItem(i).Frame + 1

    Else

    MapItem(i).Frame = 1

    End If
    ```

    Replace :

    ```
    If MapItem(i).Frame < MaxFrames - 1 Then

    MapItem(i).Frame = MapItem(i).Frame + 1

    Else

    MapItem(i).Frame = 0

    End If
    ```

    Below, find this :

    ```
    If InvItemFrame(i) < MaxFrames - 1 Then

    InvItemFrame(i) = InvItemFrame(i) + 1

    Else

    InvItemFrame(i) = 1

    End If
    ```

    Replace :

    ```
    If InvItemFrame(i) < MaxFrames - 1 Then

    InvItemFrame(i) = InvItemFrame(i) + 1

    Else

    InvItemFrame(i) = 0

    End If
    ```

    Credits : GuardianBR
  2. In bltMapTile and bltMapFringeTile, recommend putting RenderSurface below, that:

    ```
    Else: Exit For
    ```

    So even if you have 13 layers, but use only two, he will not check all the For. ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

    But anyway, very good!
  3. ![](http://i1079.photobucket.com/albums/w509/Guardian34/ELSoftLogo2.png)

    Auto Tile Restore

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/ATR1.png)

    Result :

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/1-3.png)

    Hello people. Today I came to bring a mini programinha you coming helping me these days … Slated for me, this program makes, pre Tiles set for Auto Tile are removed and saved in a way where there is no need to use the Auto Tile to put them.

    There are two folders : **Images** and **Converted**.

    Images 96x128 (Auto Tile) are the only functional yet. They should be added in the **Images**. When you open the program select the image in the list and click **Create** . The image will be converted and will meet in the **Converted**.

    Download : [Click Here](http://www.4shared.com/rar/KgA3Bh-j/Auto_Tile_Restore.html?)

    Credits : GuardianBR
  4. ![](http://i1079.photobucket.com/albums/w509/Guardian34/2-1.png)

    **Dragon Ball Sagas Wars**
    Sunlight Production Games
    (Construction)

    * * *

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/1.png)

    Name of Project: _Dragon Ball Sagas Wars_
    Gender: _Anime/Action/Adventure_
    End Date: _Indefinite_
    Creator: _GuardianBR_
    Site: _[Dragon Ball Sagas Wars](http://www.dragonballsagaswars.6te.net) (Construction)_

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/2.png)

    Design: _100%_
    Mapping: _1%_
    Programming: _97%_
    Resources: _50%_
    Total: _62%_

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/4.png)

    **Saiyan Saga**

    _Five years have passed since the victory over Goku Piccolo. He is now married to Chichi and has a four year old son named Gohan. However, peace is broken when Raditz, the elder brother of Goku comes to Earth. He came to seek Goku and reveals his true name, Kakarot, and that he belongs to a race called aggressive and powerful Saiyan, and he was sent to Earth to prepare for the planet to be sold, but lost his memory and instinct Saiyan in an accident in his childhood. Raditz kidnaps Gohan then Goku to try to return to their "normal", forcing Goku and Piccolo to ally themselves to defeat him. However, Raditz was more powerful than the two together and Goku sacrifices his life to kill him. Shortly before dying, Raditz calls his two fellow Saiyans, Vegeta the Prince and his former tutor, Nappa. In the Other World, Goku is taken to train with Kaioh Lord North, one of the four gods who protect their respective galaxies. At this time, Goku learns the two techniques supreme Kaioh the North, the Kaioh Ken, and Genki Dama. On Earth, Gohan is trained by Piccolo, while Krillin, Tenshin Han, Yamcha and Chaos are preparing for the arrival of the Saiyans.

    A year later, Vegeta and Nappa come to Earth and is a clear knowledge of the Dragonballs. The two wanted to defeat "the one who killed Raditz" and then look for them. Encountering the newly formed Z warriors, Nappa small plant monsters called Saibaimans. Although weak, one can kill Yamcha. Nappa then begins the real struggle, forcing Chaos and Tenshin Han to use all their energy, causing the death of both. Meanwhile, Goku completes his training and begins its return to Earth. Bored, Vegeta, Nappa requires three hours to wait until Goku again. After that time, attacks Nappa Gohan, but Piccolo sacrifices his life to save him. Because its counterpart, Kami Sama is also dead. Minutes after that, Goku arrives and defeats Nappa Kaioh with Ken. Then begins the fight between Goku and Vegeta, where even the Kaioh Ken or Genki Dama managed to defeat the prince of the Saiyans. During the battle, Vegeta creates an artificial moon and transforms into Oozaru, but its tail is cut off by Yajirobe, who watched the fight from afar. After the fight, Gohan sees the moon artificial and also turns into Oozaru, defeating Vegeta. However, Goku allowed Vegeta still alive, hoping that one day he reciprocate the favor._

    **Freeza Saga**

    _Shortly before the flight Vegeta, Krillin to hear about the Dragon Balls Originals, located in the homeworld of Piccolo, Namek. Krillin, Gohan and Bulma then go in search of the Spheres Original order to rescucitarem others while Goku was recovering in hospital. Once they arrived, they face the Freeza Soldiers, a powerful alien tyrant who until then was considered the Emperor of the Universe. They manage to escape and meet Dende, a young Namekuseijin which is allied to the warriors. Meanwhile, Vegeta had also come to Namek and killed Kiwi, Dodoria and Zarbon, Freeza the three generals. Subsequently, the Saiyan briefly joins the warriors. With his soldiers killed, Frieza summons his most powerful subordinates, members of the Ginyu Special Forces, composed of Gurudo, Rikum, Botter, Yiz and Captain Ginyu. Gurudo faces Gohan and Krillin, but is killed by Vegeta. However, all are defeated by Rikum. During all events, Goku had recovered and traveled to Namek, arriving in time to leave Rikum unconsious and prevent him from killing Gohan. He also defeats and Yiz Botter, and only Botter is killed, not by Goku, but Vegeta. Ginyu then enters the fight, but Goku has the advantage, until the Captain uses his technique of exchanging body. With his new body, he battle against Vegeta, Gohan and Krillin. However, he did not know how to control it and decides to return to his original body. Due to the numerous scams Vegeta, Goku's body was heavily damaged and he was brought to rest in one of the ships of soldiers Freeza. Later, Yiz is killed by Vegeta and Ginyu accidentally switches bodies with a frog namekusena.

    After an arduous battle, Vegeta will also stand as Krillin, Gohan and Dende will meet the Grand Patriarch, the leader of Planet Namek and guardian of the Spheres Original. However, they are followed by Frieza, who is momentarily stopped by Nail, a warrior Namekuseijin. In the house of the Patriarch, it increases the powers of Gohan and Krillin and gather the Dragon Balls. The three then returned to where Vegeta rested, but decide to use the desires in his absence, since they had total confidence in Saiyan. The first two wishes have been used to rescucitar Piccolo and take him to Namek and with that, Kami also back to life. However, the patriarch suffers a heart attack and dies, causing the ball to turn into stone, preventing a third wish. Freeza, furious, leaves Nail and part toward the warriors. Krillin, Gohan and Vegeta face Frieza agreed, but are interrupted by Piccolo, who was on the way the body is fused with Nail and thus overcame the powers of the second form of Freeza, but was defeated when he took his third form. During this time, Goku finishes his recovery and will fight, but not enough time to stop Freeza, in its final form, Vegeta killed. The two engaged in a devastating fight, defeat Frieza as Goku Genki Dama briefly with a higher than normal. However, the tyrant reappears and kills Krillin, causing a huge rage in Goku, who did reach the Super Saiyan level. During the fight, Mr. Popo uses the spheres of the Earth to the rescucitar killed by Freeza and his men, among them the Patriarch and Vegeta. The last wish of the Namek balls was to bring everyone except Goku and Frieza to Earth. After that, Freeza attacks the center of the planet, now would explode in five minutes, which were sufficient to win Goku._

    **Cell Saga**

    _One year after the battle on Namek, a large Ki approaches the Earth. Freeza was now in a mechanical body, alongside his father, Cold, seeking revenge. However, once you reach the planet, both are killed by a mysterious young Super Saiyan. He came from the future to warn everyone that Goku would die from a disease and that the world would be devastated by androids created by the Red Ribbon Force. Some time later, Goku returns to Earth with a new technique, the teleportation. The young man then reveals his name Goku, Trunks, and he is the son of Bulma and Vegeta. He then delivers the medicine for Goku that he they were when the disease showed signs and returns to the future. The warriors then spend the next three years training, in particular, that Vegeta was trying to outdo Goku into space. After this time the android appear No. 19 Gero and Dr. Maki. Goku battle against No. 19, but the disease begins and the android takes advantage until Vegeta reappears on stage and destroy the Super Saiyan 19\. Terrified by the power of the enemy, Maki Gero escapes to his laboratory, followed by the Warriors. However, Yamcha takes Goku right back home so he can handle. In the laboratory, Gero androids awakens the No. 17 and No. 18 which subsequently trigger the No. 16\. Despite having been created by Maki Gero, the No. 17 and 18 hate for him to have used their bodies without permission, and therefore the 17 kills the Doctor.

    The first fight between the Z Fighters and Androids between Vegeta and was No. 18, in which 18 won. Trunks tries to help his father, but is defeated. Piccolo and Tenshin Han has the same fate in the hands of No. 17\. The only thing that remained standing was Krillin, who could barely move. Due to its function of creating, killing Goku, the androids are removed and Krillin delivers a seed of God to others. Vegeta flies furiously, while Piccolo, certain that there would be no time to train, decides that the only way to increase his strength was to merge again with Kami. This agrees and the two become one again. The namekuseijin then part of looking androids, but finds a new threat, Cell, the ultimate creation of Dr. Gero Maki. In the future, Cell and awaken your goal was to evolve by absorbing Androids 17 and 18, but at that time, they were already killed by Trunks. Cell then kills Trunks and steals the Time Machine, arriving at the same time that Trunks before being killed. Cell was created from the cells of Goku, Gohan, Vegeta, Freeza, Cold, Piccolo, Tenshin Han, Krillin and Yamcha, and can use all your skills, and have the natural ability to absorb the life energy of anything organic . However, Piccolo's new powers were greater than those of Cell, and the tremendous energy he used ended up attracting Krillin, Tenshin Han, Trunks and Vegeta. Without choices, flees to Cell can absorb more energy and become more powerful.

    During all events, Goku had recovered. He, Vegeta, Gohan and Trunks go to the temple of Kami Sama, which presents the Hall of Time, a room where an Earth day is equal to one year. Vegeta and Trunks come to train, while far away, Tenshin Han and Piccolo, are the androids. Piccolo battle against No. 17 in a fight as equals, until Cell returns, more powerful because of the enormous energy that he absorbed in humans. He defeated both Piccolo and 17, but 16 enters the fight, revealing to have the same force that Cell. However, Cell manages to absorb the 17, reaching his second form and defeating No. 16\. His next target was 18, but uses the New Tenshin Han Ho Kiko and can immobilize him momentarily, allowing the escape of 18 and 16\. At this point, Vegeta and Trunks come out of the room and leave time for the fight, while Goku and Gohan begin their training. Vegeta shows have surpassed the Super Saiyan Comm, managing to defeat Cell, but allows it to absorb the 18 because I wanted a more powerful enemy. In its final form, Vegeta easily defeat Cell, but has certain difficulties in the fight against Trunks, who was more powerful than his father. After the fight, Cell proposes a tournament in which all participants would fight against him. Are advertised to the Cell Games, which begin in 10 days. During this time, Goku Dende brings to earth and he becomes the new Kami Sama and the balls are collected. In the Cell Games, a human weightlifting champion named Mr. Satan appears trying to defeat Cell, but easily lost. Then Goku fighting Cell, but Gohan decides that the one who would destroy it. However, he refused to fight Gohan and Cell attacks the other warriors, and ends up killing the No. 16\. This releases the hidden power of Gohan, making reaching the Super Saiyan level 2\. He humiliates and makes it spew Cell No. 18, returning to the second form. As a last resort, Cell fires a bomb that was within him, and to prevent the destruction of Earth, Goku teleports to the planet of Lord Kaioh North, where both are dead. After all, pieces of Cell still alive and he regenerates, returning more powerful and killing Trunks. He and Gohan then throw a Kamehameha against each other. From the Other World, Goku helps Gohan and Cell it disintegrates completely. However, the Earth believes Mr. Satan as your savior, due to the fact that all were gone by the end of the fight and he alone was found. After all, Trunks is rescucitado but Goku decides to stay in the Other World. Trunks returns to its timeline, which kills the androids 17, 18 and Cell._

    **Boo Saga**

    _Seven years have passed after the death of Goku. Gohan is in high school 19 years and now has a brother named Goten seven years. Bulma and Vegeta and Trunks are married already born, but is 8 years. Gohan also fights the evil of their city as a superhero called Great Saiyaman. At his school, he meets Videl, Mr. Satan's daughter, who discovers his secret identity and forces him to be a participant in the World Martial Arts Tournament to come. Anucia other warriors Gohan and Piccolo, Vegeta and Krillin decide to participate. Meanwhile, in the Other World, Goku gets permission to go to Earth to attend the tournament. On the day of the tournament, Goten is second in the youth league, losing to Trunks. In the tournament for adults, come Kaioshin East, a god who is above Kaiohs, and his companion Kibito. They came to ask for help Goku and Gohan to fight Babidi, a magician who wants to deliver a powerful demon called Majin Boo, who terrorized the whole universe in the past. At the tournament, two soldiers were Babidi, and Yamu Spopovich who stole much of the power of Gohan and returned to Babidi's ship. Goku, Gohan, Vegeta, Piccolo, Krillin, Kibito Kaioshin the east and then leave the tournament following Yamu and Spopovich. Arriving at the ship, they find Babidi and Dabura, King of the dark world that was being controlled by the black magic of Babidi. Kibito Dabura kills Piccolo and Krillin and turns into stone with petrifying their saliva. Inside the spaceship, Goku and Vegeta face other soldiers and battle with Dabura Gohan, but this resolves to stop the fight. Wanting to be a most powerful warrior, Vegeta allows Babidi black magic came into his body, turning him into Majin Vegeta and giving the power of a Super Saiyan 2\. It challenges Goku to a fight, Goku also reveals that the power to transform into Super Saiyan 2\. Gohan and East Kaioshin take account of the cocoon where it was Boo, but he wakes up and defeat them. Boo is a pink and plump creature that has a high magic power, but mainly uses to turn his enemies into sweet to eat them, and that's what he did with Dabura. As Cell, it can also regenerate. With Dabura killed, Piccolo and Krillin back to normal. Feeling the power of Buu, Goku to fight but lets Vegeta unconscious and will fight Buu. However, he was no match for the devil and blew himself up trying to kill him but failed.

    Meanwhile, Bulma gathers the ball and uses rescucitar a desire for all those who were killed that day, among them Kibito. Before another desire was done, Goku wakes up and stops to make another wish, and Shenlong going away for four months. After that, he goes to meet Babidi and Buu, where it shows all its power, with the Super Saiyan Level 3\. He fights on equal terms with Boo, but decided that would not have enough time to finish the fight. He asks Buu to wait three days until his new enemy is ready and teleports to the temple of Kami, where the others were. There he teaches Goten and Trunks the Fusion technique with which they can combine their bodies. After that, your time on earth ends and he returns to the Other World. On the other side of the story, Kibito finds Gohan and East Kaioshin and takes them to the Supreme Planet, where Gohan would increase his powers. In turn, Boo gets tired of obeying Babidi and kills him. On the other hand, Mr. Satan is sent to face Boo, and eventually becomes his best friend, and with that, Boo becomes a being kind. However, two men appear and try to kill Buu but hurt Mr. Satan, making Boo unleash their fury. He can not control it, and it turns into another Majin Boo, a skinny-looking and gray. The two battle, but in the end, the Fat Buu is turned into chocolate and the Bad Boo swallows, turning into Super Buu.

    After three days, Boo to the Temple of the Kami. Trunks and Goten have mastered fusion and joined in creating the warrior Gotenks. Piccolo, Gotenks and Buu battle in the Hall of Time, where Piccolo is forced to imprison them. But the hunger for Super Boo makes his energy to create a dimensional hole and he escapes. No other choice, Gotenks uses his full power, reached the Super Saiyan 3 and also manages to escape, along with Piccolo. Outside, Boo kills the entire human race, except Mr. Satan. In the Supreme Planet, Gohan is trained with the Z Sword, but the breaks and releases a Kaioshin from 15 generations ago known as Ro Kaioshin. He releases all the remaining power of Gohan that the earth will fight Buu. However, Buu absorbs Gotenks and Piccolo, gaining strength to defeat Gohan. Again on Planet Supreme Ro Kaioshin gives his life for Goku. Before Goku from Ro gives him the Potara Earrings, earrings merge two beings permanently and multiply their powers. Goku wanted to join with Gohan, but he is also absorbed. At this point, Vegeta gets permission to go to Earth. He and Goku fuse, creating the powerful Vegetto. The difference in power was grotesque, giving the chance to humiliate Vegetto Buu several times. His real plan was to get Super Buu absorbs up to free everyone. However, so Vegetto was absorbed, the magic of the interior of the merger broke Boo and Goku and Vegeta continued on their own, freeing the other and out of Boo. With no one inside, Boo returned to its original form, Kid Buu.

    Once finished his re-transformation, Kid Buu blew up the Earth, but Goku, Vegeta, Mr. Satan, Dende and Buu Gordo were saved. The fight continued in the Supreme Planet, where Vegeta and Fat Buu took over the fight. On Namek, Dende used the beads to recreate the original Earth, rescucitar all kind beings, among them, and retrieve Vegeta forces Goku. With the earth and the human back, Goku made the Super Genki Dama Majin Boo and obliterated forever. Before it is killed, Goku asked him reencarnace as a good person. 10 years later, in a World Martial Arts Tournament, Goku finds Oob, the reincarnation of Majin Buu. He leaves with Oob to train him, so that when Goku died, Oob become the new protector of the universe._

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/3.png)

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/MapaMundiDBSW.png)

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/5.png)

    **Saiyans**

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/1-2.png)  ![](http://i1079.photobucket.com/albums/w509/Guardian34/2-2.png)                          ![](http://i1079.photobucket.com/albums/w509/Guardian34/3-1.png)  ![](http://i1079.photobucket.com/albums/w509/Guardian34/4-1.png)

    Description: _The Saiyans are a warrior race. From small they are observed to find out more apt to fight. Babies rejected this selection are sent to a planet with beings of inferior power that can destroy them._
    Planeta Natal: _Planet Vegeta_

    **Humans**

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/5-1.png)  ![](http://i1079.photobucket.com/albums/w509/Guardian34/6-1.png)                          ![](http://i1079.photobucket.com/albums/w509/Guardian34/7-1.png)  ![](http://i1079.photobucket.com/albums/w509/Guardian34/8-1.png)

    Description: _Humans are a weak race when it determined a dream. From small they are forced to live in a society where everyone tends to be weak. Those who exceed the company and chases his dream of martial arts fighter, may be called the Warrior._
    Planeta Natal: _Planet Earth_

    **Namekians**

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/9.png)  ![](http://i1079.photobucket.com/albums/w509/Guardian34/10.png)                          ![](http://i1079.photobucket.com/albums/w509/Guardian34/11.png)  ![](http://i1079.photobucket.com/albums/w509/Guardian34/12.png)

    Description: _The Namekuseijins are green-skinned humanoid beings, and some parts of your muscles are reddish scales. Their diet is based only on water. Despite spending a peaceful appearance, the Namekuseijins are very strong._
    Planeta Natal: _Planet Nameki_

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/7.png)

    **Menu**
    ![](http://i1079.photobucket.com/albums/w509/Guardian34/DBSW_Print_2.png)

    **Interface**
    ![](http://i1079.photobucket.com/albums/w509/Guardian34/DBSW_Print_1-1.png)

    **Talent Tree**
    ![](http://i1079.photobucket.com/albums/w509/Guardian34/DBSW_Print_3.png)

    **Sagas**
    ![](http://i1079.photobucket.com/albums/w509/Guardian34/DBSW_Print_4.png)

    **Guild**
    ![](http://i1079.photobucket.com/albums/w509/Guardian34/DBSW_Print_5.png)

    **Market**
    ![](http://i1079.photobucket.com/albums/w509/Guardian34/DBSW_Print_6.png)

    **Refinement**
    ![](http://i1079.photobucket.com/albums/w509/Guardian34/DBSW_Print_7.png)

    ![](http://i1079.photobucket.com/albums/w509/Guardian34/8.png)

    Programming and General: _GuardianBR_
    Spriter: _PauloRooh_
    Collaborator: _Ricardo_

    **Sorry for the images in Portuguese, I am Brazilian. I am without the psd images.**
  5. davidsaid, try this tutorial : [Click Here](http://www.touchofdeathforums.com/smf2/index.php/topic,81545.0.html)

    I'm sorry to the creator of the topic, but it's not because I did your tutorial yet. And as the guy with ta problem, recommending to the similar system that I've tested it and ta working. xD

    I hope you do not mind Thanks!
  6. I found another bug. This did not mean it xD
    And it is quite strange.
    For example, you click on the map and as he walks to get to it you use the Alt + Tab to switch window. When you return to the game window, he ta round and round the map nothing to do with the coordinate. At least when you back it goes right to coordinated, but it's still pretty weird.
  7. In **Public Sub CheckInputKeys** have this:

    ```
    chaton
    ```
    You used the tutorial on shortcuts, but forgot to remove for mounting the tutorial. Fixes it.

    Other than that, almost perfect. xD
    If you have NPC on the map, or blocked, the player simply has to click there and elsewhere for him to walk. Or use the arrow keys.
  8. Partner, I was only doing this tutorial one of these days. But I "redid" the tutorial but since Spell Arrow and not per item. But I noticed a little problem, I do not know if it was because I swapped to Spell. But I guess not, so to posting here.

    For example, if I set the damage to the arrow 10\. It always takes 10 damage from the NPC, regardless of agility of it, or critical.

    So if you want the fix:

    **Server**

    Find :

    ```
    ' check for npc hit
        For i = 1 To MAX_MAP_NPCS
            If x = MapNpc(GetPlayerMap(Index)).Npc(i).x And y = MapNpc(GetPlayerMap(Index)).Npc(i).y Then
                ' they're hit, remove it and deal that damage ;)
                If CanPlayerAttackNpc(Index, i, True) Then
                    PlayerAttackNpc Index, i, TempPlayer(Index).ProjecTile(PlayerProjectile).damage
                    ClearProjectile Index, PlayerProjectile
                    Exit Sub
                Else
                    ClearProjectile Index, PlayerProjectile
                    Exit Sub
                End If
            End If
        Next
    ```
    Replace With :

    ```
    ' check for npc hit
        For i = 1 To MAX_MAP_NPCS
            If x = MapNpc(GetPlayerMap(Index)).Npc(i).x And y = MapNpc(GetPlayerMap(Index)).Npc(i).y Then
                ' they're hit, remove it and deal that damage ;)
                If CanPlayerAttackNpc(Index, i, True) Then
                damage = TempPlayer(Index).ProjecTile(PlayerProjectile).damage - CanNpcBlock(i)
                ' take away armour
            damage = damage - RAND(1, (Npc(i).stat(Stats.Agility) * 2))
            ' randomise from 1 to max hit
            damage = RAND(1, damage)

            ' * 1.5 if it's a crit!
            If CanPlayerCrit(Index) Then
                damage = damage * 1.5
                SendActionMsg GetPlayerMap(Index), "Critical!", BrightCyan, 1, (GetPlayerX(Index) * 32), (GetPlayerY(Index) * 32)
            End If
                    PlayerAttackNpc Index, i, damage
                    ClearProjectile Index, PlayerProjectile
                    Exit Sub
                Else
                    ClearProjectile Index, PlayerProjectile
                    Exit Sub
                End If
            End If
        Next
    ```
    Find :

    ```
    ' check if hit player
        For i = 1 To Player_HighIndex
            ' make sure they're actually playing
            If IsPlaying(i) Then
                ' check coordinates
                If x = Player(i).x And y = GetPlayerY(i) Then
                    ' make sure it's not the attacker
                    If Not x = Player(Index).x Or Not y = GetPlayerY(Index) Then
                        ' check if player can attack
                        If CanPlayerAttackPlayer(Index, i, False, True) = True Then
                            ' attack the player and kill the project tile
                            PlayerAttackPlayer Index, i, TempPlayer(Index).ProjecTile(PlayerProjectile).damage
                            ClearProjectile Index, PlayerProjectile
                            Exit Sub
                        Else
                            ClearProjectile Index, PlayerProjectile
                            Exit Sub
                        End If
                    End If
                End If
            End If
        Next
    ```
    Replace with :

    ```
    ' check if hit player
        For i = 1 To Player_HighIndex
            ' make sure they're actually playing
            If IsPlaying(i) Then
                ' check coordinates
                If x = Player(i).x And y = GetPlayerY(i) Then
                    ' make sure it's not the attacker
                    If Not x = Player(Index).x Or Not y = GetPlayerY(Index) Then
                        ' check if player can attack
                        If CanPlayerAttackPlayer(Index, i, False, True) = True Then
    ' Get the damage we can do
            damage = TempPlayer(Index).ProjecTile(PlayerProjectile).damage

            ' if the npc blocks, take away the block amount
            damage = (damage - CanPlayerBlock(i))

            ' take away armour
            damage = damage - RAND(1, (GetPlayerStat(i, Agility) * 2))

            ' randomise for up to 10% lower than max hit
            damage = RAND(1, damage)

            ' * 1.5 if can crit
            If CanPlayerCrit(index) Then
                damage = damage * 1.5
                SendActionMsg getplayermap(Index), "Critical!", BrightCyan, 1, (GetPlayerX(index) * 32), (GetPlayerY(index) * 32)
    End If
                            ' attack the player and kill the project tile
                            PlayerAttackPlayer Index, i, Damage
                            ClearProjectile Index, PlayerProjectile
                            Exit Sub
                        Else
                            ClearProjectile Index, PlayerProjectile
                            Exit Sub
                        End If
                    End If
                End If
            End If
        Next
    ```
    I did it fast, is to use the TryPlayerAttackNpc or TryPlayerAttackPlayer. But something is already better than ever cause the same damage. xD If item does not occur with this error, I'm sorry. But tests ae by guarantee. Oh, and good tutorial.
  9. @Deathbeam:

    > Dont SendDataToAll, send it to map like this - SendDataToMap GetPlayerMap(Index), Buffer.ToArray()

    LOL
    I had not realized that I had committed this blunder. kkkk '
    Thanks, you're just right. =D
  10. I did not apply for access because it is unnecessary. Already have a function outside the GetPlayerPremium would not be necessary for access. The premium to be removed, I put only log out yourself. It was deliberate. :)
  11. You will only gain more experience if you do the premium system. What defines it is this code:

    ```
    ' Premium
            If GetPlayerPremium(attacker) = "Sim" Then
            exp = exp * 2
            End If
    ```
    You can cut it if you want. ;)
    How to add items, equips, sprites, etc.. Yes you can, but you'll have to schedule more things. For example, if you want to add the item application only for premium players, you can. But you have to do it, you know?

    Someone can help too, of course. =D

    It has the functions GetPlayerPremium on the server only. Then he will do something for the system, just make the server using this function.
  12. @DepTa:

    > I have not tried the tutorial above,
    > and who would I ask here,
    >
    > Only two times more experience than the normal player ??
    > how to add the other, and how?
    >
    > sorry if this noob question :(

    I'm sorry but I do not quite understand your question. It is a system "VIP" where a person who purchases the plan takes two times more experience than normal players. And this system is taken automatically by date.
  13. @jcsnider:

    > Just going to add a side note that this should also work perfectly for my Nightly editions for those who are wondering.
    >
    > Good job GuardianBR!
    > I hope to see more contributions from you in the future :D

    And you'll see. ;)

    @iHero:

    > You also started, good luck brother.
    > ~~He also is Brazilian~~
    >
    > :D

    Thanks brother. \o/
  14. @Likestodraw:

    > They both are pretty much the same, though I like this form a LITTLE better. Great work!

    Thank You.

    It was reported a bug to me where it goes Premium for players who are offline. The error in the server.

    So who made ​​the tutorial, I ask you to replace its Sub HandleChangePremium and HandleRemovePremium by these:

    ```
    Sub HandleChangePremium(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
    Dim Buffer As clsBuffer
    Dim A As String
    Dim B As String
    Dim C As Long
    Dim D As String

        Set Buffer = New clsBuffer
        Buffer.WriteBytes Data()

        A = Buffer.ReadString
        B = Buffer.ReadString
        C = Buffer.ReadLong

        D = FindPlayer(A)

        If IsPlaying(D) Then

        ' Check access if everything is right, change Premium
        If GetPlayerAccess(Index) < ADMIN_DEVELOPER Then
            Call PlayerMsg(Index, "You do not have access to complete this action!", White)
            Exit Sub
        Else
            Call SetPlayerPremium(D, "Sim")
            Call SetPlayerStartPremium(D, B)
            Call SetPlayerDaysPremium(D, C)
            GlobalMsg "The player " & GetPlayerName(D) & " became Premium. Congratulations!", BrightCyan
        End If

        SendPlayerData D
        SendDataPremium D

        End If

        Set Buffer = Nothing
    End Sub

    Sub HandleRemovePremium(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
    Dim Buffer As clsBuffer
    Dim A As String
    Dim B As String

        Set Buffer = New clsBuffer
        Buffer.WriteBytes Data()

        A = Buffer.ReadString

        B = FindPlayer(A)

        If IsPlaying(B) Then

        ' Check access if everything is right, change Premium
        If GetPlayerAccess(Index) < ADMIN_DEVELOPER Then
            Call PlayerMsg(Index, "You do not have access to complete this action!", White)
            Exit Sub
        Else
            Call SetPlayerPremium(B, "Não")
            Call SetPlayerStartPremium(B, vbNullString)
            Call SetPlayerDaysPremium(B, 0)
            PlayerMsg B, "His days of premium sold out.", BrightCyan
        End If

        SendPlayerData B
        SendDataPremium B

        End If

        Set Buffer = Nothing
    End Sub
    ```
    I just added a isPlaying If there. :)
    Already added in Tutorial.
  15. @marlongb:

    > Thank you, very nice tutorial.
    >
    > How do I create a button to call the "frmEditor_Premium" in "picAdmin"?

    I'm sorry, I forgot to put it in the tutorial.

    In picAdmin, create a button with the name **cmdAPremium**. Add this to it:

    ```
    ' If debug mode, handle error then exit out
        If Options.Debug = 1 Then On Error GoTo errorhandler

        ' Check Access
        If GetPlayerAccess(MyIndex) < ADMIN_DEVELOPER Then
            Exit Sub
        End If

        Call SendRequestEditPremium

        ' Error handler
        Exit Sub
    errorhandler:
        HandleError "cmdAPremium_Click", "frmMain", Err.Number, Err.Description, Err.Source, Err.HelpContext
        Err.Clear
        Exit Sub
    ```
    Already added to the Tutorial.

    @Mortal:

    > Looks very cool :D Thanks for the release ;-)
    > Nice Second post

    Thank You =D

    @Synergy:

    > Can you drop the orange first letter.. I know you're trying to make your posts seem that little bit special, but orange on cream/white isn't very contrasting.
    >
    > Cool tutorial though. :P

    It is the intent is to make it more beautiful. And I already was thinking about taking it, the hard work. : P

    @Notsu:

    > Is this similar to "Membership System" by Richy?

    I had not seen the tutorial, but is rather similar. Although I think this is more complete.
×
×
  • Create New...