|
You last visited: Today at 08:17
Advertisement
[RELEASE] Garment guy
Discussion on [RELEASE] Garment guy within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
04/17/2009, 21:02
|
#1
|
elite*gold: 0
Join Date: Feb 2009
Posts: 59
Received Thanks: 7
|
[RELEASE] Garment guy
Hello guys... Well I am not so good in coding... But I can create a NPC like that. Please don't flame me, because I am really noob here. I'd like to relase a Garment Guy. What it does? It's simple! He gives you garments for free, of course not all but Dark Wizard, Colorful Dress, Good Luck etc. well. The NPC is created 100% by my job, and it's fully working. Here we go...
NPC Talk code
Code:
if (CurrentNPC == 3356) // Garment guy, coded by Doku
{
SendPacket(General.MyPackets.NPCSay("Hello, I can give you a secondhand garment SouthOfCloud, do you want it for free?"));
SendPacket(General.MyPackets.NPCLink("I would be grateful if you do", 1));
SendPacket(General.MyPackets.NPCLink("No, I'd like to buy a new one than your secondhand trash!", 255));
SendPacket(General.MyPackets.NPCLink("I don't like this garment... Do you have diffirent garments?", 20));
SendPacket(General.MyPackets.NPCSetFace(25));
SendPacket(General.MyPackets.NPCFinish());
}
And here is NPC Control:
Code:
if (CurrentNPC == 3356) // Garment Guy coded by Doku
{
if (Control == 1)
{
MyChar.AddItem("182305-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
SendPacket(General.MyPackets.NPCSay("Check your backpack, I have given you my garment... Enjoy..."));
SendPacket(General.MyPackets.NPCLink("Thank you! Do you have more garments?", 20));
SendPacket(General.MyPackets.NPCLink("Thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(25));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 20)
{
SendPacket(General.MyPackets.NPCSay("Yes, I do. I can give you them if you want. Just choose one!"));
SendPacket(General.MyPackets.NPCLink("I want Blue Dream [female]", 3));
SendPacket(General.MyPackets.NPCLink("I want Bonfire Night", 4));
SendPacket(General.MyPackets.NPCLink("I want Moon Orchid [female]", 5));
SendPacket(General.MyPackets.NPCLink("I want Good Luck", 6));
SendPacket(General.MyPackets.NPCLink("I want Colorful Dress", 7));
SendPacket(General.MyPackets.NPCLink("I want Dark Wizard", 8));
SendPacket(General.MyPackets.NPCLink("I think I changed my mind. Have a good day...", 255));
SendPacket(General.MyPackets.NPCSetFace(25));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 3)
{
MyChar.AddItem("182335-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
SendPacket(General.MyPackets.NPCSay("Here is your Blue Dream!"));
SendPacket(General.MyPackets.NPCLink("Ok cool, thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(25));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 4)
{
MyChar.AddItem("182315-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
SendPacket(General.MyPackets.NPCSay("Here is your Bonfire Night!"));
SendPacket(General.MyPackets.NPCLink("Ok cool, thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(25));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 5)
{
MyChar.AddItem("182345-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
SendPacket(General.MyPackets.NPCSay("Here is your Moon Orchid!"));
SendPacket(General.MyPackets.NPCLink("Ok cool, thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(25));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 6)
{
MyChar.AddItem("191305-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
SendPacket(General.MyPackets.NPCSay("Here is your Good Luck!"));
SendPacket(General.MyPackets.NPCLink("Ok cool, thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(25));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 7)
{
MyChar.AddItem("181345-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
SendPacket(General.MyPackets.NPCSay("Here is your Colorful Dress!"));
SendPacket(General.MyPackets.NPCLink("Ok cool, thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(25));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 8)
{
MyChar.AddItem("181955-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
SendPacket(General.MyPackets.NPCSay("Here is your Dark Wizard!"));
SendPacket(General.MyPackets.NPCLink("Ok cool, thanks!", 255));
SendPacket(General.MyPackets.NPCSetFace(25));
SendPacket(General.MyPackets.NPCFinish());
}
}
And I will be grateful to these, who are not going to flame me and call a noob. Enjoy, and bye.
|
|
|
04/17/2009, 21:05
|
#2
|
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
|
Well...someone know to script npcs . A great step for a noobie.
|
|
|
04/17/2009, 21:10
|
#3
|
elite*gold: 0
Join Date: Apr 2009
Posts: 71
Received Thanks: 5
|
great...
how come you making it free?
|
|
|
04/17/2009, 21:21
|
#4
|
elite*gold: 0
Join Date: Feb 2009
Posts: 59
Received Thanks: 7
|
I just didn't wrote if (MyChar.CPs == 675), but I wrote
MyChar.AddItem("182305-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
and it was all..
|
|
|
04/18/2009, 02:10
|
#5
|
elite*gold: 0
Join Date: Nov 2008
Posts: 412
Received Thanks: 314
|
Quote:
Originally Posted by r.0ck
great...
how come you making it free?
|
does it matters? we know that it is hard for you to change some lines, but you will need to learn it on 1 day.
|
|
|
04/18/2009, 02:42
|
#6
|
elite*gold: 0
Join Date: Apr 2009
Posts: 148
Received Thanks: 15
|
Good job! Although I probably wont use this in my server, I'm going to thank you anyway.
|
|
|
04/18/2009, 03:29
|
#7
|
elite*gold: 0
Join Date: Apr 2009
Posts: 71
Received Thanks: 5
|
Quote:
Originally Posted by -Reflexis-
does it matters? we know that it is hard for you to change some lines, but you will need to learn it on 1 day.
|
are you kidding me? LOL ...Don't ever say that unless you see what i can do ok? I'm not an idiot , im saying why did he make it free.. His first one is great ( great... ) but why did he make it free...free for what reason?
|
|
|
04/18/2009, 03:42
|
#8
|
elite*gold: 0
Join Date: Apr 2009
Posts: 148
Received Thanks: 15
|
It doesn't matter why, he's just saying that it's his code, he's released it not because he wants people to copy and paste.
If you were really "not an idiot" you would have known not to copy and paste, but to use code as a reference for yourself.
|
|
|
04/18/2009, 03:53
|
#9
|
elite*gold: 0
Join Date: Apr 2009
Posts: 71
Received Thanks: 5
|
... i never copied and pasted...wow...if i wanted to give out free garments i would just make it all cost nothing. instead of create a whole npc for it.
|
|
|
04/18/2009, 03:58
|
#10
|
elite*gold: 0
Join Date: Apr 2009
Posts: 148
Received Thanks: 15
|
I never said you did.
I was just telling you what you're meant to do with people's releases, which you obviously still don't understand.
|
|
|
04/18/2009, 03:59
|
#11
|
elite*gold: 0
Join Date: Apr 2009
Posts: 71
Received Thanks: 5
|
btw he released RB guard LOL
|
|
|
04/18/2009, 04:03
|
#12
|
elite*gold: 0
Join Date: Apr 2009
Posts: 148
Received Thanks: 15
|
Why is that funny?
And please stay on topic to this thread.
|
|
|
04/18/2009, 04:08
|
#13
|
elite*gold: 0
Join Date: Apr 2009
Posts: 71
Received Thanks: 5
|
Quote:
Originally Posted by flaMe~
Why is that funny?
And please stay on topic to this thread.
|
Your the one acting like an idiot trying to defend someone else, you flamed me after i posted that ><
|
|
|
04/18/2009, 04:13
|
#14
|
elite*gold: 0
Join Date: Apr 2009
Posts: 148
Received Thanks: 15
|
Quote:
trying to defend someone else
|
Quote:
Treat others how you would like to be treated.
Now, be quiet.
|
|
|
04/18/2009, 04:15
|
#15
|
elite*gold: 0
Join Date: Apr 2009
Posts: 71
Received Thanks: 5
|
Quote:
Originally Posted by flaMe~
Treat others how you would like to be treated.
Now, be quiet.
|
i never flamed him :P
|
|
|
|
|
Similar Threads
|
[RELEASE]Garment effects
05/03/2012 - CO2 PServer Guides & Releases - 37 Replies
Okay, i saw post somewere that somebody wanted garment to have effect, so i tought i will find out and release it
soo
1. Go to your ini folder and open Action3Deffect.ini
2. Add one line there
Quote:
999.100.181.890=w-taoist
The 999.100.181.890=w-taoist is what makes ur armor/garment have effect
|
[Release] Basic Gourd/Garment socketer
10/04/2010 - CO2 PServer Guides & Releases - 9 Replies
npc talk :
if (CurrentNPC == 10002) //Socket Gourd/Garment Quest
{
SendPacket(General.MyPackets.NPCSay("Would you like me to make a socket in an item for you?"));
SendPacket(General.MyPackets.NPCSay(" You must prepare 10 Star Drills and the Gem you want to Socket."));
SendPacket(General.MyPackets.NPCSay(" Please make sure you only have ONE gem in your...
|
[Release] TDM NPC that gives you the garment for your team
03/12/2010 - CO2 PServer Guides & Releases - 21 Replies
Hello.
I fixed this NPC's grammar alot.
And it gives you the colored garment of your team when you join.
Example: If you join the red team, it will give you a red celestial. etc etc
You get it ;)
I hope you like it!
#region Team Deathmatch
|
[Release] Garment Giver
02/18/2010 - CO2 PServer Guides & Releases - 17 Replies
Hello!
This NPC gives you male and female garments +12 -7 2soc sdg 255 hp.
Some credits go to Spare2 for helping me fix my code.
I hope you like it.
Place this is NPCDialog.cs:
#region Free Garments
case 544554:
{
if (Control == 0)
|
I want to make an Eudemons Garment as Conquer Garment or weps or anything but..
01/21/2010 - CO2 Weapon, Armor, Effects & Interface edits - 5 Replies
hi..
i just tried to make an Eudemons garment as an conquer gamrnet but its so confusing me becouse Eudemons garments have no head!!! lmao so when i put it as conquer garment it makes so diffrent shapes of course u understand me so if there is anyway that makes the garments look like Eudemons please tell me ... waiting for an answer :)
Thanks
|
All times are GMT +2. The time now is 08:17.
|
|