Page 1 of 1

how to use "valor" and "justice"

Posted: 16.11.2013 2:40
by mixers
thanks everyone.

Re: how to use "valor" and "justice"

Posted: 16.11.2013 3:33
by Vizit0r
procedure ReqVirtuesGump;
procedure UseVirtue(VirtueName : String);

VirtueName : 'Compassion';
VirtueName : 'Honesty';
VirtueName : 'Honor';
VirtueName : 'Justice';
VirtueName : 'Sacrifice';
VirtueName : 'Valor';
VirtueName : 'Humility';
VirtueName : 'Spirituality';

Re: how to use "valor" and "justice"

Posted: 16.11.2013 9:02
by mixers
i am sorry, did you give me a example?

Re: how to use "valor" and "justice"

Posted: 16.11.2013 10:22
by Gauhar
What example?
Justice is awarded to the person who delivers the killing blow to a murderer, or red, character in Felucca.
Valor is obtained by killing creatures in a Champion Spawn.

Re: how to use "valor" and "justice"

Posted: 16.11.2013 13:54
by Crome696

Code: Select all

Function Honor(TargetID:Integer):Boolean;
var
    myResult : Boolean;
begin
    myResult := False;
    ReqVirtuesGump();
    UseVirtue('Honor');
    if(WaitForTarget(500) = True)and (GetDistance(TargetID) < 6) then
    begin
        TargetToObject(TargetID);
        myResult := False;        
    end;                  
    Result := myResult;
end;
Sample of using Honor

Re: how to use "valor" and "justice"

Posted: 16.11.2013 16:06
by mixers

Code: Select all

Program New;
begin
 //Body of Script    
    UseVirtue('Honor');
end.
error message:
21:27:11:718 [kaitan]: Compiler: [Error] (111.sc at 4:5): Unknown identifier 'UseVirtue'
21:27:11:718 [kaitan]: Compiling failed
21:27:11:718 [kaitan]: Script 111.sc stopped successfuly

Re: how to use "valor" and "justice"

Posted: 16.11.2013 16:21
by Crome696
mixers wrote:

Code: Select all

Program New;
begin
 //Body of Script    
    UseVirtue('Honor');
end.
error message:
21:27:11:718 [kaitan]: Compiler: [Error] (111.sc at 4:5): Unknown identifier 'UseVirtue'
21:27:11:718 [kaitan]: Compiling failed
21:27:11:718 [kaitan]: Script 111.sc stopped successfuly

Code: Select all

Program Test;

Function Honor(TargetID:Integer):Boolean;
var
    myResult : Boolean;
begin
    myResult := False;
    ReqVirtuesGump();
    UseVirtue('Honor');
    if(WaitForTarget(500) = True)and (GetDistance(TargetID) < 6) then
    begin
        TargetToObject(TargetID);
        myResult := False;        
    end;                  
    Result := myResult;
end;

begin
    Honor($12345678);
end.

Code: Select all

14:42:56:690 [Crome_Developer]: Compiling
14:42:56:715 [Crome_Developer]: Compiled succesfully
14:42:57:075 [Crome_Developer]: Succesfully executed
14:42:57:075 [Crome_Developer]: Script honor sample.sc stopped successfuly
Stealth 6.1.3 : https://bitbucket.org/Stealthadmin/stea ... /downloads

Re: how to use "valor" and "justice"

Posted: 18.11.2013 13:15
by mixers
thanks, it's very good and i needed.