PenUltima Online

It is currently Fri Sep 05, 2008 1:27 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: item member like item.RegisteredForSpeechEvent
PostPosted: Fri Apr 27, 2007 10:44 pm 
Offline

Joined: Fri Feb 10, 2006 10:06 am
Posts: 79
Location: Italy
I have loop
Code:
  var event := Struct { "type" := SYSEVENT_SPEECH, "source" := me, "text" := "ciao" };
    foreach mobile in (ListMobilesNearLocation(who.x, who.y, who.z, MAX_DIST_EVENT, who.realm))
      if (mobile.isA(POLCLASS_NPC))
        SendEvent(mobile, event)
      endif
    endforeach


I need something to know if I can send event also to item near instead only to NPCS becouse also item can process SPEECH EVENT with "RegisterForSpeechEvents()" command.

_________________
Zandor


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 28, 2007 12:12 am 
Offline

Joined: Sat Feb 04, 2006 9:14 am
Posts: 90
Location: Aman
i would like to have itemem registered for other than speech event...
entered and left area will be very nice

_________________
Ash nazg durbatuluk, ash nazg gimbatul, ash nazg thrakatuluk agh burzum-ishi krimpatul


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 28, 2007 12:13 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 747
Location: Chicago, IL USA
I campaigned for entered/left events on items but MuadDib said it would take a lot of CPU/Memory to do.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 29, 2007 12:25 am 
Offline

Joined: Sat Feb 04, 2006 9:14 am
Posts: 90
Location: Aman
a lot?
i want to add that reference to house sign...
spawnet has much more npc'es who use entered and left location event

_________________
Ash nazg durbatuluk, ash nazg gimbatul, ash nazg thrakatuluk agh burzum-ishi krimpatul


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 29, 2007 12:44 am 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 836
Location: Indiana, USA
Items are a lot more taxing on a system, than mobiles, with events. Could spawn all the maps, and that would equal less than 1 map if it was items.

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 29, 2007 6:37 am 
Offline

Joined: Fri Feb 10, 2006 10:06 am
Posts: 79
Location: Italy
Yes, but my request was only to know if an item has a register event active... not to add event or modify how pol works.

_________________
Zandor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl