Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-10-2011, 09:22 PM
callimuc callimuc is offline
ジ
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Some question

So I´m working on with my movement (still improving dusty´s bare bone movement) and I got up to this:

I tried making a DisableMove(); command, which will be like DisableDefMovement(); (that worked so far) and now I wanted to make it set a gani like DisableMove("walk");. Here´s the scripts parts:


PHP Code:
function onActionServerside() {
  if (
params[0] == "DisableMove") clientr.move = false;
}

//#CLIENTSIDE
public function DisableMove(ani) {
  
triggerserver("gui", name, "DisableMove");
  if (
ani != NULL) setani(ani, NULL);
} 
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/test") DisableMove("walk");
} 
PHP Code:
//#CLIENTSIDE
function onTimeOut() {
  
//movement stuff similar to dustys bare bone one. Suggesting to take a look there (link below)
  
if (clientr.move == true) setani(client.mode, NULL); // set the characters animation
} 
(link >here<)


I always have to say twice /test to make the gani set. Why won´t it work at the first time? How can I fix it?
__________________
MEEP!
Reply With Quote
 


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 12:43 PM.


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