Author Topic: How to add FUNPK!  (Read 90 times)

love claws

  • Full
  • ***
  • Posts: 113
  • I'm here to help!
    • View Profile
How to add FUNPK!
« on: January 16, 2011, 08:40:52 am »
Description: To make sure that you do not lose things in a pk area where you do not lose things. This is something you cannot code yourself so I will giving you an easier getaway code to get this.

Client Modified: Client.Java

First look for this code

Code: [Select]
// If killed apply dead

Under That There Should Be Codes like this:


Code: [Select]
// If killed apply dead
        if ((absX >= 2368 && absX <= 2431 && absY >= 3072 && absY <= 3135 && IsDead == true && NewHP <= 1)) {
            NewHP = getLevelForXP(playerXP[3]);
            setSkillLevel(3, getLevelForXP(playerXP[3]),
            playerXP[playerHitpoints]);
            playerLevel[3] = getLevelForXP(playerXP[3]);
            refreshSkills();
        updateRequired = true;
        appearanceUpdateRequired = true;
            teleportToX = 2209;
            teleportToY = 4956;
            sendMessage("U died at cwars, u  still keep ur stuff, log in log out after ded so u can move!");
        }

(If you want, you can use this code to make your Clan Wars FunPk Area)

Ok to make other areas FunPk, I will explain you this code:


Code: [Select]
// If killed apply dead
        if ((absX >= xxxx1 && absX <= xxxx2 && absY >= yyyy2 && absY <= yyyy1 && IsDead == true && NewHP <= 1)) {
            NewHP = getLevelForXP(playerXP[3]);
            setSkillLevel(3, getLevelForXP(playerXP[3]),
            playerXP[playerHitpoints]);
            playerLevel[3] = getLevelForXP(playerXP[3]);
            refreshSkills();
        updateRequired = true;
        appearanceUpdateRequired = true;
            teleportToX = xxxx;
            teleportToY = yyyy;
            sendMessage("After they die, you insert text here.");
        }
       

        else if (IsDead == true && NewHP <= 1) {
            refreshSkills();
            ApplyDead();
        }


(You can copy and paste this if you want)


Code: [Select]
if ((absX >= xxxx1 && absX <= xxxx2 && absY >= yyyy2 && absY <= yyyy1 && IsDead == true && NewHP <= 1)) {
xxxx1 and yyyy1 Northeast cords, xxxx2 and yyyy2 are the southeast

Code: [Select]
teleportToX = xxxx;
  teleportToY = yyyy;

The place they go after they die, I suggest your home cords


Code: [Select]
sendMessage("Danny put here ur text when people die.");


Insert a message after they die here

These are the basic things you have to change for a FunPK area

Credits
Me

Hope this helped





[IMG]http://h1.flashvortex.com/display.php?id=2_1295372213_64613_442_0_728_90_9_1_109[img]

Share on Bluesky Share on Facebook


pker wessel

  • Beginner
  • *
  • Posts: 37
  • I like helping!
  • Location: Netherland
    • View Profile
Re: How to add FUNPK!
« Reply #1 on: January 18, 2011, 03:35:02 pm »
Post @ suggestions
I like helping players!

love claws

  • Full
  • ***
  • Posts: 113
  • I'm here to help!
    • View Profile
Re: How to add FUNPK!
« Reply #2 on: January 18, 2011, 03:44:59 pm »
I cant move  >:( >:(
[IMG]http://h1.flashvortex.com/display.php?id=2_1295372213_64613_442_0_728_90_9_1_109[img]

яσηaℓ∂

  • Junior
  • **
  • Posts: 66
  • MAGIC
  • Location: Bristol
    • View Profile
    • http://www.encryptedx.tk/
Re: How to add FUNPK!
« Reply #3 on: January 22, 2011, 05:32:40 pm »
good work open your own codes list
DO YOU BELIEVE IN MAGIC?

Danny

  • Main Owner
  • Beginner
  • *
  • Posts: 35
    • View Profile
Re: How to add FUNPK!
« Reply #4 on: January 22, 2011, 09:25:48 pm »
Ty for this but this is "all-star" base coding now delta sorry
Thanks
Danny