Thread: putnpc
View Single Post
  #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!