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

Pet System script (No Longer Beign Worked On)


Dennys
 Share

Recommended Posts

  • Replies 417
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hm.. Would we better make it max for the whole game? by the way here's a source i worked out for the HP that the pet will get after level or add of a stat.
```
'Stats for the pets
    addHPPET.LEVEL = Val(GetVar(App.path & "\Petstats.ini", "PETHP", "AddPerLevel"))
    addHPPET.STR = Val(GetVar(App.path & "\Petstats.ini", "PETHP", "AddPerStr"))
    addHPPET.DEF = Val(GetVar(App.path & "\Petstats.ini", "PETHP", "AddPerDef"))
```

I took most of the things out that are just not for a "pet" like magic and speed.

EDIT: This goes to after the addSP.Speed.

P.s all curent commands go to the SERVER SIDE!!! this one is in modgeneral

This is what your "Petstats.ini" should lool like:

```
[PETHP]
AddPerLevel=100
AddPerSTR=20
AddPerDef=30
```
Link to comment
Share on other sites

Also, it is possible to make a pet "class", just like for the player.

EDIT:

```
ReDim MapPET(1 To MAX_MAPS, 1 To MAX_MAP_PETS) As MapPetRec
```
Checks if there's available space for the pet, and it also add +1 pet in the game so that it counts.
Add it after```
ReDim MapNPC(1 To MAX_MAPS, 1 To MAX_MAP_NPCS) As MapPETRec
```, same place as all other sources.
Link to comment
Share on other sites

No no no, you got it a wrong way, we can set it as a quest, scripted tile or a simple command like

Case "/petchangeclass *classname*"
*Check for a pet, script and then like this*
    ChangePetClass(Petnum, Petclassnum)
    Else If
    Call PlayerMsg(index, "You don't have a pet", 3)
    Exit sub
Link to comment
Share on other sites

Okay well sorry for alot of posts but this is what i've done so far:

Pet attacks another player (don't know about the NPCs)
Pet regens hp
Pet adds hp when levels up or adds stats.
Message shows up when a pet tries to attack you.
Pet spawn
+Some other dims and vars for getting the pet.

Right now i'm working on getting the pet to move.
Link to comment
Share on other sites

@Ridrik:

> Finally figured out how to move pet, on the attack, switch GetPlayerX(target) + Get PlayerY(target)
>
> switch target to index.
>
> EDIT:Sorry admiral i won't no more, i'll just create a new topic for updates.

Just don't create a new topic for every update XD!  You can create one topic, but don't double-post and stuff in that topic, but rather edit the topic with your updates.

Or just keep editing your last reply to add the  updates.
Link to comment
Share on other sites

Well i'm going to drop all my plans for the week, all of them and going to work on the script right after i wake up and till i get tired working all day, but this is what i promise - if i get the script to work, it's a public realese.
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...