Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-18-2002, 10:13 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Need help on this NPC!

Hey guys, i need some help...
i want this npc to play the ganis...
but there is no way to trigger it self (what i think).

So...
can anyone help me make this move for EVERYBODY when someone clicks on it?
NPC Code:

if (actionserverside) {
setcharani #p(1),;
}
//#CLIENTSIDE
if (created) {
this.dontmove=false;
}
if (actionleftmouse&&keydown2(keycode(b),ignorecase)& &keydown2(keycode(r),ignorecase)&&this.dontmove==f alse){
this.dontmove=true;
triggeraction x,y,serverside,shelf1;
sleep 4;
triggeraction x,y,serverside,shelf2;
this.dontmove=false;
}

__________________
Donate money for my trip to Germany

Adiarde Manager
  #2  
Old 06-19-2002, 06:54 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
if

if it's a showcharacter NPC, then you want to use

triggeraction x+1.5,y+2,serverside,;

because you can only triggeractions on a visible part of the NPC, and the NPC is normally set up like this:

NPC Code:

00000111100000
00001111110000
00001111110000
00001111110000
00001111110000
00001111110000
00001111110000



meaning x,y would be transparent/null
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
  #3  
Old 06-19-2002, 01:26 PM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Re: Need help on this NPC!

I noticed another scripting problem other then the one mikepg pointed out.
NPC Code:

if (actionserverside) {
setcharani #p(0),#p(1);
}
//#CLIENTSIDE
if (created) {
this.dontmove=false;
}
if (actionleftmouse&&keydown2(keycode(b),ignorecase)& &keydown2(keycode(r),ignorecase)&&this.dontmove==f alse){
this.dontmove=true;
triggeraction x+1.5,y+2,serverside,shelf1;
sleep 4;
triggeraction x+1.5,y+2,serverside,shelf2;
this.dontmove=false;
}

  #4  
Old 06-19-2002, 08:26 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
lol, you dont use ignorecase with the keys

you use i
__________________
[signature]insert here[/signature]
  #5  
Old 06-19-2002, 09:24 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by screen_name
lol, you dont use ignorecase with the keys

you use i
[CODE]
if (actionserverside) {
setcharani #p(1),;
}
//#CLIENTSIDE
if (created) {
this.dontmove=false;
}
if (actionleftmouse&&keydown2(keycode(b),i)&&keydown2 (keycode(r),i)&&this.dontmove==false){
this.dontmove=true;
triggeraction x,y,serverside,shelf1;
sleep 4;
triggeraction x,y,serverside,shelf2;
this.dontmove=false;
}
__________________
Donate money for my trip to Germany

Adiarde Manager
  #6  
Old 06-19-2002, 09:40 PM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
Re: Re: Need help on this NPC!

Quote:
Originally posted by user13-xo
I noticed another scripting problem other then the one mikepg pointed out.
NPC Code:

if (actionserverside) {
setcharani #p(0),#p(1);
}
//#CLIENTSIDE
if (created) {
this.dontmove=false;
}
if (actionleftmouse&&keydown2(keycode(b),ignorecase)& &keydown2(keycode(r),ignorecase)&&this.dontmove==f alse){
this.dontmove=true;
triggeraction x+1.5,y+2,serverside,shelf1;
sleep 4;
triggeraction x+1.5,y+2,serverside,shelf2;
this.dontmove=false;
}

Uhh....there isnt even a second param in that action...why would he put #p(1) in there?
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
  #7  
Old 06-20-2002, 12:26 AM
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
Re: Re: Re: Need help on this NPC!

Quote:
Originally posted by mikepg


Uhh....there isnt even a second param in that action...why would he put #p(1) in there?
same question
__________________
[signature]insert here[/signature]
  #8  
Old 06-20-2002, 08:01 AM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
I wrote it in my script and forgot to take it out i was using the gralat gani
Closed Thread


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 03:07 PM.


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