SRL Archive - OSR Help

Unknown identifier problem


Austintheman

2011-12-20 01:12:04

Hello, I'm trying my best to try and figure out how to make the Nature rune script renew pouches by fiddling around with various of codes of various scripts, however, when I add part of the code that requires the script to renew the pouch, i get an error called

[Error] (1258:13): Unknown identifier 'Renew' at line 1257

Could anyone explain why this is happening and what I should do to fix this?
(kinda took this from PatDuffy's code, credit goes to him(if i'm not allowed to post this then please remove it!)):
function GraahkGoneDie:Boolean;
begin
if FindChatBoxText('before your familiar vanishes',8,127)then
begin
if not HasPouch then
begin
Result:=True;
end else
if InteractFamiliar('Renew') then
begin
Inc(Renew);
Result:=False;
end;
end else
Result:=False;
end;

Hopefully if this works, i can implement it to my bandit killer also :spongebob:

Thank you.

Kyle Undefined

2011-12-20 01:16:22

Is "Renew" a valid argument for that function? It appears that you are passing in the wrong type of identifier that the function needs.

Austintheman

2011-12-20 01:37:21

Ah, it is not. I'll look through and add it in.