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
  #76  
Old 03-15-2010, 03:08 AM
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
Red face

Quote:
Originally Posted by Imperialistic View Post
Maybe you should read and learn yourself instead of asking for scripts, it's okay to ask questions for help but people giving you scripts isn't helping. If you read through all of the wiki's you should be able to answer your own questions.

Maybe these links can help you:
www.wiki.graal.us
www.wiki.graal.net
www.gs2.graalstudios.com
1.) No one is giving me scripts. These are scripts that people have came on my server and scripted and left them bugged.

2.) I'm not good at reading text and learning how to script..it's so many different variables and stuff..I need a video. Make one and i'll be happy.
__________________

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
  #77  
Old 03-15-2010, 03:32 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by jkldogg View Post
1.) No one is giving me scripts. These are scripts that people have came on my server and scripted and left them bugged.

2.) I'm not good at reading text and learning how to script..it's so many different variables and stuff..I need a video. Make one and i'll be happy.
I think what he's trying to say is that it doesn't look like you're making an effort to learn. It seems more like you're just looking for people to give you all the answers.
Reply With Quote
  #78  
Old 03-15-2010, 03:41 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by jkldogg View Post
I'm not good at reading text and learning how to script..it's so many different variables and stuff..I need a video. Make one and i'll be happy.
You will never learn how to script if you keep this up.

You've done the following numerous times now:

1. Posted a broken script.
2. Disregarded tips and advice on how to fix it.
3. Waited till a copy-paste (same thing as giving you scripts) solution is present.
4. Made remarks about putting no effort into learning how to script.
__________________
Quote:
Reply With Quote
  #79  
Old 03-15-2010, 03:51 AM
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
I'm not good at reading text and learning how to script..it's so many different variables and stuff..I need a video. Make one and i'll be happy.
A nice, simple way to say things that the others couldn't:
That's mostly what scripting is. A video won't help since scripting is all text. What you'd need is a brain that can compute what you want to do and output it in a scripting language, then be able to debug it on your own through either trial/error or finding exactly what doesn't get called/set/whatever correctly, or where you may have messed up your code.
__________________
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
  #80  
Old 03-15-2010, 05:03 AM
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
fine u w1n

Quote:
Originally Posted by salesman View Post
I think what he's trying to say is that it doesn't look like you're making an effort to learn. It seems more like you're just looking for people to give you all the answers.
Quote:
Originally Posted by fowlplay4 View Post
You will never learn how to script if you keep this up.

You've done the following numerous times now:

1. Posted a broken script.
2. Disregarded tips and advice on how to fix it.
3. Waited till a copy-paste (same thing as giving you scripts) solution is present.
4. Made remarks about putting no effort into learning how to script.
Quote:
Originally Posted by Switch View Post
A nice, simple way to say things that the others couldn't:
That's mostly what scripting is. A video won't help since scripting is all text. What you'd need is a brain that can compute what you want to do and output it in a scripting language, then be able to debug it on your own through either trial/error or finding exactly what doesn't get called/set/whatever correctly, or where you may have messed up your code.
Thank you all for your concern. I will now begin learning to script, I found a good guide. I hope I can be as good as you guys one day. I look up to: Chris Vimes, Switch, and salesman. I view them as good scripters. (Sorry Jerret, i've never seen you script.)

http://www.gs2.graalstudios.com/index.php?page=basic
__________________

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
  #81  
Old 03-15-2010, 05:08 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by jkldogg View Post
Thank you all for your concern. I will now begin learning to script, I found a good guide. I hope I can be as good as you guys one day. I look up to: Chris Vimes, Switch, and salesman. I view them as good scripters. (Sorry Jerret, i've never seen you script.)

http://www.gs2.graalstudios.com/index.php?page=basic
To answer your question directly, add enablefeatures(allfeatures - 4); to your Inventory script.

To expand upon what they said, the post I wrote containing the bitflags + enablefeatures function should have been enough for you to figure it out on your own if you were to look up bitflags on Google.
Reply With Quote
  #82  
Old 03-16-2010, 12:38 AM
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
scripting is so hard
__________________

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
  #83  
Old 03-16-2010, 01:20 AM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
Jerret is a great scripter, and very helpful to others willing to learn. I have alot of respect for him and Chris Vimes.
__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
  #84  
Old 04-02-2010, 05:05 AM
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
Spar

tried to make a spar, help from cody

Where's the problem?

PHP Code:
function onPlayerChats() {
  if (
player.chat==":in") {
    if (
clientr.inspar==false) {
      if (
serverr.sparp<2) {
        
clientr.inspar true;
        
serverr.sparp += 1;
        
player.chat "";
        
setlevel2 vega_spar.nw,32.25,21.5);
      }else
          
player.chat "Therearepeopletheinsparalready";
    }else
        
player.chat "";
  }elseif (
player.chat=="ut") {
    if (
clientr.inspar==true) {
      
serverr.sparp -= 1;
      
clientr.inspar false;
      
player.chat "";
      
setlevel2 vega_spar.nw,8.5,46);
    }else
        
player.chat "";
  }

__________________

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
  #85  
Old 04-02-2010, 12:20 PM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
First off, you should really format your script better.
Try reading this:
http://forums.graalonline.com/forums...ad.php?t=61805
__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
  #86  
Old 04-02-2010, 03:40 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Quote:
Originally Posted by jkldogg View Post
tried to make a spar, help from cody

Where's the problem?
It'd help if you told us how it isn't working.

Not sure if this will fix it, but try formatting the setlevel2 lines like this:
PHP Code:
setlevel2("vega_spar.nw",32.25,21.5); 
It would have been valid GS1, but you had a ) without a matching (.
Reply With Quote
  #87  
Old 04-02-2010, 04:53 PM
Liberated Liberated is offline
not doing alot
Liberated's Avatar
Join Date: Feb 2008
Posts: 1,366
Liberated has a spectacular aura about
Quote:
Originally Posted by DrakilorP2P View Post
It'd help if you told us how it isn't working.

Not sure if this will fix it, but try formatting the setlevel2 lines like this:
PHP Code:
setlevel2("vega_spar.nw",32.25,21.5); 
It would have been valid GS1, but you had a ) without a matching (.
Yeah, this is what the RC fixer also told me.

For the rest the script doesn't seem quite finished yet.
What happeneds if you die, from what i understand your server will be a modern one, and i'd asume you'd be warped to a hospital or a base of somesort.
But the script doesn't give any solution for this.
I'd suggest running a timeout that checks if the player is still within the spar room.

so something like
PHP Code:
function onTimeOut()
{
  if(
player.level != "vega_spar.nw")
  {
    
clientr.inspar false;
    
serverr.sparp -= 1;
  }
  else if(
player.<= this.edgex)
  {
    
clientr.inspar false;
    
serverr.sparp -= 1;
  }
  else if(
player.<= this.edgey)
  {
    
clientr.inspar false;
    
serverr.sparp -= 1;
  }
  else
  {
    
setTimer(.05);
  }

i know this probably isn't the most efficient script, or if it's even working, i typed it in here. But it should show what i mean.
__________________
Quote:
Originally Posted by Tigairius View Post
I promise when I get rich I'll send you an iPhone. I'll send everyone an iPhone.
Reply With Quote
  #88  
Old 04-02-2010, 08:59 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Liberated View Post
if(player.level.name != "vega_spar.nw")
And you really wouldn't need or want a timeout for that.
__________________
Reply With Quote
  #89  
Old 04-03-2010, 06:22 AM
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
The problem is when i say ":in" it doesn't warp you in.
__________________

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
  #90  
Old 04-03-2010, 08:03 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by jkldogg View Post
The problem is when i say ":in" it doesn't warp you in.
Did you update the script any? If you followed Drakilor's tip to fix it should be fine.
__________________
Quote:
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:32 PM.


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