Graal Forums

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

excaliber7388 07-14-2006 05:50 AM

pulling?
 
What would cause the player to not be able to pull anything? Pressing A does nothing.
I need to figure out what script would do this, and how to fix it.

ApothiX 07-14-2006 04:12 PM

Is something setting your gani in a timeout?

excaliber7388 07-14-2006 05:11 PM

Not that I know of x_X

excaliber7388 07-18-2006 09:03 PM

bump bump
:frown:
Still a problem.
Not using disable weapons or anything setting the gani, except for replacing the sword gani

contiga 07-18-2006 09:19 PM

Using a custom movement system?

Omini 07-19-2006 01:26 AM

i suppose

PHP Code:

replaceani("pull","idle"); 

would be the simple approach?

excaliber7388 07-19-2006 02:28 AM

Quote:

Originally Posted by contiga
Using a custom movement system?

nope
And if I replace pull with idle, the I'll be able to pull stuff, maybe, but it would look like they're standing there

Omini 07-19-2006 02:36 AM

I'm pretty sure there is a way to disable the pulling, but I don't exactly know it. If I find out how, I'll let you know.

excaliber7388 07-19-2006 05:20 AM

I've tried enablefeatures(allfeatures), enabledefmovement(), replaceani("pull,"pull"), and even scripting my own.
(Mine didn't work well at all)

Yen 07-19-2006 07:48 PM

I remember when Babylon had this problem.
Is it possible it has to do with glovepower? Try setting your glovepower to 1 or 2 (serverside, of course)

excaliber7388 07-20-2006 05:51 PM

I have glovepower of 3?
And changing it does nothing x_x
What could disable this, then I can search and try to find it

lordspawn 07-20-2006 06:01 PM

delete your npc's in your inventroy one by one and after deleting each one try and pull, once u can pull go look at the npc u last deleted, i did this one i had this same problem

excaliber7388 07-20-2006 06:07 PM

x_X I guess
Hmm, it seems I also cannot pick up and old bushes, etc

contiga 07-20-2006 07:29 PM

Hmm, what kind of tileset type is DR using? Like, addtiledef imgname.png,levelstart,0 or 1;? Maybe if you are using a modern tileset, the bushes can't be picked up? Just a thought.

Test it with this script:
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
setImg("block.png");
  
canBeCarried();
  
canBePushed();
  
canBePulled();


Then try to carry, push and pull the block.. to see if carrieng, pushing or pulling works at all.. or that it's just a problem with the tileset.

Yen 07-20-2006 08:34 PM

Quote:

Originally Posted by excaliber7388
I have glovepower of 3?
And changing it does nothing x_x
What could disable this, then I can search and try to find it

And there's your problem!
Glove power only goes up to 2.
0 picks up no stones, 1 picks up green stones, and 2 picks up black stones.

excaliber7388 07-20-2006 10:45 PM

I've set it down to 2, it didn't work x_X

excaliber7388 07-22-2006 06:19 PM

This is the script that's doing it.
PHP Code:

function onActionserverside()
{
  if(
params[0]=="mp")
  {
    
player.mp+=clientr.meditatelevel;
    if(
player.mp==99)
      {
        
player.mp=100;
      }
    if(
player.mp+clientr.meditatelevel>100)
    {
      while(
player.mp>100)
      {
        
player.mp++;
      }
    }
  }
  if(
params[0]=="levelup")
  {
    
clientr.meditatelevel+=2;
    
player.chat="Level up!";
    if(
clientr.meditatelevel>=25)
    {
      
clientr.meditatelevel=25;
    }
  }
}
//#CLIENTSIDE
function onWeaponfired()
{
  
this.on=1;
  
ths=is.ok=1;
  if(
clientr.meditatelevel==0)
  {
    
triggeraction(0,0,"serverside","Spells/Meditate","levelup");
  }
  else
  {
    
this.rand=int(random(0,75));
    if(
this.rand==3)
    {
      
triggeraction(0,0,"serverside","Spells/Meditate","levelup");
    }
    
setani(meditate,NULL);
    if(
player.mp<100)
    {
      
freezeplayer(.05);
      
settimer(.05);
    }
  }
}
function 
onTimeout()
{
  
this.light=.1;
  
showimg(5,"light12.png",player.x-2.5,player.y-2.5);
  
changeimgcolors(5,1,1,1,this.light);
  if(
this.ok==1)
  {
    
this.light+=.1;
  }
  else if(
this.ok==0)
  {
    
this.light-=.1;
  }
  if(
this.light>=.9)
  {
    
this.light-=.1;
    
this.ok=0;
  }
  if(
this.light<=.1)
  {
    
this.light+=.1;
    
this.ok=1;
  }
  
freezeplayer(.1);
  
setani meditate,;
  if(
player.mp<100)
  {
    
triggeraction(0,0,"serverside","Spells/Meditate","mp");
  }
  else if(
playermp==100)
  {
    
setani(idle,NULL);
    
freezeplayer(0);
    
settimer(0);
    
hideimg(5);
    
this.on=0;
    return 
0;
  }
  function 
onKeypressed()
  {
    if(
params[1]=="A")
    {
      
setani(idle,NULL);
      
freezeplayer(0);
      
settimer(0);
      
hideimg(5);
      
this.on=0;
      
params[1]=0;
      return 
0;
    }
  }
  if(
player.mp<100 && this.on==1)
  {
    
settimer(.1);
  }



contiga 07-22-2006 08:49 PM

Quote:

Originally Posted by excaliber7388
This is the script that's doing it.
PHP Code:

  // **** here 


Lol! function onKeyPressed() in function onTimeout()? x_x

Also setting gani to idle, and freezing when A is hold down, wouldn't support pulling or carrieng something haha.


All times are GMT +2. The time now is 12:54 AM.

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