Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Item Drop System? (https://forums.graalonline.com/forums/showthread.php?t=58833)

Jaquet 05-03-2005 01:53 PM

Item Drop System?
 
I was wondering where I could find a script for an Item drop system or if someone can post one on here.

Admins 05-07-2005 11:22 AM

I have deleted some posts here because they were just rude. Please someone post a link to an item system resource or at least help with a simple putnpc2 example and item strings.

Deek2 05-07-2005 05:14 PM

Quote:

Originally Posted by Stefan
I have deleted some posts here because they were just rude. Please someone post a link to an item system resource or at least help with a simple putnpc2 example and item strings.

No offense, but I think it kinda destroys the fundamentals of being a scripter if you don't have the motivation (and possible future learning experiences) of just making your own scripts.

osrs 05-07-2005 05:49 PM

Post whole systems is not allowed, but I can give you an advice; An item drop systems is not complicated, if you think a little bit before start scripting.
Let's see how it would work first:

1st) You need check if you have items, if yes, introduce them into a string list;
2nd) If you have selected wich item you want to drop, you will have to use a putnpc2(), this command will create a new npc on level, so you will need to set some attributes for it. (like it's name, the image of the weapon)

After dropping, use 'with()'; That will act directly where you tell it to act, in this case, on last npc created.

NPC Code:

with(npcs[npcscount-1]){
setstring this.itemname,ITEM_NAME;
setstring this.itemimage,ITEM_IMAGE;
}



You told 'with()' to act on npcs, and specified wich npc, that is why I used 'npcscount-1', 'npcscount' will get the quantity of npcs that exist on level and '-1' will be yours, the last one dropped.

You can find more information about strings,putnpc2 using, with(), by doing a forum search.

Luigi203 05-07-2005 06:44 PM

If he had to ask for the whole script, then your explanation was to advanced for him. Also, why are you using thiso.? :confused:

osrs 05-07-2005 06:51 PM

Quote:

Originally Posted by Luigi203
Also, why are you using thiso.? :confused:

You can only use 'thiso' if you are using with() to get to another NPC.
And sorry, I did a mistake there, a 'this.' var would be fine in that example.

Gman4pwnu 05-07-2005 07:43 PM

I have the old item system i made for atrius a year or two ago, if everyones alright with me posting it...

Evil_Trunks 05-07-2005 08:00 PM

Quote:

Originally Posted by Gman4pwnu
I have the old item system i made for atrius a year or two ago, if everyones alright with me posting it...

well apparently Stefan is alright with breaking the forum rules so go ahead

Darlene159 05-07-2005 09:06 PM

Quote:

Originally Posted by Evil_Trunks
well apparently Stefan is alright with breaking the forum rules so go ahead

Apparently Stefan doesn't agree with the rules of the scripting forum. Also, some people treat others way to harshly, and are really rude :\

Admins 05-07-2005 09:28 PM

I am quite pissed at people who think they need to enforce the rules if they don't even know them themself. The rule is about not just posting tons of scripts without explaination. A good documented script or helpful documentation can be posted, or be added to the sticky threads. Do you think the rule was made to prevent posting any code that could be used in the game?? If you have scripts without documentation it is possible to post them on graal.net and put a link to that in your post, if it contains good documentation then you can also directly attach it your post or ask a GST to approve it as official documentation.

osrs 05-07-2005 09:59 PM

Quote:

Originally Posted by Darlene159
Apparently Stefan doesn't agree with the rules of the scripting forum. Also, some people treat others way to harshly, and are really rude :\

Posting full examples of scripting wouldn't be really good, but helping as most as possible is, and yes, some people here are very rude and stupid when helping or correcting other persons. :whatever:

Crono 05-07-2005 10:02 PM

Quote:

Originally Posted by Stefan
I am quite pissed at people who think they need to enforce the rules if they don't even know them themself.

ASDF WHY DIDNT WE GET MARRIED BEFORE, I SO AGREE

Now you guys know why i lose it when A CERTAIN SOMEBODY ALWAYS GOES "clos thred plz!!!!"

Darlene159 05-07-2005 10:17 PM

Quote:

Originally Posted by Stefan
I am quite pissed at people who think they need to enforce the rules if they don't even know them themself. The rule is about not just posting tons of scripts without explaination. A good documented script or helpful documentation can be posted, or be added to the sticky threads. Do you think the rule was made to prevent posting any code that could be used in the game?? If you have scripts without documentation it is possible to post them on graal.net and put a link to that in your post, if it contains good documentation then you can also directly attach it your post or ask a GST to approve it as official documentation.

If you are talking to me, I get mad when everytime someone posts scripts to help someone, certain people jump up and say "Don't give people scripts, they will be lazy and wont learn anything" or something to that effect. I hate the way people are treated in the scripting forum, and whenever I say something about it, I get yelled at :\

osrs 05-07-2005 10:19 PM

Quote:

Originally Posted by Darlene159
I hate the way people are treated in the scripting forum, and whenever I say something about it, I get yelled at :\

To be honest, there are only two people that treat people as trash here, but I won't say names, I want to prevent fights. :)

Crono 05-07-2005 11:54 PM

Quote:

Originally Posted by Darlene159
If you are talking to me, I get mad when everytime someone posts scripts to help someone, certain people jump up and say "Don't give people scripts, they will be lazy and wont learn anything" or something to that effect. I hate the way people are treated in the scripting forum, and whenever I say something about it, I get yelled at :\

I dont want to put any words into people's mouths but I think he's talking about normal players who begin to complain, *****, and pretend they know the rules and can enforce them.

Quote:

Originally Posted by osrs
To be honest, there are only two people that treat people as trash here, but I won't say names, I want to prevent fights. :)

Osrs I luv u 2 ^^_^_^^_^

Admins 05-08-2005 01:25 AM

Quote:

Originally Posted by Darlene159
If you are talking to me,

Not really to you, but I didn't felt like I should delete all posts again x-x

I understand them, new people should first read the rules and not ask for complete scripts, but for help in specific problems.
But I am telling people to use the scripting forum to get help, and if some experienced scipter reads such a post then he/she can give links to places where you find the good resources and code examples, or explain what an item system is about. And if you feel that you don't want to answer because you think the poster is not experienced enough for such stuff then just don't answer. It would be the task of the forum moderators to manage the case if the thread turns out to be a code desert or whatever.

Darlene159 05-08-2005 05:13 AM

Quote:

Originally Posted by Stefan
Not really to you, but I didn't felt like I should delete all posts again x-x

I understand them, new people should first read the rules and not ask for complete scripts, but for help in specific problems.
But I am telling people to use the scripting forum to get help, and if some experienced scipter reads such a post then he/she can give links to places where you find the good resources and code examples, or explain what an item system is about. And if you feel that you don't want to answer because you think the poster is not experienced enough for such stuff then just don't answer. It would be the task of the forum moderators to manage the case if the thread turns out to be a code desert or whatever.

Maybe it is time for a better moderator for the scripter forum then? I am on as much as I can (this weekend not as much as it is Mother's Day weekend, and my husbands parents are visiting), and I try to stay out of the gfx and scripting forum and let the mods take care of it, but it doesn't help if the mod isn't moderating. It really doesn't help when 2 top scripters of Graal are the ones who are so negative about helping others....I do totally agree with you

Gman4pwnu 05-08-2005 05:47 AM

Quote:

Originally Posted by Evil_Trunks
well apparently Stefan is alright with breaking the forum rules so go ahead

Don't be a smartass.

Stefan worked hard to create graal, im sure he has spent a lot of time working on the engine and such, he can make the rules whatever he wants.

Evil_Trunks 05-08-2005 06:31 AM

Quote:

Originally Posted by Stefan
I am quite pissed at people who think they need to enforce the rules if they don't even know them themself. The rule is about not just posting tons of scripts without explaination. A good documented script or helpful documentation can be posted, or be added to the sticky threads. Do you think the rule was made to prevent posting any code that could be used in the game?? If you have scripts without documentation it is possible to post them on graal.net and put a link to that in your post, if it contains good documentation then you can also directly attach it your post or ask a GST to approve it as official documentation.

Perhaps you should update the rules then, so this thread is no longer breaking them.

Quote:

1) Don't post here just asking for scripts... The posters here aren't just some handy resource for scripting shortcuts. If you can't script something then don't try to produce it. If you're trying to make it to aid your learning then set your sights lower. If you want it for a server then go hire a scripter.

2) Likewise, don't post whole scripts for people. Post wordy solutions, certainly, but not things that people can just copy & paste into their levels without any effort.
According to you, both of these rules are free to be broken.

I do know the rules myself, because they are posted at the top of this forum for anyone to read.

Darlene159 05-08-2005 01:47 PM

Quote:

Originally Posted by rule
1) Don't post here just asking for scripts... The posters here aren't just some handy resource for scripting shortcuts. If you can't script something then don't try to produce it. If you're trying to make it to aid your learning then set your sights lower. If you want it for a server then go hire a scripter.

This rule is too harsh...

"If you can't script something then don't try to produce it."
Why shouldn't people be able to try to produce a script if they don't know how? Especially with all the PW's out there now....

"If you want it for a server then go hire a scripter."
Why should someone who doesn't know how to script, have to go find a scripter, if they are wanting to learn how to script?

I agree that people should NOT post here just asking for others to give away scripts, but for those who post asking "Where can I find....?" "How do I make....?", ect...I am sure they can be directed somewhere to find their answer (As you can see, the thread creator asked if anyone knew where to find a script OR if they could post one). All I see in almost every thread here is "You broke a rule!", "Don't post that!", "You can't post that script, it breaks the rules!". Does the person recieve the help they need? I doubt it, and if they do, they have to weed through the other posts where people are arguing about the rules, or some scripters are arguing with each other about the right way to do something. I would hope that more scripters would share their knowledge with others to help them learn as Graal could really use more scripters, and there are people who are willing to learn....

Like Stefan said, if you aren't willing to post something helpful to the thread creator, then don't post

Rick 05-08-2005 03:28 PM

Quote:

Originally Posted by Darlene159
This rule is too harsh...

I don't think the rule is too harsh, just worded incorrectly.

Basically, from what I can understand, the gist of the rule basically says: If you cannot script it, then do not try to produce until you understand how to do so.

hottstuff911 05-11-2005 02:45 AM

Ok, some people learn from people giving them the scripts i learned how to script from looking at other scripts and asking what parts of the script do and stuff and i started to learn little by little so dont say that you get mad for someone posting scripts its not wrong ok.!.!.

Skyld 05-11-2005 07:56 PM

Quote:

Originally Posted by hottstuff911
posting scripts its not wrong ok.!.!.

It is on these forums.

Inverness 05-12-2005 12:11 AM

I don't think there is anything bad about posting full scripts if you explain them so the person could learn.

I learned alot of the stuff I know from looking at other people's scripts then going through commands.rtf and such...

If i'm going to script something i'd like to know how its remotely supposed to function.


All times are GMT +2. The time now is 12:58 AM.

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