Jump to content

GetLevel script


iTz Rossss X

Recommended Posts

Hi,

 

I'm working on a script for a door that can only be opened if the character is above level 10 (if Player.GetLevel >= 10;), if they are not level 10 or higher, the door will not open and a message will appear (MessageBox "You are not strong enough to open the stiff door. (You need to be level 10 or higher)").

 

I have a basic understanding of scripting and here is my script so far:

 

scn aaaDOORStiffDoor01SCRIPT

 

Begin OnActivate

if Player.GetLevel >= 10;

<----Something needs to go here so that the door will open for the character.

end

else

MessageBox "You are not strong enough to open the stiff door. (You need to be level 10 or higher)"

<----Something needs to go here so that the door will not open for the character.

endif

end

 

Could somebody please fill in the rest of the script for me, It shouldn't take two seconds, it's just I don't have a clue what CMD's should go in.

 

 

Thanks in advance.

~~iTz

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...