Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-27-2008, 06:24 AM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Exclamation [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???
Reply With Quote
  #2  
Old 08-27-2008, 06:40 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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;
__________________
Reply With Quote
  #3  
Old 08-27-2008, 01:09 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by GULTHEX View Post
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.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #4  
Old 08-27-2008, 04:37 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Angry [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
Reply With Quote
  #5  
Old 08-27-2008, 04:39 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by GULTHEX View Post
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.
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #6  
Old 08-27-2008, 04:40 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
put a //#CLIENTSIDE on top of your script, like so:

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

__________________
Reply With Quote
  #7  
Old 08-27-2008, 10:08 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
There are some good guides for GS2. Try Twinny's site, and the Wiki also has some good guides.
__________________

Last edited by Kristi; 08-27-2008 at 10:26 PM..
Reply With Quote
Reply


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:35 AM.


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