|
You last visited: Today at 15:38
Advertisement
[RELEASE] GUILD CONTROLLER
Discussion on [RELEASE] GUILD CONTROLLER within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
02/13/2009, 13:01
|
#1
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
[RELEASE] GUILD CONTROLLER
hi im pete,
this release is the guild controller that teleports you to random spots, have fun you can change the coords too >.<
( goes in client.cs )
NPC DIALOG
Code:
if (CurrentNPC == 600) // Guild Controller
{
SendPacket(General.MyPackets.NPCSay("Would you like to enter Guild Wars? Soon if you die you will have to wait!")); // NPC Dialog
SendPacket(General.MyPackets.NPCLink("Oh Yes Please!", 1)); // Your Respond ( Also Control 1)
SendPacket(General.MyPackets.NPCLink("No No No, It's Too Scary!", 255)); // Your Respond ( Also Makes you Exit the NPC Dialog because of 255)
SendPacket(General.MyPackets.NPCSetFace(30)); // Sets the face << vital to make npc work
SendPacket(General.MyPackets.NPCFinish()); // completes the npc << vital to make npc work
}
NPC DO
Code:
if (CurrentNPC == 600) // Guild Controller Do
{
if (Control == 1) // What it does for your Respond
{
Random R = new Random(); // New Random
int Nr = R.Next(1, 10); // "Randomally" Picks a number 1-10
if (Nr == 1) //Random Spot 1
{
MyChar.Teleport(1038, 351, 341);
}
if (Nr == 2) //Random Spot 2
{
MyChar.Teleport(1038, 335, 345);
}
if (Nr == 3) //Random Spot 3
{
MyChar.Teleport(1038, 309, 369);
}
if (Nr == 4) //Random Spot 4
{
MyChar.Teleport(1038, 283, 340);
}
if (Nr == 5) //Random Spot 5
{
MyChar.Teleport(1038, 310, 327);
}
if (Nr == 6) //Random Spot 6
{
MyChar.Teleport(1038, 318, 297);
}
if (Nr == 7) //Random Spot 7
{
MyChar.Teleport(1038, 347, 309);
}
if (Nr == 8) //Random Spot 8
{
MyChar.Teleport(1038, 337, 320);
}
if (Nr == 9) //Random Spot 9
{
MyChar.Teleport(1038, 309, 293);
}
if (Nr == 10) //Random Spot 10
{
MyChar.Teleport(1038, 371, 300);
}
}
}
umm good luck with your server.. this is made for lotf if you dont like it, DONT USE IT??!!!?? i like lotf , its my buddy
ill be home in about 7-8 hours, going to school early today because mom has to go to work early so she drop me off at our school daycare spot =]
|
|
|
02/13/2009, 14:19
|
#2
|
elite*gold: 0
Join Date: Feb 2009
Posts: 30
Received Thanks: 16
|
May I suggest actually using else - if statements? I don't see a point comparing a number multiple times (like you are doing by only using if statements). You could also check the "Optimize code" checkbox in your settings and then use switch statement. (Which then will basically be same as else - if statement)
|
|
|
02/13/2009, 14:29
|
#3
|
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
|
doesn't really maters, you can make a random x y that stays between the map array
the point is, he released a basic npc that does a random number between 1 and 10 this could be usefull for ppl that want to make random items for gift or what ever.
there are multiple ways to make this, if - else if - cases ...
nice pete
|
|
|
02/13/2009, 15:13
|
#4
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
Quote:
if (Nr == 1) //Random Spot 1
{
MyChar.Teleport(1038, 351, 341);
}
if (Nr == 2) //Random Spot 2
{
MyChar.Teleport(1038, 335, 345);
}
if (Nr == 3) //Random Spot 3
{
MyChar.Teleport(1038, 309, 369);
}
if (Nr == 4) //Random Spot 4
{
MyChar.Teleport(1038, 283, 340);
}
if (Nr == 5) //Random Spot 5
{
MyChar.Teleport(1038, 310, 327);
}
if (Nr == 6) //Random Spot 6
{
MyChar.Teleport(1038, 318, 297);
}
if (Nr == 7) //Random Spot 7
{
MyChar.Teleport(1038, 347, 309);
}
if (Nr == 8) //Random Spot 8
{
MyChar.Teleport(1038, 337, 320);
}
if (Nr == 9) //Random Spot 9
{
MyChar.Teleport(1038, 309, 293);
}
if (Nr == 10) //Random Spot 10
{
MyChar.Teleport(1038, 371, 300);
}
|
MyChar.Teleport(1038, (ushort)General.Rand.Next(310, 360), (ushort)General.Rand.Next(297, 304));
Would work like the same way.
|
|
|
02/13/2009, 16:21
|
#5
|
elite*gold: 0
Join Date: Aug 2006
Posts: 129
Received Thanks: 15
|
Quote:
|
SendPacket(General.MyPackets.NPCSetFace(30)); // Sets the face << vital to make npc work
|
This isn't vital to make the npc work ...
|
|
|
02/13/2009, 16:26
|
#6
|
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
|
@ eme
yes it would work the same way
but you could have let him do the thinking for it
he won't learn if he see the solution
|
|
|
02/13/2009, 17:25
|
#7
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by EmmeTheCoder
MyChar.Teleport(1038, (ushort)General.Rand.Next(310, 360), (ushort)General.Rand.Next(297, 304));
Would work like the same way.
|
Not if you want 10 fixed point positions like real TQ which im assuming is what this guy has gone for.
|
|
|
02/13/2009, 17:40
|
#8
|
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
|
so far i know tq did random points when gw isn't activated ones it is activated it will stay on one place ...
|
|
|
02/13/2009, 18:27
|
#9
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by yuko
so far i know tq did random points when gw isn't activated ones it is activated it will stay on one place ...
|
When gw is running you get teleported to one of like 10 fixed locations, and it decides randomly which one you will spawn at, it isn't completely random like emme's suggestion.
|
|
|
02/13/2009, 18:51
|
#10
|
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
|
possible :-) i don't really go to gw on tq's server it rare i even get on it with there bussy messages
anyway my suggestion is make a Private server that doesn't copy tq's servers would be nice to see what you (general) have dun with it
|
|
|
02/13/2009, 19:52
|
#11
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
Quote:
Originally Posted by Korvacs
Not if you want 10 fixed point positions like real TQ which im assuming is what this guy has gone for.
|
Ofcourse, but I think people would not really care if they spawned at one of the ten positions, not sure tough, but there is other ways than the way Pete showed us today, maybe if I got time I'll show people how to do that.
Good release anyways Pete, keep it up. Also, try to code things in general, that would work in any privateserver source, or can be related to privateservers in any way.
|
|
|
02/13/2009, 20:00
|
#12
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by EmmeTheCoder
Ofcourse, but I think people would not really care if they spawned at one of the ten positions, not sure tough, but there is other ways than the way Pete showed us today, maybe if I got time I'll show people how to do that.
Good release anyways Pete, keep it up. Also, try to code things in general, that would work in any privateserver source, or can be related to privateservers in any way.
|
If you just use a rand you could spawn on invalid cords, off the map or inside an npc
|
|
|
02/13/2009, 20:08
|
#13
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
Very true, you use that code on your own risk
|
|
|
02/13/2009, 21:09
|
#14
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
Quote:
Originally Posted by yuko
@ eme
yes it would work the same way
but you could have let him do the thinking for it
he won't learn if he see the solution
|
what solution lol, i didnt ask for one nor need one  , i like mine
|
|
|
02/13/2009, 23:41
|
#15
|
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
|
you would never have tought about changing the x and the y in one line
thats what i was talking about if you read the whole thing ...
also something
did you try your npc?
because if you have payed attention
you'll never get your random to 10
but i think you know that
|
|
|
 |
|
Similar Threads
|
[TuT]Mit PS3 Controller am PC zocken
05/25/2011 - Tutorials - 7 Replies
Hey!
Wieder mal ein Tutorial von mir :D
How To: Mit PS3 Controller am PC zocken.
So hier mal was wir brauchen (Zusammengepackt):
Controller Dateien Passwort: epvp
|
[HowTo]PS3 Controller auf PC
08/10/2010 - Tutorials - 22 Replies
Hey Community
Ich wollte euch zeigen wie ihr mit dem PS3 Controller auf dem Computer spielen könnt.
1. Treiber runterladen, die Zip File entpacken und den Filter Treiber installieren
(libusb-win32-filter-bin-0.1.10.1.exe).
2. entpacke ps3sixaxis_en.exe
3. Schließe den SIXAXIS Pad an den PC an
4. Führe ps3sixaxis_en.exe einmal aus.
5. Drücke den PS Knopf an deinem SIXAXIS Controller einmal (Falls dein Controller nicht bereits erkannt wurde).
|
macro...controller
03/18/2010 - Grand Chase Philippines - 2 Replies
somebody help me how to use a controller in manual botting specially in dungeon? pls respond.. and if there's a thread about it.. kindly give me the link to it.. pls respond...
|
360 controller
03/02/2010 - WarRock - 4 Replies
also folgendes problem: ich hab mir einen 360 controller für den pc gekauft und wollte damit warrock spielen doch bei optionen und kontrolle steht nichts von einem controller??also was muss ich machen??
|
All times are GMT +1. The time now is 15:39.
|
|