#exult@irc.freenode.net logs for 24 Jul 2016 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[01:31:54] <KnightCaptain> I've got some small code that uses the Mirror of Truth to de-ploymorph things. =D
[01:33:56] <-- Dominus has left IRC (Ping timeout: 244 seconds)
[01:35:02] --> Dominus has joined #exult
[01:35:02] <-- Dominus has left IRC (Changing host)
[01:35:02] --> Dominus has joined #exult
[01:35:02] --- ChanServ gives channel operator status to Dominus
[03:20:52] <-- Dominus has left IRC (Ping timeout: 244 seconds)
[03:21:26] --> Dominus has joined #exult
[03:21:41] <-- Dominus has left IRC (Changing host)
[03:21:41] --> Dominus has joined #exult
[03:21:41] --- ChanServ gives channel operator status to Dominus
[03:58:27] <KnightCaptain> How do I get the current activity of an NPC? get_schedule_type seems to get just that, the schedule, not the current activity.
[08:13:32] <-- KnightCaptain has left IRC (Quit: Nettalk6 - www.ntalk.de)
[08:25:11] <Dominus> Knight: I like how much fun you seem to have with the usecode hacking ;)
[08:26:47] <Dominus> As for the above question, let a search run (total commander does have a good string search) through the usecode folder of our source for schedule or activity or get_ to maybe find what you need
[09:14:06] <-- Lightkey has left IRC (Ping timeout: 250 seconds)
[09:26:54] --> Lightkey has joined #exult
[10:46:06] <-- Dominus has left IRC (Ping timeout: 260 seconds)
[10:47:32] --> Dominus has joined #exult
[10:47:33] <-- Dominus has left IRC (Changing host)
[10:47:33] --> Dominus has joined #exult
[10:47:33] --- ChanServ gives channel operator status to Dominus
[14:47:08] <-- Rottingbeef_ has left IRC ()
[14:51:30] --> Rottingbeef has joined #exult
[15:17:44] --> KnightCaptain has joined #exult
[16:00:33] <KnightCaptain> Dominus, one of the more vexing problems is that being asleep normally (not by magic or potion) does not get picked up by npcCanTalk. I had a workaround for this that was using the scheduled activities, but perhaps I wasn't patient enough in testing as I was knocking out NPCs via F2 -> current business activity.
[16:01:31] <KnightCaptain> The better way I came up with was to check for the 4 sleep frames (in the four directions) since anything that would make they lay down would be detected. The code is:
[16:01:37] <KnightCaptain> if ((npcCanTalk(target)) && (!((target->get_item_frame() == 13) || (target->get_item_frame() == 29) || (target->get_item_frame() == 45) || (target->get_item_frame() == 61)))) // If the NPC can talk, and does not appear to be asleep.
[16:02:04] <KnightCaptain> I'm not sure how to compress that into something cleaner looking but it does the job.
[16:02:19] <KnightCaptain> The forum is down at the moment.
[16:02:39] <KnightCaptain> "Something is wrong. You need to edit common.php and select a database."
[19:02:43] <KnightCaptain> This is turning out tougher than I anticipated. Spawned NPCs don't seem to meet the (npcCanTalk(target) function checks so they were getting treated like shapes in my new code.
[19:07:24] <KnightCaptain> Forum is down again.
[20:47:43] <Dominus> KnightCaptain: forum is not down, it's just a hic hup from SF's php and/or our old forum software not playing ball
[20:47:50] <Dominus> Refreshing helps
[20:48:03] <Dominus> Or going via exult.sf.net