[Release]Coding NPC's (Very basic)

10/12/2009 21:12 Fish*#31
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:handsdown:
10/12/2009 21:13 zbest#32
@grillmad rite ;).
10/12/2009 21:14 Fish*#33
Quote:
Originally Posted by zbest View Post
@grillmad rite ;).
Thanks man, you are really "zBEST":D
10/13/2009 03:28 ChingChong23#34
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");
                }

            }
        }

    }
}
10/13/2009 03:34 Fish*#35
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:confused::confused::confused::confused:
Make a thread of your own lol.....
10/20/2009 22:33 Fish*#36
#BUMP
Some might need this XD