Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 07-08-2001, 05:41 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
putnpc

i remeber seeing this post earlier but i can't find it. which putnpc command works with npcserver putnpc1 or putnpc2 and whats the format for putnpc2?
  #2  
Old 07-08-2001, 07:26 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
putnpc2 x,y,{script}; is what works on the NPC server.
__________________
Eric Kraft
  #3  
Old 07-08-2001, 08:11 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
ty : D
  #4  
Old 07-08-2001, 11:37 AM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
Hrm..
__________________
Xerphier Dintch
Featuring
  #5  
Old 07-09-2001, 12:39 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
?

whats hrm for 0.o
  #6  
Old 07-09-2001, 02:20 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
??

anyone know why this script won't let me pick up the weapon?

if (playertouchsme) {toweapons noobmaker;}
if (weaponfired) {
setani backflip,;
putnpc2 playerx,playery,{
if (created) {
showcharacter;
setcharprop #3,head0.gif;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
canbecarried;
}
}
}
  #7  
Old 07-09-2001, 02:43 AM
FxChiP FxChiP is offline
Registered User
Join Date: Mar 2001
Location: Pittsburgh, PA
Posts: 451
FxChiP is on a distinguished road
Send a message via ICQ to FxChiP Send a message via AIM to FxChiP
Re: ??

Quote:
Originally posted by Bravo_LAT-Admin
anyone know why this script won't let me pick up the weapon?

if (playertouchsme) {toweapons noobmaker;}
if (weaponfired) {
setani backflip,;
putnpc2 playerx,playery,{
if (created) {
showcharacter;
setcharprop #3,head0.gif;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
canbecarried;
}
}
}
If the image is 32x32, for example, you put this in before playertouchsme (because since the server doesn't load the gifs, you need to tell it the dimensions).

NPC Code:

if (created) {
setshape 1,32,32;
}



That way, the NPC Server knows the dimensions, and therefore knows where the player has to be in order to touch the NPC.
__________________


"The administrators of Graal Online will not be responsible for corrupting of young minds. " -User Agreement.. heh-heh-heh

"4. Racial intolerance is not allowed. [NEW!]" -User License Agreement (I love the "[NEW!]" part)

"No more drugs for THAT man!" -TrueHeaT

"... or does
it stand for something like
'[B]hala is the [M]an who decides so lets [X]ross the fingers'?)" -Stefan, in response to a guild dispute over the guild name "BMX"

[img src=http://www.lucitanica.f2s.com/shaun-revolutionsig.gif]
Time to piss Lycia off!
  #8  
Old 07-09-2001, 08:09 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
hmm

well now i can pick it up : / but it won;t lay the noobie doll >.< can anyone eolsve this one?
  #9  
Old 07-09-2001, 08:20 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
putnpc2 needs to be used serverside... you need to trigger a server action and in the control NPC put the putnpc2 part

NPC Code:
if (weaponfired) {
triggeraction 0,0,servernoob,;
}


NPC Code:
if (actionservernoob) <what you had>



its either actionservernoob or serveractionnoob, dont remember
__________________
Eric Kraft
  #10  
Old 07-09-2001, 11:00 AM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to Knightoffrost
Re: ?

Quote:
Originally posted by Bravo_LAT-Admin
whats hrm for 0.o
Its sorta a dumb question
__________________
Xerphier Dintch
Featuring
  #11  
Old 07-09-2001, 09:11 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
ok

ok ty..hmm and frost i havn't has too much experience scripting with p2p yet ;p so i'm gonna ask some dumb questions ;p
  #12  
Old 07-09-2001, 09:30 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
: /

well its still acting the same as before..does the backflip but no noobie doll......

if (created){setshape 1,10,10;}
if (playertouchsme) {toweapons noobmaker; }
if (weaponfired) {triggeraction 0,0,servernoob,;}
if(actionservernoob) {
setani backflip,;
putnpc2 playerx,playery,{
if (created) {
showcharacter;
setcharprop #3,head0.gif;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
shieldpower = 1;
dir = 2;
canbecarried;
}
}
}
  #13  
Old 07-10-2001, 12:51 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Quote:
Originally posted by Er1c
putnpc2 needs to be used serverside... you need to trigger a server action and in the control NPC put the putnpc2 part

NPC Code:
if (weaponfired) {
triggeraction 0,0,servernoob,;
}


NPC Code:
if (actionservernoob) <what you had>



its either actionservernoob or serveractionnoob, dont remember
Read it! you need to put the seccond part in the control-NPC
__________________
Eric Kraft
  #14  
Old 07-10-2001, 07:11 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
I so lost in all of this script. I feel a headache coming on.
  #15  
Old 07-10-2001, 11:03 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Woe is me

Woe Woe is me. Heres my best script!! Its for a toilet!
if (created) {
drawunderplayer;
dontblock;
}
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
  #16  
Old 07-10-2001, 11:06 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Wink

No Actually this is my best script....

if (playerenters) show;
if (playertouchsme) {
toweapons Wood Bomb;
hide;
}
if (weaponfired && playerbombs>0) {
timeout=3;
if (playerdir=0) {
putnpc woodbomb.gif,woodbomb.txt,playerx+0.5,playery-1;
};
if (playerdir=1) {
putnpc woodbomb.gif,woodbomb.txt,playerx-1.5,playery+1;
};
if (playerdir=2) {
putnpc woodbomb.gif,woodbomb.txt,playerx+0.5,playery+2.5;
};
if (playerdir=3) {
putnpc woodbomb.gif,woodbomb.txt,playerx+2.5,playery+1;
};
playerbombs--;
}
if (timeout) {
for (i=0; i<playerscount; i++) {
if ((x-players[i].x)<=6 &&
(y-players[i].y)<=6 &&
(x-players[i].x)>=-6 &&
(y-players[i].y)>=-6) {
hitplayer i,1,x,y};
};
}


heres the text file for it....
Attached Files
File Type: txt woodbomb.txt (1.2 KB, 31 views)
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
  #17  
Old 07-11-2001, 12:12 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
hmm

ok ty i ot it now thank you er1c. one more question si there ahyway to make the noobie dolls serverside becuase irght now it seems as if they are runnin clientside because when you pick it up others see a bush...and the noobie stays for them..
 


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


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