Divinerscape
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Divinerscape

Divinerscape beta 562 And 508
 
HomeGalleryLatest imagesSearchRegisterLog in
Adding soul wars to a 562. Statusimg.php?ip=divinerscape.no-ip
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Dota 6.78 Ai
Adding soul wars to a 562. I_icon_minitimeTue Feb 18, 2014 5:14 am by chaunnef

» Autodata 3.38 Suomi Torrent
Adding soul wars to a 562. I_icon_minitimeTue Feb 18, 2014 3:35 am by chaunnef

» Los Reyes De Arranque Puro Pinche Party Rar
Adding soul wars to a 562. I_icon_minitimeFri Feb 14, 2014 5:51 pm by chaunnef

» SEVER NEEDS WORK!
Adding soul wars to a 562. I_icon_minitimeSat Jun 16, 2012 11:48 am by mosf1415

» Keep spawning at falador??? when login with a new account
Adding soul wars to a 562. I_icon_minitimeMon Aug 16, 2010 8:22 am by Jimmy300114

» How to Add Costum items (like agile and H'ween stuff)
Adding soul wars to a 562. I_icon_minitimeSat Aug 14, 2010 8:35 am by Jimmy300114

» Making Npc's Talk???
Adding soul wars to a 562. I_icon_minitimeSat Aug 14, 2010 6:02 am by Jimmy300114

» How do you Make Construction and Making G.e Work???
Adding soul wars to a 562. I_icon_minitimeSat Aug 14, 2010 5:31 am by Jimmy300114

» omfg put the server on!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Adding soul wars to a 562. I_icon_minitimeThu Aug 12, 2010 4:30 am by d3mons

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

 

 Adding soul wars to a 562.

Go down 
AuthorMessage
zeck
Owner
Owner



Posts : 27
Reputation : 3
Join date : 2010-01-17
Age : 33
Location : Florida

Adding soul wars to a 562. Empty
PostSubject: Adding soul wars to a 562.   Adding soul wars to a 562. I_icon_minitimeWed Apr 28, 2010 7:44 pm

Ok, here's a tutorial on adding soul wars to a 562.

Making a Command for Soul Wars-

\src\com\rs2hd\packethandler\CommandsPacketHandler
For Players-

Code:
   }
if(cmd[0].equals("::sw")) {
   player.getActionSender().removeTab1();
   if(player.SafeZone()) {
      player.getTele().telePlayer(player, 3080, 3478, 0, 1);
   } else if (Location.wildernessLevel(player.getLocation()) > 20) {
      player.sm("you cannot teleport above 20 wilderness");
   } else {
      player.getTele().telePlayer(player, 3080, 3478, 0, 1);
   }
   

\src\com\rs2hd\packethandler\CommandPacketHandler
For Admins-

Code:

   }
if(cmd[0].equals("sw")) {
   player.getActionSender().removeTab1();
   if(player.SafeZone()) {
      player.getTele().telePlayer(player, 3080, 3478, 0, 1);
   } else if (Location.wildernessLevel(player.getLocation()) > 20) {
      player.sm("you cannot teleport above 20 wilderness");
   } else {
      player.getTele().telePlayer(player, 3080, 3478, 0, 1);
   }

Making the Objects work-

\src\com\rs2hd\packethandler\Object1PacketHandler
Code:

  case 42219://Enter Soul Wars Lobby
  player.tele(1886, 3178 , 0);
  player.WalkTo().GoTo(player, x, y-1);
  break;
 
  case 42220://Exit Soul Wars Lobby
  player.tele(3081, 3476 , 0);
  player.WalkTo().GoTo(player, x, y-1);
  break;
 
  case 42031://Green Portal
  player.getTele().telePlayer(player, 1885, 3232, 0, 4);
  player.WalkTo().GoTo(player, x, y-1);
  break;
 
  case 42029: //Blue barrier
  player.tele(1819, 3225 , 0);
  player.getActionSender().sendMessage("You Joined the Blue team!");
  break;
 
  case 42030: //Red Barrier
  player.tele(1955, 3239 , 0);
  player.getActionSender().sendMessage("You Joined the Red team!");
  break;
 
  case 42022: //Red Leave-Game portal
  player.tele(1890, 3164 , 0);
  player.getActionSender().sendMessage("You have left the Red team!");
  break;
 
  case 42021: //Blue Leave-Game portal
  player.tele(1890, 3164 , 0);
  player.getActionSender().sendMessage("You have left the Blue team!");
  break;
 
  case 42018: //Red Barrier ingame
  player.tele(1959, 3239 , 0);
  break;
 
  case 42015: //Blue Barrier ingame
  player.tele(1815, 3225 , 0);
  break;
 
  case 42024: //Red Bandage table
  player.getInventory().addItem(4049, 1);
  break;
 
  case 42023: //Blue Bandage table
  player.getInventory().addItem(4049, 1);
  break;
 
  case 42026: //Red Barricade table
  player.getInventory().addItem(4053, 1);
  break;
 
  case 42025: //Blue Barricade table
  player.getInventory().addItem(4053, 1);
  break;
 
  case 42028: //Red Potion table
  player.getInventory().addItem(4045, 1);
  break;
 
  case 42027: //Blue Potion table
  player.getInventory().addItem(4045, 1);
  break;

Making the Bank work-

\src\com\rs2hd\packethandler\Object1PacketHandler
Code:

  case 42192://Soul Wars Bank
  player.WalkTo().GoTo(player, x, y-1);
  player.getBank().openBank();
  break;

Adding Npc's Hp and Animations!

\data\npcDefinitions

Code:

  <npcDefinition>
    <id>8596</id>
    <name>Avatar of Destruction</name>
    <examine>Wow... Lmao Gl!!!</examine>
    <respawn>20</respawn>
    <combat>525</combat>
    <hitpoints>10000</hitpoints>
    <maxHit>43</maxHit>
    <attackSpeed>7</attackSpeed>
    <attackAnim>11197</attackAnim>
    <defenceAnim>11198</defenceAnim>
    <deathAnim>11199</deathAnim>
  </npcDefinition>
  <npcDefinition>
    <id>8597</id>
    <name>Avatar of Creation</name>
    <examine>Wow... Lmao Gl!!!</examine>
    <respawn>20</respawn>
    <combat>525</combat>
    <hitpoints>10000</hitpoints>
    <maxHit>43</maxHit>
    <attackSpeed>7</attackSpeed>
    <attackAnim>11202</attackAnim>
    <defenceAnim>11203</defenceAnim>
    <deathAnim>11204</deathAnim>
  </npcDefinition>
    <npcDefinition>
        <id>1637</id>
        <name>jelly</name>
        <combat>78</combat>
        <hitpoints>75</hitpoints>
        <maxHit>6</maxHit>
        <attackSpeed>7</attackSpeed>
        <attackAnim>1586</attackAnim>
        <defenceAnim>1585</defenceAnim>
        <deathAnim>1587</deathAnim>
    </npcDefinition>
    <npcDefinition>
        <id>1636</id>
        <name>pyrefiend</name>
        <combat>43</combat>
        <hitpoints>25</hitpoints>
        <maxHit>3</maxHit>
        <attackSpeed>7</attackSpeed>
        <attackAnim>1582</attackAnim>
        <defenceAnim>1581</defenceAnim>
        <deathAnim>1580</deathAnim>
    </npcDefinition>
98% Npc's-

\data\npcs\

Code:

//Avatars-
<npc><id>8596</id><location><x>1967</x><y>3251</y><z>0</z></location></npc>
<npc><id>8597</id><location><x>1807</x><y>3211</y><z>0</z></location></npc>
 
 
//Pyrefiends and Jelly's!
<npc><id>1636</id><location><x>1922</x><y>3219</y><z>0</z></location></npc>//Soul Wars Npc's
<npc><id>1636</id><location><x>1924</x><y>3216</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1924</x><y>3213</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1921</x><y>3210</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1926</x><y>3208</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1929</x><y>3206</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1931</x><y>3209</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1929</x><y>3212</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1929</x><y>3217</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1934</x><y>3216</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1871</x><y>3254</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1873</x><y>3256</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1877</x><y>3256</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1879</x><y>3259</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1882</x><y>3258</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1892</x><y>3253</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1880</x><y>3255</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1885</x><y>3255</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1889</x><y>3252</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1899</x><y>3252</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1902</x><y>3250</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1904</x><y>3253</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1905</x><y>3249</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1895</x><y>3251</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1844</x><y>3248</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1847</x><y>3251</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1848</x><y>3248</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1848</x><y>3244</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1852</x><y>3247</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1852</x><y>3243</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1843</x><y>3243</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1838</x><y>3249</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1842</x><y>3254</y><z>0</z></location></npc>
<npc><id>1636</id><location><x>1846</x><y>3254</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1882</x><y>3210</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1886</x><y>3207</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1884</x><y>3204</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1880</x><y>3205</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1879</x><y>3208</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1882</x><y>3211</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1878</x><y>3204</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1873</x><y>3208</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1890</x><y>3204</y><z>0</z></location></npc>
<npc><id>1637</id><location><x>1889</x><y>3207</y><z>0</z></location></npc>//End of Soul Wars Npc's

And then compile and your done. Hope this helps you in your 562 coding!
Back to top Go down
https://divinerscape.forumotion.com
 
Adding soul wars to a 562.
Back to top 
Page 1 of 1
 Similar topics
-
» 562 Adding objects
» 562 rs2hd caelum's base adding shops
» Html Making a Webpage and adding a xbox Gamescore point

Permissions in this forum:You cannot reply to topics in this forum
Divinerscape :: Html, C++, Java, Server Tutorials-
Jump to: