uo.SetJournal() does not replace the text

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Vermitras
Posts: 2
Joined: 2008-05-11 16:47:13

uo.SetJournal() does not replace the text

Post by Vermitras »

Hello,
I have trouble with uo.SetJournalLine(linenum,text)

Just to demonstrate:

Code: Select all

sub fakejournal()
  var d = 5
  uo.textprint("##Journal at the begining:")
  uo.showjournal(d + 1)
  var i
  for i = 0 to d
    uo.setjournalline(i,"--changed--")
  next
  uo.textprint("##After writing to the journal:")
  uo.showjournal(i + 1)
end sub

Results afer running the script:

Code: Select all

##Journal at the begining:
------Journal [6]------
Sewer Rat: Sewer Rat
Monroe: Monroe
Kirby: Kirby
Seward: Seward
Mugawe: Mugawe
Melva: Melva
##After writing to the journal:
------Journal [6]------







It does delete the original journal line but never replaces it with the new text - just leaves empty string.

Maybe i have old version of injection ? :
YokoInjection 505.18 VenD0r
Script parser version 0.3, Yoko Build 212.11
Vermitras
Posts: 2
Joined: 2008-05-11 16:47:13

Post by Vermitras »

So no ideas why it does not work??
I've tried also some other injection.dll ... bud it did not help.
Post Reply