Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 06-22-2012, 04:58 AM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
Quote:
Originally Posted by Hezzy002 View Post
When I read your posts I get the feeling you have no idea what you're talking about.
I don't.
Clientside - Doesn't work for serverside.
Serverside - Doesn't work for anything not of .5's
NPC Index - Doesn't work for anything not of .5's
That is what I know.

If it doesn't work, I assume there is a problem somewhere.
Not sure how Graal was built, so I can't say I know what I'm talking about.

Anyway, you guys are more than welcome to test it yourselves.

Test 1 (Assumed it might work since on Clientside it was only one tile off. Meaning part of it was still one tile on for Serverside, and on the top-left corner half) Does not work.
(This test was not tested last time)
PHP Code:
NPC block.png 28 32
function onActionServerside(cmd){
  
findPlayer(cmd).chat "This Works.";
}
function 
onCreated(){
  
setshape(1,32,32);
}
//#CLIENTSIDE
function onCreated(){
  
this.x-=1;
}
function 
onPlayerTouchsMe(){
  
triggeraction(this.x,this.y,"Serverside",player.account);
}
NPCEND 
Test 2 Regular Triggeraction - Works.
PHP Code:
NPC block.png 32 32
function onActionServerside(cmd){
  
findPlayer(cmd).chat "This Works.";
}
function 
onCreated(){
  
setshape(1,32,32);
}
//#CLIENTSIDE
function onPlayerTouchsMe(){
  
triggeraction(this.x,this.y,"Serverside",player.account);
}
NPCEND 
Test 3 Triggeraction with an added .5 on X Serverside - Works.
PHP Code:
NPC block.png 36 32
function onActionServerside(cmd){
  
findPlayer(cmd).chat "This Works.";
}
function 
onCreated(){
  
setshape(1,32,32);
  
this.+= .5;
}
//#CLIENTSIDE
function onPlayerTouchsMe(){
  
triggeraction(this.x,this.y,"Serverside",player.account);
}
NPCEND 
Test 4 Triggeraction with an added .3 on the Serverside - Does not work.
PHP Code:
NPC block.png 40 32
function onActionServerside(cmd){
  
findPlayer(cmd).chat "This Works.";
}
function 
onCreated(){
  
setshape(1,32,32);
  
this.+= .3;
}
//#CLIENTSIDE
function onPlayerTouchsMe(){
  
triggeraction(this.x,this.y,"Serverside",player.account);
}
NPCEND 
Test 5 Triggeraction with an added .3 on the NPC - Does not work.
(This test was not tested last time)
PHP Code:
NPC block.png 44.3 32
function onActionServerside(cmd){
  
findPlayer(cmd).chat "This Works.";
}
function 
onCreated(){
  
setshape(1,32,32);
}
//#CLIENTSIDE
function onPlayerTouchsMe(){
  
triggeraction(this.x,this.y,"Serverside",player.account);
}
NPCEND 
Slightly over two minute video.


Making it an NPC with its own ID is not part of the problem so it was not a test I was going to do. Not sure if NPC Characters that have interactions Clientside to Serverside should all be NPCs lol...

The only reason I came up with this is because my NPC randomly stopped working when I had her look like she was sitting correctly, -.3 tiles on the Y axis. The first time I started over, and on the second time I realized what was causing it.
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz



Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:45 AM.


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