Fun system you can use for your npcs

03/17/2013 03:34 LordGragen.#1
Hello everyone today i am going to show you guys something very simple but fun thing,

So today i found out that you can add a effect to your npc,
for example if you remember correctly in 5670+ when you upgrade your items level it will say something like this "Perfect"

well today i am going to show you how to do that AND how you can add your own text.

how is this gona help my server?

Well this will help your server get little more creative, and its very fun system to have.

here is a example,

[Only registered and activated users can see links. Click Here To Register...]

and here is how i added

[Only registered and activated users can see links. Click Here To Register...]

what this does is, every time i click on the npc it will say "Well Done"
but you dont have to do it that way.

you can do like this
[Only registered and activated users can see links. Click Here To Register...]

so when the player add the + it will say the text
but here is the fun part
you can also make a edit called Fail or something so if something goes wrong lets say the player dont have +5 stone so the npc will say Fail at the top.

its rly fun system and you it rly upgrade the quality of your npcs.

If you are lost make sure to check your Weapon Master npc and you will understand how it works .


Code:
                                                        _String str = new _String(true);
                                                        str.UID = client.Entity.UID;
                                                        str.TextsCount = 1;
                                                        str.Type = _String.Effect;
                                                        str.Texts.Add("good");  // "good" is the folder name, you can find this folder in client/c3/effect/good
                                                        client.SendScreen(str, true);
well thats all for now, i hope you like the new npc style we can create.

Sorry for bad English, Please if you have a question feel free to ask.
03/17/2013 11:10 marlyandedsel#2
Its not really interesting, but you still make effort on this :) maybe some newbie will pick this up.
03/17/2013 20:51 |xabi|#3
really really what a great effort :D
03/17/2013 21:38 pro4never#4
The text effect is interesting to know about but your example hides it well. The npc itself (and the system relating to it) is completely useless so the little text effect was overlooked until I read your post like 3 times.

It's nice to have and I'd think the best use would be mini games (think DDR mini game where you have to jump to certain squares in a certain order and it gives you on screen feedback and scoring)
03/18/2013 05:49 EOS 60D#5
Less code here:

Code:
client.Entity.Update(_String.Effect, "EFFECTNAME", true);
03/18/2013 14:22 shadowman123#6
i prefer that u send the string effect to the npc itself not the player
03/20/2013 21:29 protoxxx#7
If you don't want it to be free, add

For Cps, else if (GC.MyChar.CPs >= 2000)
For Silvers, else if (GC.MyChar.Silvers >= 1000000)

I prefer, cps, but your choice.

Good luck! And nice npc.