Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Mouse-menu NPC (https://forums.graalonline.com/forums/showthread.php?t=46456)

GoZelda 07-24-2003 02:40 PM

Mouse-menu NPC
 
1 Attachment(s)
I made this mouse-menu NPC. It might be a bit longer than others, but i made it in such a way that someone can easily edit. Note: i might give this to Valikorlia or the new G2K1. Try this NPC out as much as you can, because it can prove to be very funny ;P

Spark910 07-24-2003 05:02 PM

Re: Mouse-menu NPC
 
Quote:

Originally posted by GoZelda
I made this mouse-menu NPC. It might be a bit longer than others, but i made it in such a way that someone can easily edit. Note: i might give this to Valikorlia or the new G2K1. Try this NPC out as much as you can, because it can prove to be very funny ;P
Good except some bugs!

''No Not really'' - After clicking trade
When that is the answer to:

''Aw, sorry to hear that! Anything I can do about it...?''

GoZelda 07-24-2003 05:50 PM

I don't understand what you're saying there =\

Python523 07-24-2003 06:33 PM

I don't like it at all, sorry, prehaps you should learn more advanced methods so you can shorten your script and make it seem more professional and advanced, it's a good concept but it could be done better I think

GoZelda 07-24-2003 07:36 PM

You can't help it if you don't like it ^^
But what for advanced methods do you suggest?

Python523 07-24-2003 08:04 PM

Quote:

Originally posted by GoZelda
You can't help it if you don't like it ^^
But what for advanced methods do you suggest?

Making it customizable, the way you would 'customize' this isn't good at all, when I think of something as customizable, I think of editing a few vars, arrays, and strings, not reading a whole script and editing half the lines, and things like
changeimgcolors 10,1,1,1,1;
changeimgcolors 11,1,1,1,1;
changeimgcolors 12,1,1,1,1;
changeimgcolors 13,1,1,1,1;
changeimgcolors 14,1,1,1,1;
can be made into one line with a for loops

osrs 07-24-2003 08:09 PM

Quote:

Originally posted by GoZelda
You can't help it if you don't like it ^^
But what for advanced methods do you suggest?

more for loops,maybe arrays,etc..

GoZelda 07-24-2003 08:48 PM

Quote:

Originally posted by Python523

Making it customizable, the way you would 'customize' this isn't good at all, when I think of something as customizable, I think of editing a few vars, arrays, and strings, not reading a whole script and editing half the lines, and things like
changeimgcolors 10,1,1,1,1;
changeimgcolors 11,1,1,1,1;
changeimgcolors 12,1,1,1,1;
changeimgcolors 13,1,1,1,1;
changeimgcolors 14,1,1,1,1;
can be made into one line with a for loops

Ah crap, forgot about that

screen_name 07-24-2003 09:09 PM

Bug (in steps)

1. right click, choose talk
2. choose bad (this step can be skipped and bug still have the same effect)
3. when options appear, right click again
4. right click one more time if menu doesn't appear
5. choose an option

GoZelda 07-24-2003 09:53 PM

Ah yes i see what the problem is. Just add "this.menu=1" behind the if (leftmousebutton)

adam 07-25-2003 12:35 AM

If only I could find my old mouse menu


It calls another npc in the weaponlist depending on what button you click

the buttons can be added and removed in a server string

and they wouldn't display unless you had the corresponding npc.

deman1171 10-03-2003 07:19 AM

That is very good (sorry for reviving old threads) i love to see your new stuff, it's really awesome, and heh new val is coming, with the worldmap, and tileset, so i suggest to try to get a job there, and make it a little better, and get it up ^ ^

CheeToS2 10-03-2003 01:58 PM

Quote:

Originally posted by deman1171
That is very good (sorry for reviving old threads) i love to see your new stuff, it's really awesome, and heh new val is coming, with the worldmap, and tileset, so i suggest to try to get a job there, and make it a little better, and get it up ^ ^
reviving threads is not a good way to prove you should have been unmasked from here :\ you could have just forum PMed him

GoZelda 10-03-2003 06:15 PM

Erm, i don't think he's from Val :/
But i'm not joining any Pw's - don't like it to much, i'm busy too. Learning C++

Rolav 10-03-2003 07:00 PM

Dude! He stole that script from someone else on here, I remember seeing it once like 4 months ago in a old old post from like 2001 :-/ ill see if i can find aha

Kaimetsu 10-03-2003 07:08 PM

Quote:

Originally posted by Rolav
Dude! He stole that script from someone else on here, I remember seeing it once like 4 months ago in a old old post from like 2001 :-/ ill see if i can find aha
You realise that this thread is pretty old, right?

Ningnong 10-04-2003 02:01 AM

haha, I have a feeling it might be a different script XD

GoZelda 10-05-2003 06:22 PM

1 Attachment(s)
Quote:

Originally posted by Rolav
Dude! He stole that script from someone else on here, I remember seeing it once like 4 months ago in a old old post from like 2001 :-/ ill see if i can find aha
Why would i steal it and then post it? It's obvious i'd got accused of stealing this then. Oh yeah, Jagen, here's a bit updated version etc.

wonderboysp2p 10-05-2003 09:04 PM

1 Attachment(s)
:o buahaha leave it to me to break the npc

Riot-Starter 10-05-2003 09:23 PM

I never even get the choices "Good, Bad"....

wonderboysp2p 10-05-2003 10:05 PM

Quote:

Originally posted by Riot-Starter
I never even get the choices "Good, Bad"....

omi... right click him and then click "talk"

Python523 10-06-2003 01:54 AM

1 Attachment(s)
Your script could still use some improvement

1.) formatting

2.) Your detection for when someone clicks on an option. You would be better off running a for loop and checking for which row you are on all in one statement, instead of running a seperate statement each time.

3.) You could possibly use better detection for when the mouse is over a row. There's more advanced features for doing that now.

See my example I made to see examples of two and three. If you want me to explain how some parts work I will be glad to do so. Please excuse any possible errors in the script, I made it in a rush

Knuckles 10-06-2003 02:24 AM

Quote:

Originally posted by Python523
I don't like it at all, sorry, prehaps you should learn more advanced methods so you can shorten your script and make it seem more professional and advanced, it's a good concept but it could be done better I think
Amen.
I made something like this for N-Pulse like... 3-4 weeks ago... Maybe longer... but it was a staff tool.

They would right click the player, and a few options would be listed.

ie: freezplayer, unfreezeplayer, kick, cancel, or whatever...

It was alot shorter I think, I don't remember. I have to get the script and look at it... i might just post it o.o

GoZelda 10-06-2003 06:40 PM

Quote:

Originally posted by Knuckles

Amen.
I made something like this for N-Pulse like... 3-4 weeks ago... Maybe longer... but it was a staff tool.

They would right click the player, and a few options would be listed.

ie: freezplayer, unfreezeplayer, kick, cancel, or whatever...

It was alot shorter I think, I don't remember. I have to get the script and look at it... i might just post it o.o

I already posted it was a bit long so it is easy editable for people who aren't very good at scripting.

Riot-Starter 10-06-2003 08:49 PM

Quote:

Originally posted by wonderboysp2p
omi... right click him and then click "talk"
This i do, it just hides the selections, when i click again the options reset.

Rolav 10-06-2003 11:16 PM

oh yea, i forgot this post was like forever ago old :-D ok maybe only like 3 months but still nm about stealing the script :-D lol

Knuckles 10-06-2003 11:32 PM

Quote:

Originally posted by GoZelda

I already posted it was a bit long so it is easy editable for people who aren't very good at scripting.

It doesnt have to be long to be easily editable... You can even use comments O_O.


All times are GMT +2. The time now is 11:33 PM.

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