Jump to content
  • 0

Script is giving me errors, it used to work.


DR4LUC0N

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  135
  • Reputation:   6
  • Joined:  04/04/12
  • Last Seen:  

I have a script that's supposed to do @hide on login if you're a GM of a certain level.

Here's the scripts contents....

-	script	PCLogin::PCLogin3	-1,{
OnPcLoginEvent:
if (getgmlevel() >= 99)
atcommand strcharinfo(0) + "@hide" ;
end;
}

rA gives me an error upon logging in

warning: script: buildin_atcommand: failed to execute command 'strcharinfo<0>@hide'

I've been out of the RO scene for awhile and I'm getting back into it...I don't remember any of my scripting stuff. ;(

Edited by DR4LUC0N
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

1st off, wanna tell you go take a look at our conf\groups.conf

it has been split into 2 script commmands

getgmlevel() and getgroupid()

-	script	kjhfksjfhs	-1,{
OnPCLoginEvent:
if ( getgmlevel() == 99 )
	atcommand "@hide";
end;
}

something like this I guess

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  135
  • Reputation:   6
  • Joined:  04/04/12
  • Last Seen:  

Thank you very much Annie.

When you get the chance can you look at my other script in the request section?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...