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 06-14-2002, 08:39 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Right Click Player menu

Done and Done


Not hard to script.

Only hard to make it short.

I think I failed.

If you think you are up to making it shorter. PM me maybe I'll send you the script. It has a few hundred functions in it. *exaggerating*
Attached Thumbnails
Click image for larger version

Name:	click_menu.png
Views:	421
Size:	23.8 KB
ID:	17252  
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #2  
Old 06-14-2002, 09:38 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Re: Right Click Player menu

Quote:
Originally posted by adam
Done and Done


Not hard to script.

Only hard to make it short.

I think I failed.

If you think you are up to making it shorter. PM me maybe I'll send you the script. It has a few hundred functions in it. *exaggerating*
Nice! Could be a good admin tool. :]
Reply With Quote
  #3  
Old 06-14-2002, 09:56 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Very easy to make short.... especially if you are doing it on an NPCs server
__________________

subliminal message: 1+1=3
Reply With Quote
  #4  
Old 06-14-2002, 11:37 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Falcor
Very easy to make short.... especially if you are doing it on an NPCs server
I wouldn't mind knowing how.

Mine is rather long compared to most of my scrips.


This is for a non- NPC Server server though. Becouse I am not friends with the owners of any NPC Server servers..
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #5  
Old 06-15-2002, 02:10 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Ok I managed to make it dynamic and 80% shorter. hehe
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #6  
Old 06-15-2002, 10:45 AM
HisDog HisDog is offline
Registered User
Join Date: Feb 2002
Posts: 64
HisDog is on a distinguished road
Send a message via AIM to HisDog
wow, hey can ya send it to me too?
__________________
Im a furre and im proud of it!
got a problem? Take it up with my tail!
Reply With Quote
  #7  
Old 06-15-2002, 12:23 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
hahaha,
I wrote that same thing in like 4 mins.
It looks like precicely like mine, fun to script...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #8  
Old 06-15-2002, 12:30 PM
HisDog HisDog is offline
Registered User
Join Date: Feb 2002
Posts: 64
HisDog is on a distinguished road
Send a message via AIM to HisDog
i have no clue on how to script at all!
__________________
Im a furre and im proud of it!
got a problem? Take it up with my tail!
Reply With Quote
  #9  
Old 06-15-2002, 12:31 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Saga2001
hahaha,
I wrote that same thing in like 4 mins.
It looks like precicely like mine, fun to script...

Good for j00.

I managed to get it up and running on Doomsday cuz I know da owner from back when.

Nice short easy to add buttons to and use for other things.

Few bugs though.


doesn't hurt that I showed you my script and you saw how I did it.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #10  
Old 06-15-2002, 08:10 PM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Quote:
Originally posted by adam



Good for j00.

I managed to get it up and running on Doomsday cuz I know da owner from back when.

Nice short easy to add buttons to and use for other things.

Few bugs though.


doesn't hurt that I showed you my script and you saw how I did it.
If you don't mind, can I look at it? I want to look at a few things... and how did you disable the player profile?
Reply With Quote
  #11  
Old 06-15-2002, 09:58 PM
Dark-Dragoon Dark-Dragoon is offline
Registered User
Dark-Dragoon's Avatar
Join Date: May 2002
Posts: 886
Dark-Dragoon is on a distinguished road
I wouldnt mind taking a look. Must be a mighty fancy script.
__________________
R.I.P. 1999-2004 Graalian Year
The World Renown Nobody, Guy.
Reply With Quote
  #12  
Old 06-15-2002, 11:15 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by LilNiglet


If you don't mind, can I look at it? I want to look at a few things... and how did you disable the player profile?

I didn't disable the player profile
I changed it ot a left click menu.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #13  
Old 06-16-2002, 12:01 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Quote:
Originally posted by adam



I didn't disable the player profile
I changed it ot a left click menu.
Ah :x

Will you release it publicly? Or no?
Reply With Quote
  #14  
Old 06-16-2002, 04:01 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by LilNiglet


Ah :x

Will you release it publicly? Or no?

We'll see.

I just rescripted it entirely a 3rd time.

Now to add menu buttons you add the name of a weapon to a server string.

If you have the weapon in the server string it displays a button for it.

Then when you click it's button it sends the event actionMenu to that npc weapon

also sets an index string with the index of the player you clicked on

from then on you should have you you need to make any weapon requiring a click hehehe
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #15  
Old 06-16-2002, 12:28 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
I think I understand how the good scripters feel now. haha


pm's asking for scripts and help.

all the time. aol messages

fun fun
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #16  
Old 06-17-2002, 01:05 AM
HisDog HisDog is offline
Registered User
Join Date: Feb 2002
Posts: 64
HisDog is on a distinguished road
Send a message via AIM to HisDog
>.<
ill never be able to figure out scripting... >.<
__________________
Im a furre and im proud of it!
got a problem? Take it up with my tail!
Reply With Quote
  #17  
Old 06-17-2002, 08:51 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Heh, I tried to make a right-click menu, and I ran into the problem of using putnpc =/ :'( Ne chance I could take a look @ the script or a quick explanation? Heh, just asking, I know it gets annoying when ppl ask, b/c it happens to me too
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #18  
Old 06-17-2002, 09:09 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by HisDog
>.<
ill never be able to figure out scripting... >.<
You think I haven't said that about 10,000 times.


Practice and learn to love math. it's your friend.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #19  
Old 06-17-2002, 09:16 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Let's see how'd I get the menu to pop up..

Well the menuSystem is more complex than a menu for just a single weapon with afew buttons. Hmm..


NPC Code:

if (mousedown){
if (leftmousebutton&&this.menu_on==false){
draw_menu();
this.menu_on=true;
}elseif(leftmousebutton){
click_check();
}
}

function draw_menu(){
menux = mousescreenx;
menuy = mousescreeny;
showimg 6000,menu_picture,menux,menuy;
showimg 6001,@ButtonText,menux,menuy;
}

function click_check(){
if (mousescreenx in |menux,menux+imglenth| &&
mousescreeny in |menuy,menuy+imgheight|){
// do something =/
}else{
hideimg 6000;
hideimg 6001;
}
}



very simple version of what I did.... I did that just now without testing so =/ don't recomend using or even trying to use.
I aways make 3 dumb mistakes when doing stuff.


AHJ GOnna be LAte laterz
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #20  
Old 06-17-2002, 09:28 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
I want friggen matricies
__________________

subliminal message: 1+1=3
Reply With Quote
  #21  
Old 06-17-2002, 11:28 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by adam
love math
totally agree =D
__________________
[signature]insert here[/signature]
Reply With Quote
  #22  
Old 06-18-2002, 10:06 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Falcor
I want friggen matricies

pretend a simulated 2d array is a matrice. =/
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
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 01:28 PM.


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