Register for your free account! | Forgot your password?

You last visited: Today at 22:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]Coding NPC's (Very basic)

Discussion on [Release]Coding NPC's (Very basic) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 10/12/2009, 21:12   #31
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by BERGHUIS1 View Post
I don't have any actual reason to release anything. My source is strictly for myself and Yuki. So no, I'm not planning to release anything. And when it comes to edits and guides, I have made quite a few of those.
Gratz for that, but dont say others useless, nothing is useless.
Only spam is useless and things that makes no sense
Fish* is offline  
Old 10/12/2009, 21:13   #32
 
elite*gold: 0
Join Date: Aug 2008
Posts: 889
Received Thanks: 199
@grillmad rite .
zbest is offline  
Thanks
1 User
Old 10/12/2009, 21:14   #33
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by zbest View Post
@grillmad rite .
Thanks man, you are really "zBEST"
Fish* is offline  
Old 10/13/2009, 03:28   #34
 
elite*gold: 0
Join Date: Feb 2006
Posts: 550
Received Thanks: 81
that NPC system for the scripts really needs to be re-coded for a public LOTF source.

Mine:

Code:
using System;
using System.Collections.Generic;
using System.Text;
using BeyondCO.Model;

namespace BeyondCO.NPCScripts
{
    public class TaoistMoon : NPCHandler
    {
        public static int NPC_ID = 104813;

        public int getID()
        {
            return NPC_ID;
        }

        public void Handle(int option, ref int STAGE, Client client)
        {
            if (STAGE == 1)
            {
                Dialog dialog = new Dialog(client);
                dialog.AddText("Would you like some free gear?");
                dialog.AddOption("Yes");
                dialog.AddOption("No");
                dialog.Finish();
                STAGE++;
            }
            else if (STAGE == 2)
            {
                if (option == 1)
                {
                    Dialog dialog = new Dialog(client);
                    dialog.AddText("Choose your Class");
                    dialog.AddOption("Warrior");
                    dialog.AddOption("Archer");
                    dialog.AddOption("Trojan");
                    dialog.AddOption("Taoist");
                    dialog.Finish();
                    STAGE++;
                }
            }
            else if (STAGE == 3)
            {
                if (option == 1)
                {
                    client.Command("/job 25");
                    client.Command("/level 130");
                    client.Command("/silvers 5000000");
                    client.Command("/cps 5000000");
                    client.Command("/item Super ConquestHelmet 12 7 255 13 13");
                    client.Command("/item Super PhoenixArmor 12 7 255 13 13");
                    client.Command("/item Super CrystalEarring 12 7 255 13 13");
                    client.Command("/item Super Blizzard 12 7 255 13 13");
                    client.Command("/item Super Tornado 12 7 255 13 13");
                    client.Command("/item Super Thunder 12 7 255 13 13");
                    client.Command("/item Super ConquestWand 12 7 255 13 13");
                }
                else if (option == 2)
                {
                    client.Command("/job 45");
                    client.Command("/level 130");
                    client.Command("/silvers 5000000");
                    client.Command("/cps 5000000");
                    client.Command("/item Super PhoenixHat 12 7 255 13 13");
                    client.Command("/item Super PhoenixPlume 12 7 255 13 13");
                    client.Command("/item Super CrystalEarring 12 7 255 13 13");
                    client.Command("/item Super Tornado 12 7 255 13 13");
                    client.Command("/item Super Thunder 12 7 255 13 13");
                    client.Command("/item Super ShadowBow 12 7 255 13 13");
                    client.Command("/item Super Blizzard 12 7 255 13 13");
                }
                else if (option == 3)
                {
                    client.Command("/job 15");
                    client.Command("/level 130");
                    client.Command("/silvers 5000000");
                    client.Command("/cps 5000000");
                    client.Command("/item Super MagicCoronet 12 7 255 13 13");
                    client.Command("/item Super ConquestArmor 12 7 255 13 13");
                    client.Command("/item Super CrystalEarring 12 7 255 13 13");
                    client.Command("/item Super Tornado 12 7 255 13 13");
                    client.Command("/item Super Thunder 12 7 255 13 13");
                    client.Command("/item Super BuriedBlade 12 7 255 13 13");
                    client.Command("/item Super KingsClub 12 7 255 13 13");
                    client.Command("/item Super KingOfSword 12 7 255 13 13");
                    client.Command("/item Super Blizzard 12 7 255 13 13");
                }
                else if (option == 4)
                {
                    client.Command("/job 145");
                    client.Command("/level 130");
                    client.Command("/silvers 5000000");
                    client.Command("/cps 5000000");
                    client.Command("/item Super UltimateCap 12 7 255 13 13");
                    client.Command("/item Super PineRobe 12 7 255 13 13");
                    client.Command("/item Super CrystalEarring 12 7 255 13 13");
                    client.Command("/item Super Sunshine 12 7 255 13 13");
                    client.Command("/item Super Lightning 12 7 255 13 13");
                    client.Command("/item Super KingOfBacksword 12 7 255 13 13");
                    client.Command("/item Super Blizzard 12 7 255 13 13");
                }

            }
        }

    }
}
ChingChong23 is offline  
Old 10/13/2009, 03:34   #35
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by ChingChong23 View Post
that NPC system for the scripts really needs to be re-coded for a public LOTF source.

Mine:

Code:
using System;
using System.Collections.Generic;
using System.Text;
using BeyondCO.Model;

namespace BeyondCO.NPCScripts
{
    public class TaoistMoon : NPCHandler
    {
        public static int NPC_ID = 104813;

        public int getID()
        {
            return NPC_ID;
        }

        public void Handle(int option, ref int STAGE, Client client)
        {
            if (STAGE == 1)
            {
                Dialog dialog = new Dialog(client);
                dialog.AddText("Would you like some free gear?");
                dialog.AddOption("Yes");
                dialog.AddOption("No");
                dialog.Finish();
                STAGE++;
            }
            else if (STAGE == 2)
            {
                if (option == 1)
                {
                    Dialog dialog = new Dialog(client);
                    dialog.AddText("Choose your Class");
                    dialog.AddOption("Warrior");
                    dialog.AddOption("Archer");
                    dialog.AddOption("Trojan");
                    dialog.AddOption("Taoist");
                    dialog.Finish();
                    STAGE++;
                }
            }
            else if (STAGE == 3)
            {
                if (option == 1)
                {
                    client.Command("/job 25");
                    client.Command("/level 130");
                    client.Command("/silvers 5000000");
                    client.Command("/cps 5000000");
                    client.Command("/item Super ConquestHelmet 12 7 255 13 13");
                    client.Command("/item Super PhoenixArmor 12 7 255 13 13");
                    client.Command("/item Super CrystalEarring 12 7 255 13 13");
                    client.Command("/item Super Blizzard 12 7 255 13 13");
                    client.Command("/item Super Tornado 12 7 255 13 13");
                    client.Command("/item Super Thunder 12 7 255 13 13");
                    client.Command("/item Super ConquestWand 12 7 255 13 13");
                }
                else if (option == 2)
                {
                    client.Command("/job 45");
                    client.Command("/level 130");
                    client.Command("/silvers 5000000");
                    client.Command("/cps 5000000");
                    client.Command("/item Super PhoenixHat 12 7 255 13 13");
                    client.Command("/item Super PhoenixPlume 12 7 255 13 13");
                    client.Command("/item Super CrystalEarring 12 7 255 13 13");
                    client.Command("/item Super Tornado 12 7 255 13 13");
                    client.Command("/item Super Thunder 12 7 255 13 13");
                    client.Command("/item Super ShadowBow 12 7 255 13 13");
                    client.Command("/item Super Blizzard 12 7 255 13 13");
                }
                else if (option == 3)
                {
                    client.Command("/job 15");
                    client.Command("/level 130");
                    client.Command("/silvers 5000000");
                    client.Command("/cps 5000000");
                    client.Command("/item Super MagicCoronet 12 7 255 13 13");
                    client.Command("/item Super ConquestArmor 12 7 255 13 13");
                    client.Command("/item Super CrystalEarring 12 7 255 13 13");
                    client.Command("/item Super Tornado 12 7 255 13 13");
                    client.Command("/item Super Thunder 12 7 255 13 13");
                    client.Command("/item Super BuriedBlade 12 7 255 13 13");
                    client.Command("/item Super KingsClub 12 7 255 13 13");
                    client.Command("/item Super KingOfSword 12 7 255 13 13");
                    client.Command("/item Super Blizzard 12 7 255 13 13");
                }
                else if (option == 4)
                {
                    client.Command("/job 145");
                    client.Command("/level 130");
                    client.Command("/silvers 5000000");
                    client.Command("/cps 5000000");
                    client.Command("/item Super UltimateCap 12 7 255 13 13");
                    client.Command("/item Super PineRobe 12 7 255 13 13");
                    client.Command("/item Super CrystalEarring 12 7 255 13 13");
                    client.Command("/item Super Sunshine 12 7 255 13 13");
                    client.Command("/item Super Lightning 12 7 255 13 13");
                    client.Command("/item Super KingOfBacksword 12 7 255 13 13");
                    client.Command("/item Super Blizzard 12 7 255 13 13");
                }

            }
        }

    }
}
Why you posting this here
Make a thread of your own lol.....
Fish* is offline  
Old 10/20/2009, 22:33   #36
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
#BUMP
Some might need this XD
Fish* is offline  
Reply




All times are GMT +2. The time now is 22:37.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.