Graal Forums

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

greenarrow 03-25-2005 02:37 PM

addtiledef...
 
How come for some reason I can never remember how to use this damn code?
Can someone post the addtiledef code to restore pics1.png as the tiles for the editor...

greenarrow 03-25-2005 02:42 PM

bah
 
lol i knew it, i knew i knew it i knew it, as soon as i posted this i remembered the code, well for others who cant figure it out, to restore pics1.png, enter this
if (created) {
addtiledef pics1.png,,1;
}

protagonist 03-25-2005 04:02 PM

Quote:

Originally Posted by greenarrow
lol i knew it, i knew i knew it i knew it, as soon as i posted this i remembered the code, well for others who cant figure it out, to restore pics1.png, enter this
if (created) {
addtiledef pics1.png,,1;
}

Use GS2 :[

NPC Code:

function onCreated(){
addtiledef(pics1.png,,1);
}


Evil_Trunks 03-25-2005 05:00 PM

Quote:

Originally Posted by protagonist
Use GS2 :[

NPC Code:

function onCreated(){
addtiledef(pics1.png,,1);
}


Why would he use GScript2 in the offline editor where there isn't any support for it?

Nor should he use it online because hardly anyone is making a v3 only compatible server.

Not to mention you give bad scripting advice, that is definitely the wrong way to use addtiledef()

CheeToS2 03-25-2005 08:27 PM

Just put removetiledefs; in an npc, press play, press F4, and delete the NPC. It doesn't follow proper scripting guidelines, but it is only staying there for a moment :)

zell12 03-25-2005 11:55 PM

Orrrr you can clear the offlinetile thingey.txt


All times are GMT +2. The time now is 07:34 PM.

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