Quote:
Originally Posted by n0mansland
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.