Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-14-2010, 09:30 PM
jkldogg jkldogg is offline
J.Rollin (killaz)
jkldogg's Avatar
Join Date: Feb 2010
Location: USA
Posts: 675
jkldogg can only hope to improve
Send a message via AIM to jkldogg Send a message via MSN to jkldogg
Wink Guild Locked door

Tried to make a guild locked door, for my Squads System...Didn't work too well. Can someone tell me where I went wrong?
Please and thank you in advance.

PHP Code:
function onActionGrab() {
      if (
clientr.SquadName == "La Carmelas");
      
setlevel vega_kody-house-inside,30,30;
    }
    function 
onActionGrab() {
      if (
clientr.SquadName "La Carmelas");
      
setlevel vega_staff-meeting,20,20;
    } 
__________________

PSN: jkldogg



The best post ever made on the graal forums.
After playing Graal Online for many years, JKL decides to make a forum account. Isn't life funny?

Last edited by jkldogg; 03-14-2010 at 09:30 PM.. Reason: vbreakv after "wrong?"
Reply With Quote
  #2  
Old 03-14-2010, 09:38 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by jkldogg View Post
Tried to make a guild locked door, for my Squads System...Didn't work too well. Can someone tell me where I went wrong?
Please and thank you in advance.

PHP Code:
function onActionGrab() {
      if (
clientr.SquadName == "La Carmelas");
      
setlevel vega_kody-house-inside,30,30;
    }
    function 
onActionGrab() {
      if (
clientr.SquadName "La Carmelas");
      
setlevel vega_staff-meeting,20,20;
    } 
you are doing the function twice, that's a no-can-do.
also, still mixing with gs1, stop that if u want to be a scripter
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #3  
Old 03-14-2010, 09:39 PM
jkldogg jkldogg is offline
J.Rollin (killaz)
jkldogg's Avatar
Join Date: Feb 2010
Location: USA
Posts: 675
jkldogg can only hope to improve
Send a message via AIM to jkldogg Send a message via MSN to jkldogg
Arrow 1 function

Quote:
Originally Posted by Deas_Voice View Post
you are doing the function twice, that's a no-can-do.
also, still mixing with gs1, stop that if u want to be a scripter
So if I take out the second function it will work?
__________________

PSN: jkldogg



The best post ever made on the graal forums.
After playing Graal Online for many years, JKL decides to make a forum account. Isn't life funny?
Reply With Quote
  #4  
Old 03-14-2010, 09:41 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by jkldogg View Post
So if I take out the second function it will work?
i don't know? try!
srsly man, rc should tell you errors like this!
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #5  
Old 03-14-2010, 09:47 PM
jkldogg jkldogg is offline
J.Rollin (killaz)
jkldogg's Avatar
Join Date: Feb 2010
Location: USA
Posts: 675
jkldogg can only hope to improve
Send a message via AIM to jkldogg Send a message via MSN to jkldogg
Quote:
Originally Posted by Deas_Voice View Post
i don't know? try!
srsly man, rc should tell you errors like this!
It should, but doesn't.
__________________

PSN: jkldogg



The best post ever made on the graal forums.
After playing Graal Online for many years, JKL decides to make a forum account. Isn't life funny?
Reply With Quote
  #6  
Old 03-14-2010, 11:17 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by jkldogg View Post
PHP Code:
GraalControl.onKeyPressed(codekeyscan
Change this to GraalControl.onKeyDown(code, key, scan). Forgot to change it when I updated the script.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #7  
Old 03-14-2010, 11:51 PM
jkldogg jkldogg is offline
J.Rollin (killaz)
jkldogg's Avatar
Join Date: Feb 2010
Location: USA
Posts: 675
jkldogg can only hope to improve
Send a message via AIM to jkldogg Send a message via MSN to jkldogg
Wink

Quote:
Originally Posted by salesman View Post
try setlevel2()
Works, thanks.

Quote:
Originally Posted by xAndrewx View Post
Oh yeah- haha duh
lol, you had the just of it

Quote:
Originally Posted by Switch View Post
Change this to GraalControl.onKeyDown(code, key, scan). Forgot to change it when I updated the script.
Thanks, already did.
__________________

PSN: jkldogg



The best post ever made on the graal forums.
After playing Graal Online for many years, JKL decides to make a forum account. Isn't life funny?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:43 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.