Author Topic: Summerbright. Korasai, primal, chaotic, summoning, claws  (Read 427 times)

Offline Alex_Kilroy

  • Adamant Member
  • *
  • Posts: 91
  • Rep 2
  • Java programmer
  • Location: United Kingdom, England.
    • View Profile
Summerbright. Korasai, primal, chaotic, summoning, claws
« on: March 15, 2011, 08:18:49 am »

Introduction:
Peekaboo, this is a new project I've been working on.
The client base is a refactored Galkon's, and well the server is PI, but highly edited lol. Mainly combat and skill wise.
I've been working on this for sometime and the combat is getting pretty good.
Thats all.

What has been done:
Okay, well the only models I've added are all #474 revision preloaded through idx1 in the cache (I had to remove and preload them because it wasn't allowing 1 model).
This consists of dragon claws, korasi's sword, all chaotic and all PVP armor.
I've also added numerous 525 animations for the pvp items, still getting my hands on the 634 animation and gfx for Korasi's sword at the moment, but I'll have it soon.
I've also been loading a few Python scripts for digging packets etc. Partially because its easier to handle some skills through scripts.
The combat has been re-wrote by the one and only, mee lol. It needs a little more work but if I feel upto it, I may release my combat.
Also the projectile on the gfx for Korasi's sword special, is mage and when the point hits, it'll do a random hit between 20% depending on your magic level.
Thats all for now.

Media:

Updates: 0.13
Chaotic models added.

Media:

Credits:
Amy Web for the Korasai sword model.

Updates: 0.17
I've now created the clue scroll's class, a class for the literal clue scrolls. And a handler to handle them.

I've created whether the player has the clue or not depending on item ID.
Code: [Select]
public boolean hasClue() {
return c.getItems().playerHasItem(2690, 1);
}

Now for levels, I've handled the clue per level. Example for level one:
Code: [Select]
public void levelOne(int itemId) {
c.levelOne().level1Clue(itemId);
}

The dialogue was handled separately but works fine.
The digging works viai the xy coordinates, if the player get the correct coordinates using the tools provided.
The action will delete the clue and give a casket, leaving a 40% chance of getting another clue, or simply getting items.
Example of registering the progress through the level of clue.
Code: [Select]
public void digForClue() {
if (hasClue() && c.absX == xStage1 && c.absY == yStage1 && c.clueStage == 1) {
c.getDH().sendDialogues(56, 4289);
c.clueStage++;
} else if (hasClue() && c.absX == xStage2 && c.absY == yStage2 && c.clueStage == 2) {
c.getDH().sendDialogues(55, 4289);
c.getItems().deleteItem(2690, c.getItems().getItemSlot(2690), 1);
c.getItems().addItem(3585, 1);
c.clueStage = 3;
}
}

And clicking the casket in handled in clickingstuff. I might put it in the clue handler though. Depends how I feel about it.

Thats all for now until I finish the interfaces.

Updates: 0.20
Okay I've added 100% primal, no **** ups.
Once agains, credits Amy Webb. You don't have to believe it but she made it soo..



Updates: 0.22
Credits Canownueasy(Thomas Nappo) for the plugin system.
The combat has been updates,
When you set the damage of a weapon's special attack. I would be given a level, example:
Code: [Select]
playerDamage = 3; OR playerDamage = 2.35;I've used my friends plugin the RandomDandom class.

It randomizes the set route for the hit.
Example:
Code: [Select]
playerDamage = 1.45~2.55;Simple but effective.
The lowest damage would be 1.45 now.
Leaving the maxinum damage 2.55.
I added this to all weapons using 0-2.55. etc.
I needed this for my Korasai sword.
I'll update with more soon...

Updates: 0.30
I've removed project insanity's networking and replaced it with an old framework of mine's.
I ran a botted connection test and it lasted 1400 connections no lag, around 1600 it lagged and at 1847 exactly it disconnected.

Now obviously sending in fake client connections aren't like real connections so by past experience I'm guessing it can handle around 1000 connection on about a 6gb ram and run fine.

That may not sound very good but I'm not the best at frameworks, I was going to use a friends but he said it isn't finished so until he finishes this will be the networking.

My framework networking uses a multithreaded process. It also pauses all run methods once started. So that it may process the smaller methods, then gradually build up the rest, it takes around 56ms to start up and its over 5MB at the moment.

More updates soon.

Updates: 0.31
Credit canownueasy (Thomas Nappo) for his plugin system, I need to update to his new one hes going to send it me soon (:.
I've created a plugin for a combat calculator max hit.
Its pretty perfect but not showing any code from the plug in.

Stay tuned for more updates.

Updates: 0.33
I've rewrote the NPC drops and added a rarity system using my RandomDandom plugin.

The rarity plugin is here:
Code: [Select]
while(true) {
          c.RandomDandom.IsActive;
          if(variableKey = true) {
                RandomVariableKey = "~";
          } else {
                New.RandomVariableKey = "~";
      }
}

This is the activation method that would be used for the RandomDandom plugin aka using the "~" to randomize it.
So now in npc drops it possible to use:
Code: [Select]
500~1000

And it would create the drop from the NPC random between item ID's 500 and 1000.

Now the dropItem method for NPCHandler has had to have been re-wrote for a new format.

Code: [Select]
public void dropItems(int i) {
int npc = 0;
Client c = (Client)Server.playerHandler.players[npcs[i].killedBy];
if(c != null) {
for(int o = 0; o < c.barrowsNpcs.length; o++){
if(npcs[i].npcType == c.barrowsNpcs[o][0]) {
c.barrowsNpcs[o][1] = 2; // 2 for dead
c.barrowsKillCount++;
}
}
if (npcs[i].npcType == 912 || npcs[i].npcType == 913 || npcs[i].npcType == 914)
c.magePoints += 1;

for(npc = 0; npc < Config.NPC_DROPS.length; npc++){
if(npcs[i].npcType == Config.NPC_DROPS[npc][0]) {
if(RandomDandom.random(Config.NPC_DROPS[npc][3]) == 0) {
if (c.clanId >= 0)
Server.clanChat.handleLootShare(c, Config.NPC_DROPS[npc][1], Config.NPC_DROPS[npc][2]);
Server.itemHandler.createGroundItem(c, Config.NPC_DROPS[npc][1], npcs[i].absX, npcs[i].absY, Config.NPC_DROPS[npc][2], c.playerId);
}
}
}
}
}
ItemHandler was used to create the ground item.

Now here is an example for the constants class.
Code: [Select]
public static final int[][] NPC_DROPS = {
// Men
{1,526,1,0}, {2,526,1,0}, {3,526,1,0},

The most simple way to create the drop.
It works liek this:
{NPCID,ITEMID,ITEMAMMOUNT,RARITY}
Code: [Select]
public static final int[][] NPC_DROPS = {
{NpcId   ,  ItemId ,  ItemAmount  ,  ItemRarity  }, {2,526,1,0}, {3,526,1,0},
And now an example of using my RandomDandom plugin.


         {NpcId  ,  ItemId ,  ItemAmount  ,  ItemRarity  }, {2,526~700,1,0}
As you can see, I've put in bold the parts where the plugin is used. the ~ represents a loop of the items, so the random can generate the ID's that need to be used. So between 526 and 700 it'll spawn them items randomly on drop, but only one of them. Unless you change the amount, so say the random came up to be 578 and amount variable was at 20, it would spawn 20 of 578.
But I'm not sure how to make it spawn 20 randomly yet, working on that.


Hope you like it guys, feel free to rip it if you like although the rarity will not work.
And I'm not releasing my random plugin, write your own.

More updates coming soon.

Media:

Updates: 0.40
I'm going to start on my summoning.

Part: pouches.
Pouches have been added.


Updates: 0.43
I've managed to get my hands on this weeks Runescape models and wrote a handling method for my client to handle the RS texture of the NPC models.
Here is steel titan:
« Last Edit: March 16, 2011, 04:55:49 pm by Alex_Kilroy »
I'm a MEXICAN
#facepalm
My various other names are, Byte3, Kaex and Limbo.
I am now known as Alex_Kilroy.

Share on Bluesky Share on Facebook


Offline brandon

  • Veteran
  • Dragon Member
  • *
  • Posts: 240
  • Rep 12
    • View Profile
Re: Summerbright.
« Reply #1 on: March 15, 2011, 10:55:02 am »
Very nice, hope to see more.

Offline Alex_Kilroy

  • Adamant Member
  • *
  • Posts: 91
  • Rep 2
  • Java programmer
  • Location: United Kingdom, England.
    • View Profile
Re: Summerbright.
« Reply #2 on: March 15, 2011, 11:40:59 am »
Very nice, hope to see more.

I've not even started it properly yet lol.
I'm a MEXICAN
#facepalm
My various other names are, Byte3, Kaex and Limbo.
I am now known as Alex_Kilroy.

Offline Cinodor

  • I'm Awesome
  • Veteran
  • Pernix Member
  • *
  • Posts: 494
  • Rep 15
  • I Do Graphics To.
  • Location: GMT -6 (Oklahoma)
    • View Profile
oooh Sexy Primal, lol Good luck with your project though..
Signature Loading.. Please Wait..

Offline Sam

  • Bandos Member
  • *
  • Posts: 372
  • Rep 1
    • View Profile
Good job man!
Keep us updated  :hurr:
++Rep!

Offline Cinodor

  • I'm Awesome
  • Veteran
  • Pernix Member
  • *
  • Posts: 494
  • Rep 15
  • I Do Graphics To.
  • Location: GMT -6 (Oklahoma)
    • View Profile
Gr jk ily :D Rep++ like Sam, Yeah i tell the future
« Last Edit: March 16, 2011, 08:31:07 am by Cinodor »
Signature Loading.. Please Wait..

Offline Ferp

  • Dragon Member
  • *
  • Posts: 238
  • Rep 10001
  • Making the impossible, possible.
  • Location: Canada
    • View Profile
Your mauls a bit crooked. Otherwise very nice, but do people actually like Korasi?


Offline Sam

  • Bandos Member
  • *
  • Posts: 372
  • Rep 1
    • View Profile
:fp: WHY? Nice way to abuse the Rep.. -.-

Well I think this looks awesome, so I've given him some rep...
Because this made his 'reputation' go up in my eyes.

It's my rep, I can decide who to give to and what for.

Offline Alex_Kilroy

  • Adamant Member
  • *
  • Posts: 91
  • Rep 2
  • Java programmer
  • Location: United Kingdom, England.
    • View Profile
Your mauls a bit crooked. Otherwise very nice, but do people actually like Korasi?

Don't really know, but I've kept it even, spec always hits above 40 and maxes at 75. Its also a mage attack so higher your mage is better you'll hit, requires 90 attack to equip.

And no other 317 server has it, so I thought why not, good welfare weapon.
I'm a MEXICAN
#facepalm
My various other names are, Byte3, Kaex and Limbo.
I am now known as Alex_Kilroy.

Offline Sam

  • Bandos Member
  • *
  • Posts: 372
  • Rep 1
    • View Profile
PM me the link for client download?

Offline Alex_Kilroy

  • Adamant Member
  • *
  • Posts: 91
  • Rep 2
  • Java programmer
  • Location: United Kingdom, England.
    • View Profile
PM me the link for client download?

Sorry its not going into a server yet.
I'm a MEXICAN
#facepalm
My various other names are, Byte3, Kaex and Limbo.
I am now known as Alex_Kilroy.

Offline Sam

  • Bandos Member
  • *
  • Posts: 372
  • Rep 1
    • View Profile
PM me the link for client download?

Sorry its not going into a server yet.

Ah sorry.. I thought when you said you weren't sure if players liked it you meant members of your server  :re:
Well message me when it is up and I'll be sure to check it out!  :hurr:

Offline Alex_Kilroy

  • Adamant Member
  • *
  • Posts: 91
  • Rep 2
  • Java programmer
  • Location: United Kingdom, England.
    • View Profile
PM me the link for client download?

Sorry its not going into a server yet.

Ah sorry.. I thought when you said you weren't sure if players liked it you meant members of your server  :re:
Well message me when it is up and I'll be sure to check it out!  :hurr:

Just keep your eye on this thread and you'll find if I turn it into a server.
Updated my special attacks max amount using a friends plugin.
I'm a MEXICAN
#facepalm
My various other names are, Byte3, Kaex and Limbo.
I am now known as Alex_Kilroy.

Offline Sam

  • Bandos Member
  • *
  • Posts: 372
  • Rep 1
    • View Profile
PM me the link for client download?

Sorry its not going into a server yet.

Ah sorry.. I thought when you said you weren't sure if players liked it you meant members of your server  :re:
Well message me when it is up and I'll be sure to check it out!  :hurr:

Just keep your eye on this thread and you'll find if I turn it into a server.
Updated my special attacks max amount using a friends plugin.

You should definetly turn it into a server! :D
I'd help in which ever way I could (I can't code but I could help make forums and advertise and whatnot..)

And awesome, keep going!  :hurr:

Offline Alex_Kilroy

  • Adamant Member
  • *
  • Posts: 91
  • Rep 2
  • Java programmer
  • Location: United Kingdom, England.
    • View Profile
PM me the link for client download?

Sorry its not going into a server yet.

Ah sorry.. I thought when you said you weren't sure if players liked it you meant members of your server  :re:
Well message me when it is up and I'll be sure to check it out!  :hurr:

Just keep your eye on this thread and you'll find if I turn it into a server.
Updated my special attacks max amount using a friends plugin.

You should definetly turn it into a server! :D
I'd help in which ever way I could (I can't code but I could help make forums and advertise and whatnot..)

And awesome, keep going!  :hurr:

I do XHTML & PHP, so forums be fine but good to know.
I getting rid of viruses on my server I got infected some how by **** loads.
I'm a MEXICAN
#facepalm
My various other names are, Byte3, Kaex and Limbo.
I am now known as Alex_Kilroy.