Wednesday, 2025-01-08, 7:29 AM
CoolerScape
Welcome Guest | RSS
Main | [TuT]Funzones[TuT] - Forum | Registration | Login
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
[TuT]Funzones[TuT]
shockzDate: Friday, 2008-09-26, 7:57 PM | Message # 1
Man/Woman
Group: Administrator
Messages: 16
Reputation: 1
Status: Member is Offline
Description: make an area that you dont lose items when you die
difficulty: 3/10
Classes modified : Client

this is straight forward.
Search

Code
        // If killed apply dead

Then Delete everything under it make sure you stop before the "//update correct hp in stat screen"

then paste this.

Code
        // If killed apply dead
         if ((absX >= xxxx && absX <= xxxx && absY >= xxxx && absY <= xxxx && 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 = yyyy;
             teleportToY = yyyy;
             sendMessage("whatever death message you want..");
         }
          

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

OK...
look at this for a moment

Code
if ((absX >= xxxx && absX <= xxxx && absY >= xxxx && absY <= xxxx

What this does, is determins the co-ords of where the fun zone is.
its done the way that wilderness levels are.
it kind of..draws a box.
heres what you do

Code
if ((absX >= southwest X && absX <= Northeast x  && absY >= Southwest Y && absY <= Northeast Y

Then after you have done that, look at

Code
teleportToX = yyyy;
teleportToY = yyyy;

Change those to where you go when you die.

 
JustinDate: Friday, 2008-09-26, 8:35 PM | Message # 2
Wolf
Group: Administrator
Messages: 31
Reputation: 1
Status: Member is Offline
Thank You About All tutorials what u have add smile

Rep+


Best RuneScape Classic Server:
HTTP://PROJECTP2P.NET
 
  • Page 1 of 1
  • 1
Search:

Copyright MyCorp © 2025 Powered by uCoz