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 09-18-2003, 02:59 PM
wildwog2001 wildwog2001 is offline
Registered User
Join Date: Mar 2002
Location: Brisbane, Australia
Posts: 27
wildwog2001 is on a distinguished road
Send a message via AIM to wildwog2001
Question Summoning Npc.....

I was wondering if anyone could please help me with making a summoning npc, so you could say like, summon player and it would summon them to wear you are, I have no clue where to even start.
__________________
Reply With Quote
  #2  
Old 09-18-2003, 06:36 PM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
Read forum rules, no full NPC requests.
__________________


Help me keep scripting
Reply With Quote
  #3  
Old 09-18-2003, 06:54 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
All he did was ask for help with making it.

You would use serverside

NPC Code:

with (getplayer(account)) {
//change their level and coordinates here
}



If it is a weapon, you can use a triggeraction to trigger serverside and pass the parameters of your levelname, and coordinates.
Reply With Quote
  #4  
Old 09-18-2003, 11:47 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by DustyPorViva
All he did was ask for help with making it.

You would use serverside

NPC Code:

with (getplayer(account)) {
//change their level and coordinates here
}



If it is a weapon, you can use a triggeraction to trigger serverside and pass the parameters of your levelname, and coordinates.
that's walking across a very thin line, saying I don't know how to make something and asking people for help is breaking the rules, in my opinion, but I still need to discuss that with Kai in depth, I mean, one could argue and saying asking for a script is asking for the commands on how to do it, so they can be one in the same, I don't want people to ask how to do something when they haven't even attempted to do it or have no clue on how to script, so if it was up to me, I would close this, but again, I haven't discussed it with Kai yet
Reply With Quote
  #5  
Old 09-19-2003, 12:42 AM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
Also, to me if you can't even attempt to do it, don't make it.
__________________
Former Global Scripting Team Member


Reply With Quote
  #6  
Old 09-19-2003, 12:43 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
If this was something in newfeatures documents I would have directed him towards that, but I don't believe it is.

He has no sources to get his information to even start, if no one can even ask for help anymore, what is this forum for?
Reply With Quote
  #7  
Old 09-19-2003, 12:51 AM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
He should start at the basics and progress...Not jump in at the deep end.
__________________
Former Global Scripting Team Member


Reply With Quote
  #8  
Old 09-19-2003, 01:07 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Maybe he does know the basics.
But this information isn't documented in newfeatures, he would have no way to even find out about with and getxxx.
Reply With Quote
  #9  
Old 09-19-2003, 02:03 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Quote:
Originally posted by TribulationStaff
Read forum rules, no full NPC requests.
I read the rules it it wasnt the complete script. I didnt include the part that triggered the action.
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #10  
Old 09-19-2003, 02:39 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by Python523


that's walking across a very thin line, saying I don't know how to make something and asking people for help is breaking the rules, in my opinion, but I still need to discuss that with Kai in depth, I mean, one could argue and saying asking for a script is asking for the commands on how to do it, so they can be one in the same, I don't want people to ask how to do something when they haven't even attempted to do it or have no clue on how to script, so if it was up to me, I would close this, but again, I haven't discussed it with Kai yet
bleh, the real discussion with that topic is which is more important; how lazy we are, or how easy it can be for someone to learn

We should just offer help whenever we can, then if whoever wanted the help still doesn't get it, they should move on.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #11  
Old 09-19-2003, 02:51 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
This guy didn't even show he attempted to try though, by attempt I mean at least make the basic parts. He could have made a script to show how he wanted to do it, example: using startswith or #e to check if the first part of his text was /summon, then maybe leave a comment where the serverside part would go
Reply With Quote
  #12  
Old 09-19-2003, 03:14 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Well he may not be worried about that right now, but I would agree that he should have made a much more specific question than "help me make this". I mean you could probably go by that, but then you're closing the door to anyone who just doen't know the first thing about programming or gscript for that matter. Since there aren't too many simple npcs floating around for everyone to look off of to see how simple commands work, most new scripters don't have much to work with except the references.

All I really want to say is that if you're going to close threads like this, do it based on more than 'I think this project is over their head and it's wasting our time'.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #13  
Old 09-19-2003, 03:24 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Well since I'm not able to script it for him, *grumble* I'll do it in words.

Assuming you're using a weapon to do this. Well you want to tokenize the text and triggeraction to the serverside part of the weapon with the account name you are summoning as a parameter.
Now in the serverside you want to collect YOUR x, y, and levelname and then with a getplayer(parameter of accountname) you will go to him and set his x, y, and level to yours.

What an explanation. Does that help any wildwog?
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
  #14  
Old 09-19-2003, 06:21 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
That's why we don't have many great scripters on Graal,people ask for help without even try to work on it and get better with your mistakes.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #15  
Old 09-19-2003, 11:28 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
I bust my but over my scripts. Mostly because I am ancient and don't know of all the new ways.
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
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 09:22 AM.


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