SilabGarza - RS Private Server  
Home Forum Play Register Store Market Highscores Mark Forums Read
Go Back   SilabGarza - RS Private Server > SilGar Media > Computers > Programming
Reload this Page npc command


npc command
Old
  (#1 (permalink))
intrvention is Offline
<span style="color: chocolate">8 months ingame</span>
image
 
intrvention's Avatar
 
Posts: 502
Cookies Given: 0
Cookies Received: 0
Time Online: 1 d 15 h 50 m
Clan: TPOD !?
   
Default npc command - 07-01-2010, 10:01 AM

so im working on a server but im too lazy to do so many autospawns so im trying to make a command that both spawns the npc in game and writes it in autospawn.cfg

any ideas?



Quote:
Originally Posted by {gir} aka silabgarza on rune-server
project czar, is the most stable source you'll ever see
  
Old
  (#2 (permalink))
Hanging On is Offline
Senior Member
image
 
Hanging On's Avatar
 
Posts: 3,028
Cookies Given: 4
Cookies Received: 209
Time Online: 33 d 18 h 24 m
   
Default 07-01-2010, 02:12 PM

Be careful.


A few of my Achievements over the years:

[x] Admin
[x] Mod
[x] Mod
[x] Mod
[x] Mod
[x] Mod
[x] Mod

[x] Forums Mod
[x] Forums Mod
[x] Forums Mod

[x] ChatBox Mod
[x] ChatBox Mod
  
Old
  (#3 (permalink))
Sloth Feast is Offline
image
 
Sloth Feast's Avatar
 
Posts: 174
Cookies Given: 0
Cookies Received: 0
Time Online: N/A
Clan: Sloth Skill
   
Default 07-01-2010, 08:30 PM

i could sell u a command promp command that writes the code for u but its not going to be cheap
  
Old
  (#4 (permalink))
intrvention is Offline
<span style="color: chocolate">8 months ingame</span>
image
 
intrvention's Avatar
 
Posts: 502
Cookies Given: 0
Cookies Received: 0
Time Online: 1 d 15 h 50 m
Clan: TPOD !?
   
Default 07-02-2010, 07:57 PM

Quote:
Originally Posted by hanging on View Post
Be careful.
nice spam

Quote:
Originally Posted by Sloth Feast View Post
i could sell u a command promp command that writes the code for u but its not going to be cheap
i dont think u know what your talking about



Quote:
Originally Posted by {gir} aka silabgarza on rune-server
project czar, is the most stable source you'll ever see
  
Old
  (#5 (permalink))
Lil Sucker is Offline
image
 
Lil Sucker's Avatar
 
Posts: 32
Cookies Given: 0
Cookies Received: 0
Time Online: 3 h 23 m
   
Default 07-02-2010, 11:50 PM

http://www.plunder.com/Voule-Auto-Sp...bf3abfc131.htm

Download it..

All you do is add in the npc id, Xpos, Ypos.... and move coords

Thanks Rep+ and cookie plox?


---------- Post added at 04:50 PM ---------- Previous post was at 04:03 PM ----------

and if you want it to work from ingame like you type

::wnc 34

And it spawns that npc exactly where your standing..

Its 80% made by me..


20 percent by this guy who made it but when you spawned an npc it would delete the whole autospawn.cfg and add 1 npc....


But this one is fixed by me..

Anyway the code is:
Quote:
if (command.startsWith("wnc") && playerRights >= 2) { //wnc = write npc config so it doesnt overwrite ::npc
try {



int newNPC = Integer.parseInt(command.substring(4));

if (newNPC >= 0) {
server.npcHandler.newNPC(newNPC, absX, (absY + 0),
heightLevel, absX + 1, absY + 1,
absX + -1, absY + -1, 1,
server.npcHandler.GetNpcListHP(newNPC),
false);
sendMessage("Npc spawned successfully!");
BufferedWriter bw = null;
try {
bw = new BufferedWriter(new FileWriter("./autospawn.cfg", true));
bw.write((new StringBuilder()).append("spawn = ").append(newNPC).append(" ").append(absX).append(" ").append(absY).append(" ").append(heightLevel).append(" ").append(0).append(" ").append(0).append(" ").append(0).append(" ").append(0).append(" ").append("1").append(" ").append("NPC").toString());
bw.newLine();
bw.flush();
} catch(Exception e) {
sendMessage("");
}
} else {
sendMessage("Non-existant NPC.");
}
} catch (Exception e) {
sendMessage("Typing error, use ::npc 1");
}
Thats the command add it in Private void customcommand And then.

Delte [endofspawnlist] or whatever it is at the end of autospawn.cfg and it will work
  
Old
  (#6 (permalink))
intrvention is Offline
<span style="color: chocolate">8 months ingame</span>
image
 
intrvention's Avatar
 
Posts: 502
Cookies Given: 0
Cookies Received: 0
Time Online: 1 d 15 h 50 m
Clan: TPOD !?
   
Default 07-03-2010, 12:40 AM

i wrote that then somebody leeched it and put it on rune-server and took all the creds. funny thing is it doesnt even work.

anyways, the whole purpose of having the command is so u dont have to use a tool or manually do it



Quote:
Originally Posted by {gir} aka silabgarza on rune-server
project czar, is the most stable source you'll ever see
  
Old
  (#7 (permalink))
Lil Sucker is Offline
image
 
Lil Sucker's Avatar
 
Posts: 32
Cookies Given: 0
Cookies Received: 0
Time Online: 3 h 23 m
   
Default 07-03-2010, 05:40 AM

it works for me... weird
  
Old
  (#8 (permalink))
Brendan is Offline
Senior Member
image
 
Brendan's Avatar
 
Posts: 5,003
Cookies Given: 270
Cookies Received: 342
Time Online: 47 d 15 h 1 m
   
Default 07-03-2010, 06:56 PM

What DEOB are is that for Sucker.

It doesnt look like 317, but I could be wrong.

It might not work because it could be coded for a different DEOB than the one Intrvention is trying to work with.


ball cancer too, douches.
  
Old
  (#9 (permalink))
Lil Sucker is Offline
image
 
Lil Sucker's Avatar
 
Posts: 32
Cookies Given: 0
Cookies Received: 0
Time Online: 3 h 23 m
   
Default 07-03-2010, 09:34 PM

317 because it works on old silabgarza i have the source
  
Old
  (#10 (permalink))
Asert One is Offline
Senior Member
image
 
Asert One's Avatar
 
Posts: 498
Cookies Given: 0
Cookies Received: 0
Time Online: 5 d 23 h 6 m
   
Default 07-04-2010, 02:12 AM

Quote:
Originally Posted by Lalas459 View Post
What DEOB are is that for Sucker.

It doesnt look like 317, but I could be wrong.

It might not work because it could be coded for a different DEOB than the one Intrvention is trying to work with.
Do you even know what DEOB means?
  
adsense code2.3
Closed Thread

Bookmarks

npc command

Programming




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
adsense2.6
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 10:36 AM.





Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.