Graal Forums

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

Entrok 03-06-2010 01:07 AM

Any ideas?
 
I have remade our main sys that give out our tileset, but when i try to move, i cant, becouse i get blocked!

Have checked the tileset and it is as it should be, the script im using is the following:


PHP Code:

//#CLIENTSIDE
function onCreated() 
{
  
player.ap 100;
  
player.shieldpower 3;
  
removetiledefs(NULL);
  
addtiledef("mercia_newtileset.png"""1);
  
client.speed 13;
  
seteffect(0000);
  
enableweapons();
  
enabledefmovement();
  
resetfocus();
  
disablemap();
  
setminimap("door.png","",0,0);
  
onTimeout();


Anyone that could tell me what im doing wrong? Im using addtiledef becouse we will only have one tileset, and wont add anymore then this one.

cbk1994 03-06-2010 01:17 AM

Is it a type 1 tileset?

Cubical 03-06-2010 03:08 AM

You also should getting into the habbit of adding a level name prefix. This will help if say you want to have separate tilesets later on for inside/outside/event levels without having to set the tileset in each given level. I wish this were a requirement on testbed.
example:
PHP Code:

  addtiledef("mercia_newtileset.png""myworld_"1); 

Edit: it's more or less personal preference I guess, but I'd start doing it.

Entrok 03-06-2010 09:51 AM

Quote:

Originally Posted by Cubical (Post 1560746)
You also should getting into the habbit of adding a level name prefix. This will help if say you want to have separate tilesets later on for inside/outside/event levels without having to set the tileset in each given level. I wish this were a requirement on testbed.
example:
PHP Code:

  addtiledef("mercia_newtileset.png""myworld_"1); 

Edit: it's more or less personal preference I guess, but I'd start doing it.

Ok, but that wont help with my problem?

Quote:

Originally Posted by cbk1994 (Post 1560738)
Is it a type 1 tileset?

Yeah its type 1.

Cubical 03-06-2010 10:02 AM

Have you tried switching the type 0 to see if it works?

Entrok 03-06-2010 12:30 PM

1 Attachment(s)
Quote:

Originally Posted by Cubical (Post 1560792)
Have you tried switching the type 0 to see if it works?

Will try that, this is the template i did use:

Cubical 03-06-2010 01:26 PM

Quote:

Originally Posted by Entrok (Post 1560809)
Will try that, this is the template i did use:

Are they tiles showing up correctly but you cannot move, also is this on a gmap or a single level?

Imperialistic 03-06-2010 02:01 PM

It is a type 1 tileset..

Four problems I can think of:
1 - You haven't added the weapon to yourself.
2 - You didn't properly trans the tileset.
3 - Try removing the -removetiledefs command.
4 - Not much of a scripter but, don't you need to set a timer for the timeout?

Entrok 03-06-2010 02:15 PM

Quote:

Originally Posted by Cubical (Post 1560811)
Are they tiles showing up correctly but you cannot move, also is this on a gmap or a single level?

Yes i see the tileset correctly and all.

I am testing in a single level.

And yes i cant move, i have tryed to change the tiles im trying on, cant move on anyone as far as i have seen.

When im in water i start to swim, but cant move

coreys 03-06-2010 02:31 PM

Quote:

Originally Posted by Imperialistic (Post 1560813)
Not much of a scripter but, don't you need to set a timer for the timeout?

Nah, onTimeOut is a function like any other, you can call it directly.

Entrok 03-06-2010 05:07 PM

Is there anyone that have any idea what can be making this? have tryed everyting, or should i try and rescript it whole, and see if it would help?

Switch 03-07-2010 12:11 AM

Did you check for disabledefmovement()?
Also, 'client.speed = 13;' you have a movement system, or am I missing something? Could be effecting it.

Entrok 03-07-2010 12:59 AM

Quote:

Originally Posted by Switch (Post 1560884)
Did you check for disabledefmovement()?
Also, 'client.speed = 13;' you have a movement system, or am I missing something? Could be effecting it.

Yes, i have checked for a disabledefmovement() but i can move in the square i am in, but cant move out of it, and the movement works, did try to disable it and use the normal movement, but that blocks too

DustyPorViva 03-07-2010 01:39 AM

There is a possibility you're not using the tileset correctly. Specific areas are designed to be blocking, which is different than the default tileset(pics1). Maybe if you post the tileset and a screenshot of you being stuck.

Entrok 03-07-2010 09:49 AM

Quote:

Originally Posted by DustyPorViva (Post 1560897)
There is a possibility you're not using the tileset correctly. Specific areas are designed to be blocking, which is different than the default tileset(pics1). Maybe if you post the tileset and a screenshot of you being stuck.

I have made tiles with that one before that have worked, but now it dosent, and i have even tryed the noneblocking side, cant even walk on that parts


NVM did try with a new level, and it is probley something wrong with my level, becouse i can move in my new one, thanks everyone for the help i still got from you all


All times are GMT +2. The time now is 10:26 PM.

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