Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   [help] addtiledef (https://forums.graalonline.com/forums/showthread.php?t=81507)

GULTHEX 08-27-2008 06:24 AM

[help] addtiledef
 
when i type in

//#CLIENTSIDE
if (created) {
removetiledefs;
addtiledef dg_tileset.gif,,;
}

in an npc
on lvl maker
my char cant move :(

how i fix???

cbk1994 08-27-2008 06:40 AM

Is it a type 0 or type 1 tileset?

Type 0 is layed out like pics1.png

Chances are it's type 1, so do this:

addtiledef dg_tileset.gif,,1;

xXziroXx 08-27-2008 01:09 PM

Quote:

Originally Posted by GULTHEX (Post 1418227)
how i fix???

http://wiki.graal.net/index.php/Tileset

It's not hard to check the wiki, but if you haven't learned by now, you probably never will. :\

GULTHEX 08-27-2008 04:37 PM

[help] addtiledef help again
 
when i type in

if (created) {
removetiledefs;
addtiledef tileset_devgulthex.png,,1;
}
in an npc it says
this in rc
script: Function addtiledef not found at line 4 in script of npcs[0] (in level dg.nw at pos (31, 23))

how i fix

iv searched all over graal wiki
none of the threads help :(

Deas_Voice 08-27-2008 04:39 PM

Quote:

Originally Posted by GULTHEX (Post 1418285)
when i type in

if (created) {
removetiledefs;
addtiledef tileset_devgulthex.png,,1;
}
in an npc it says
this in rc
script: Function addtiledef not found at line 4 in script of npcs[0] (in level dg.nw at pos (31, 23))

how i fix

iv searched all over graal wiki
none of the threads help :(

if you could use PHP insted of just typing it out like that it would be more readable ;)

btw thats GS1.

Edit: you should use a Weapon NPC insted of a level NPC for that kind of stuff.

Chompy 08-27-2008 04:40 PM

put a //#CLIENTSIDE on top of your script, like so:

PHP Code:

//#CLIENTSIDE
if (created) {
  
removetiledefs;
  
addtiledef tileset_devgulthex.png,,1;



cbk1994 08-27-2008 10:08 PM

There are some good guides for GS2. Try Twinny's site, and the Wiki also has some good guides.


All times are GMT +2. The time now is 01:06 AM.

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