![]() |
[Release] Activate/Un-Activate NPC by Command.
So ive seen alot of you wanted this, well here it is, coded this in about 4minutes total and never tested it,so you will probably be the first one.
So, all you actually do is to make the server check if xxx is activated, if it is, it shows the real npc chat, if it isnt, it tells you that it isnt. And you activate/unactivate the xxx with a command. Well here you are: In General.cs , under : public static System.Timers.Timer Thetimer; Code:
public static bool CanTalkToNPC = false;Search for : if (Splitter[0] == "/ServerRestart") Above that , add: Code:
if (Splitter[0] == "/startnpc")If you type /startnpc , it will check if the npc is activated. If the npc(s) is activated, they will be un activated, and vice versa. Also it announce the status of the npc. And this is an example of how to NPC code work: Search for : if (CurrentNPC == 12) Until you get to the NPC TALK Above, add this: Code:
if (CurrentNPC == 1339)Hope it gave you any ideas or/and knowledge. Atleast I hope I helped someone. Emme |
Hmmm... I never thought of doing something like this. Probably won't test this itself, but it gives me an idea. Setting NPC's to some sort of timer, in which at certain times they'll appear for quests or what not, and the rest of the time, have their location switched to an unreachable map.
|
Thanks emme So Much
|
Quote:
|
Quote:
|
Press thanks if you liked this, e.x used it, got ideas, or just like it.
And for the timer, thats very easy. Add a timer in the SingleNPC class as I call it, of lets say 10 minutes. Now, start the NPC + the timer by using a command, like this: if (Splitter[0] == "/start") { SingleNPC G = new SingleNPC(INFO HERE, ALSO THE TIMER HERE); Spawn G; } Now a timer is started, on what time you defined it to in the code above. Now you can do like this for the timer: if (Timer_Elapsed) { foreach (DictionaryEntry DE in NPCs.AllNPCs) { SingleNPC Npc = (SingleNPC)DE.Value; if (Npc.UID == NPCUIDHERE) Npc.X == 999; Npc.Y == 999; Npc.Map == 999; } } Well something like that, I never actually did this and it was directly coded in e*pvp |
Emme i love u so much
that was much easier then i thought i thought it was so difficult xD |
press thanks then..
|
rofl forgot to do that
tnx for remembering keep up the good work ps: u gonna release more these days? |
Sure,just gimme ideas.
|
well about the treasure hunt when the box drops something u can't pick it up
how to fix that? |
You cant pick it up? Wierd, well lets see if someone else got that error. Besides, post in the thread for that subject.
|
Quote:
|
Quote:
|
You can't do shit with only an IP.
The only way you can even connect to the host is through an open port, or a bridging program. If they're blocking their router, you have no access. Even then, you can't connect unless a program is running on the port, which means you'd have to install it some way. |
What they can do is scan for open ports on an ip address. Match the programs that commonly use that port, then use a specific site begging with 'm' and ending in 'm' to check for vulnerabilities/exploits within that program, and go from there :P
|
Quote:
|
Quote:
|
Maybe
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 15:15. |
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.