Yoko

All sides of Injection
It is currently 2026-03-10 14:24:39

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Getting a players name?
PostPosted: 2004-04-20 17:12:26 
Offline

Joined: 2004-04-20 17:09:45
Posts: 3
hello

how would i go about gettin a players name for example
how would i target a player, and then tell whether he says Hello in the journal? but only that player
like UO.InJournal('PLAYERNAME: hello')
?
thanks


Top
   
 Post subject:
PostPosted: 2004-04-20 22:55:50 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
exactly as you said
if uo.injournal(uo.getname("lasttarget")+": hello") then

the only problem is comparation case sensitive (MURDER not equal MurDer)


Top
   
PostPosted: 2004-04-20 23:07:08 
Offline
User avatar

Joined: 2004-04-17 23:02:41
Posts: 48
Location: Odessa, Ukraine
cMsg - message, you wanna check.
mAuthor - nick or ID of the player, this message would be from...
Code:
sub CheckMsg(cMsg, mAuthor)
   if IsNumber(mAuthor) then
      mAuthor = UO.Int2Hex(VAL(STR(mAuthor)))
   endif
   var ij
   ij = UO.InJournal(cMsg)
   if ij Then
      if ((UO.JournalSerial(ij-1) == mAuthor) or (UO.GetName(UO.JournalSerial(ij-1)) == mAuthor)) then
         return ij
      else
          if (mAuthor == 'System') and (UO.JournalSerial(ij-1) == '0x01010101') then
             return ij
          else
              return 0
          endif
      endif
   else
       return 0
   endif
end sub

_________________
...thinking - 37% complete...


Top
   
 Post subject:
PostPosted: 2004-04-21 04:37:16 
Offline

Joined: 2004-04-20 17:09:45
Posts: 3
thanks for the replies yoko and totus
but sorry totus im not good enuf to understand your one :P
i tried UO.Say(UO.GetName("LastTarget")+": hello")
and i dont thinkt hat said anything at all or it might of jus said hello
then i tried UO.Say(UO.GetName('LastTarget')+": hello")
but all my guy says is *hello*
anyone help?
thanks


Top
   
 Post subject: Just Think!
PostPosted: 2004-04-21 05:51:32 
Offline
User avatar

Joined: 2004-04-17 23:02:41
Posts: 48
Location: Odessa, Ukraine
'laststatus' is not equal to 'LastStatus' :)

That's the answer :)

Искренне Ваш, Тотус Маньяковски.

_________________
...thinking - 37% complete...


Top
   
 Post subject:
PostPosted: 2004-04-21 05:58:50 
Offline

Joined: 2004-04-20 17:09:45
Posts: 3
ok either i dont get wot u mean which is probly true or u dont get wot i mean :P

i have UO.Say(UO.GetName("lasttarget")+": hello")
which i think? should make my character say Bob(characters name of my last target): hello

but it just says *hello* with the asterickes
thankz

oh and is there a command to run a script?
like ,runscript heal
etc?


Top
   
 Post subject: Everything is simple.
PostPosted: 2004-04-21 19:27:42 
Offline
User avatar

Joined: 2004-04-17 23:02:41
Posts: 48
Location: Odessa, Ukraine
UO.Say(UO.GetName(UO.GetSerial('lasttarget'))+' hello...')
---
,exec function

Искренне Ваш, Тотус Маньяковски.

_________________
...thinking - 37% complete...


Top
   
 Post subject:
PostPosted: 2004-04-23 21:58:25 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
standart procedure not get player names on some shards
also make sure Track World is enabled


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


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® Forum Software © phpBB Limited