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 01-17-2002, 08:33 AM
XeroMaster XeroMaster is offline
Registered User
Join Date: Dec 2001
Location: Washington-=USA=-
Posts: 143
XeroMaster is on a distinguished road
Send a message via AIM to XeroMaster Send a message via Yahoo to XeroMaster
GGRRRrrrrr.....

this is my 3RD post on this subject!!!!
no one will help me....
I need the script to make a menu thing like in the graal 2001 chothes helper weapon......(the thing that cost 100g)

i need a weapon so when i fire it, it will have 6-9 choses..
please help
__________________
OUT OF MY MIND!
BACK IN 5 MIN.
AIM=Da First Bug
[email protected]
Reply With Quote
  #2  
Old 01-17-2002, 10:04 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
u got help on how to do it, but noone will do it for u
what u normally need again:

showimg index,@text here,x,y;

a timeoutout and keydown-event...
next thing, u wanted to have it like the one Liquid made in his Space-game so just watch the code and how he did it (just say watch how he did it not copy his code!!!)
__________________
No Webhost at the moment
Reply With Quote
  #3  
Old 01-18-2002, 12:17 AM
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
I personally suggest the use of this:
NPC Code:

if (created) {
this.maxsel=the max number of items;
// The starting X Position of the menu;
this.startx = 5;
// The starting Y Position of the menu;
this.starty = 100;
}
if (timeout) {
if (keydown(0)&&this.place>0) {this.place--;}
if (keydown(2)&&this.place<this.maxsel) {this.place++;}
showimg 401,@#-->,this.startx,this.starty+(this.place*10);
changeimgvis 401,4;
changeimgzoom 401,.5;
timeout=.05;
}



thats for the cursor that points out your items.
__________________

!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
  #4  
Old 01-18-2002, 12:23 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
I made one for the N-Pulse warper, inspired from Shadow Knight's old warper for N-Pulse.
Reply With Quote
  #5  
Old 01-18-2002, 05:52 AM
XeroMaster XeroMaster is offline
Registered User
Join Date: Dec 2001
Location: Washington-=USA=-
Posts: 143
XeroMaster is on a distinguished road
Send a message via AIM to XeroMaster Send a message via Yahoo to XeroMaster
um..

I do not understand.
how do I activate the script?

if (created)
{ this.maxsel=6;
// The starting X Position of the menu;
this.startx = 5;
// The starting Y Position of the menu;
this.starty = 100; }
if (timeout) {
if (keydown(0)&&this.place>0)
{this.place--;}
if (keydown(2)&&this.place<this.maxsel)
{this.place++;}
showimg 401,@#-->,this.startx,this.starty+
(this.place*10); changeimgvis 401,4;
changeimgzoom 401,.5; timeout=.05; }
__________________
OUT OF MY MIND!
BACK IN 5 MIN.
AIM=Da First Bug
[email protected]
Reply With Quote
  #6  
Old 01-18-2002, 07:17 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
mess w/ x,y's to change things around .. and yah u can use a loop but this is simple to understand..

NPC Code:

if (playertouchsme) {
disabledefmovement;
this.on=1;
timeout=.1;
setani idle,;
}
if (keydown(1)&&this.on=1) { this.pos=0; }
if (keydown(3)&&this.on=1) { this.pos=1; }

if (keydown(4)&&this.on=1) {
if (this.pos=1) { this.on=0; }
else {
quit();
//put below here whatever you want it to do when the player chooses yes
setlevel2 whateveryourhouse.graal,30,30;
//end
}
}

if (timeout) {
showimg 200,@Go under house?,screenwidth/2-50,(screenheight/2)-30;
if (this.pos=0) {
showimg 201,@@b@yes,(screenwidth/2)-20,screenheight/2;
showimg 202,@no,(screenwidth/2)+20,screenheight/2;
}
else {
showimg 201,@yes,(screenwidth/2)-20,screenheight/2;
showimg 202,@@b@no,(screenwidth/2)+20,screenheight/2;
}
changeimgvis 200,4;
changeimgvis 201,4;
changeimgvis 202,4;
if (this.on=1) { timeout=.1; }
else { quit(); }
}
function quit() {
this.on=0; hideimg 200;hideimg 201; hideimg 202; enabledefmovement;
}

__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #7  
Old 01-18-2002, 11:33 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
ooops, lol i forgot to put the timeout in mine...lol
__________________

!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
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:16 PM.


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