Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Summoning Npc..... (https://forums.graalonline.com/forums/showthread.php?t=48063)

wildwog2001 09-18-2003 02:59 PM

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.

TribulationStaff 09-18-2003 06:36 PM

Read forum rules, no full NPC requests.

DustyPorViva 09-18-2003 06:54 PM

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.

Python523 09-18-2003 11:47 PM

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

Ningnong 09-19-2003 12:42 AM

Also, to me if you can't even attempt to do it, don't make it.

DustyPorViva 09-19-2003 12:43 AM

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?

Ningnong 09-19-2003 12:51 AM

He should start at the basics and progress...Not jump in at the deep end.

DustyPorViva 09-19-2003 01:07 AM

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.

SaijinGohan 09-19-2003 02:03 AM

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. :(

Dach 09-19-2003 02:39 AM

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.

Python523 09-19-2003 02:51 AM

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

Dach 09-19-2003 03:14 AM

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'.

SaijinGohan 09-19-2003 03:24 PM

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?

osrs 09-19-2003 06:21 PM

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. ^^

SaijinGohan 09-19-2003 11:28 PM

I bust my but over my scripts. Mostly because I am ancient and don't know of all the new ways.


All times are GMT +2. The time now is 12:29 PM.

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