SRL Archive - Help

String for Magic Spell?


xtrapsp

2012-02-12 11:24:46

Hey guys writing a script. Looked at someone elses script and to pick a spell they have

 Spell := DTMFromString('m6wAAAHic42ZgYMhmYmAoBuJSKAax85gg4hlAnAbEmVAxXUYGBiMg1gNiLSBWB2JVKAaxQfLGQGwCxDKbmBik+ViIwlwMxANGEjASAACR+wlw'); 


How do I do this for a teleport spell? also what does all the coding mean xd

Ontop of that:

procedure Statistics4bot;
begin
Clock := [0,0];
ConvertTime(GetTimeRunning,Clock[0],Clock[1])
Writeln('Time Running ' +tostr(Clock[0])+':'+tostr(Clock[1]))
Writeln('You have made ' + IntToStr(t * 27) + ' This is how many you have enchanted')
end;

it says the 3rd line is wrong? [Error] (62:9): Invalid number of parameters at line 61
Compiling failed.

Chrome

2012-02-12 11:43:15

I think you need a space after each comma.

xtrapsp

2012-02-12 11:48:17

From: Chrome
I think you need a space after each comma.


Thanks Chrome, Did some changes and whatnot:

begin
Clock := [0,0,0];
ConvertTime(GetTimeRunning,Clock[0],Clock[1],Clock[2])
Writeln('Time Running ' +tostr(Clock[0])+':'+tostr(Clock[1])+':'+tostr(Clock[2]))
Writeln('We have made ' + IntToStr(t * 27) + ' Rings this Session')
Writeln('We have earned ' + IntToStr(t * 27 * 140) + ' Gold Pieces this Session')
Writeln('Magic Exp Earned ' + IntToStr(t * 27 * 55) + ' xp this Session')
end;