Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   why ? (https://forums.graalonline.com/forums/showthread.php?t=14616)

nyghtGT 10-14-2001 11:37 AM

why ?
 
why wont this work ?
NPC Code:

// NPC made by Nyght *Asst* (LAT Admin)
while (created) {
message Babylon Taylor Skill;
}
if (playerenters) {
toweapons *Taylor;
}
if (weaponfired) {
tayloropen();
}
function tayloropen() {
showimg 0,babylontaylor.gif,32,32}


KJS 10-14-2001 11:41 AM

Re: why ?
 
NPC Code:

if (created)
message Babylon Taylor Skill;
if (playerenters)
toweapons *Taylor;
if (weaponfired)
tayloropen();
function tayloropen()
showimg 0,babylontaylor.gif,32,32;



try that...

it will only show it at 32 32 on the level you know right?

nyghtGT 10-14-2001 11:43 AM

Re: Re: why ?
 
Quote:

Originally posted by KJS
NPC Code:

if (created)
message Babylon Taylor Skill;
if (playerenters)
toweapons *Taylor;
if (weaponfired)
tayloropen();
function tayloropen()
showimg 0,babylontaylor.gif,32,32;



try that...

it will only show it at 32 32 on the level you know right?

that doesn't work ....

btedji 10-15-2001 12:26 AM

try a showimg index of higher than 0 and put brackets {} around entries like if(created){script}

WeirdmanI9 10-15-2001 03:53 AM

How about just don't use a function since it appears you only use it once?

Xaviar 10-15-2001 04:00 AM

Quote:

Originally posted by WeirdmanI9
How about just don't use a function since it appears you only use it once?
Obviously he's going to add more later (I think he already has, judging by the other threads he is posting in)...But an easy fix nyght, would be:

function tayloropen() {
showimg 222,babylontaylor.gif,32,32; //index bigger than 200 so it shows locally
changeimgvis 222,4; //layer of 4 so that it gets drawn as a stat
}


Okiedokey?


All times are GMT +2. The time now is 05:45 PM.

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