[HELP]Couple things i need help on...

01/04/2009 04:02 n0mansland#1
Ok here are the things i need help on...

BOLD are specific things i need done fast

1. How to add Night Devil, Robot, DH and stuff.

2. How to make mana potions work

3. How to not get pk points in Jail and PK Arena..

4. *How to ADD 120 Shield*

5. Guards (Not the Summon ones) - What i need done with these are how to remove some guards from specific locations because right now my server has like 10 in 1 city and its really annoying. Also how to change their attack.. Right now they attack blue names with flying moon.

I will give you Thanks if you help :)

Please Don't flame this post
01/04/2009 11:27 Beta Limit#2
Quote:
Originally Posted by n0mansland View Post
Ok here are the things i need help on...

1. How to add Night Devil, Robot, DH and stuff.

2. How to make mana potions work

3. How to not get pk points in Jail and PK Arena..

4. *How to ADD 120 Shield*

I will give you Thanks if you help :)

Please Don't flame this post
1. Unsure about this myself

2. Before you can add mana pots properly u need mana working (in most LOTF mana is just there and the value of mana doesn't go up or down with the exception of attribute points)
After mana is added you need to find the health pots in your source and use the format they have (think they have CurHP += 2000(etc) - you would use what ever you used for your "Current Mana") then you give the items CurMP += 2000 (etc). Do Not Add Pots Without Working Mana

3. In the part of your source which adds pk points "PKPoints += 10;" in character.cs and "User.PkPoints += 10;" in World.cs
Replace the "PKPoints += 10;" with
Code:
if (LocMap == 6000 || LocMap == 1005)
                                                        {
                                                            PKPoints += 0;
                                                        }
                                                        else
                                                        {
                                                            PKPoints += 10;
                                                        }
and replace "User.PKPoints += 10;" in world.cs with
Code:
if (User.LocMap == 6000 || User.LocMap == 1005)
                                {
                                    User.PKPoints += 0;
                                }
                                else
                                {
                                    User.PKPoints += 10;
                                }
4. There is a guide to this on epvpers somewhere(i think, if not correct me)
01/04/2009 12:02 _Emme_#3
Quote:
Originally Posted by Beta Limit View Post
1. Unsure about this myself

2. Before you can add mana pots properly u need mana working (in most LOTF mana is just there and the value of mana doesn't go up or down with the exception of attribute points)
After mana is added you need to find the health pots in your source and use the format they have (think they have CurHP += 2000(etc) - you would use what ever you used for your "Current Mana") then you give the items CurMP += 2000 (etc). Do Not Add Pots Without Working Mana

3. In the part of your source which adds pk points "PKPoints += 10;" in character.cs and "User.PkPoints += 10;" in World.cs
Replace the "PKPoints += 10;" with
Code:
if (LocMap == 6000 || LocMap == 1005)
                                                        {
                                                            PKPoints += 0;
                                                        }
                                                        else
                                                        {
                                                            PKPoints += 10;
                                                        }
and replace "User.PKPoints += 10;" in world.cs with
Code:
if (User.LocMap == 6000 || User.LocMap == 1005)
                                {
                                    User.PKPoints += 0;
                                }
                                else
                                {
                                    User.PKPoints += 10;
                                }
4. There is a guide to this on epvpers somewhere(i think, if not correct me)


ROFLMAO! Why do you do like this:


Quote:
if (User.LocMap == 6000 || User.LocMap == 1005)
{
User.PKPoints += 0;
}
else
{
User.PKPoints += 10;
}
Just do like this:

Quote:
if (User.LocMap != 6000 && user.LocMap != 1005)
{
User.PKPoints += 10;
}
Way easier.
01/04/2009 17:51 Korvacs#4
Quote:
Originally Posted by n0mansland View Post
Ok here are the things i need help on...

1. How to add Night Devil, Robot, DH and stuff.

2. How to make mana potions work

3. How to not get pk points in Jail and PK Arena..

4. *How to ADD 120 Shield*

I will give you Thanks if you help :)

Please Don't flame this post
1. Ive never done it myself, but it should go something like this.

The disguise is essentially a spell, and should trigger a magicattack packet with a userid matching your own char, you then respond by sending a disguise packet (youll need to research this yourself) which will contain the modelID, and trigger the timer, you will also need to send a status packet to increase your hp and max hp and remove mana, and that should be that.

2. When you right click a consumable item on the client, the client will send an itemequip request to the server with a locationID of 0, in most sources there should be a place to handle these requests.

Firstly, remove the item to stop people trying to use the item again, ensure that you "despawn" the item from your inventory and then remove it from the servers inventory, you would then need to look up the itemid thats included in the packet and check its itemstats to see what its +mana value is and then add that to the client that is using the item using a mana status packet.

3. Durring the pking event handler that you have (youll know what i mean, probably durring your attack system somewhere) perform a check similar to this:
Code:
If(Player.CurrentLoc.Map != 6000 && Player.CurrentLoc.Map != 1005)
{
     Player.PKPoints += 10;
}
This basically means that if the players map is anything except 6000, and anything except 1005, they will gain 10pkps otherwise if it IS one of those 2 maps they will receive no pkps, you can add more simply by seperating the map check (Player.CurrentLoc.Map != MapID) with &&

4. I beleive i gave you a general idea of what to do in your other thread a few minutes ago.
01/04/2009 19:35 n0mansland#5
a few minutes ago? i dont remember having another post on adding a 120 shield and thanks for answering my questions
01/04/2009 20:42 Beta Limit#6
@ emme - yeah urs is faster xD but they both work the same
01/04/2009 22:34 Korvacs#7
Quote:
Originally Posted by n0mansland View Post
a few minutes ago? i dont remember having another post on adding a 120 shield and thanks for answering my questions
My mistake, was someone elses who asked same question.