ScapeFX Forums

Support forums for ScapeFX Mud Client

Login |  Register

Post new topic Reply to topic  [ 2 posts ] 

Mon Aug 31, 2009 5:56 pm

Offline
Joined: Wed Aug 26, 2009 4:16 pm
Posts: 1

How do I make this just parse my inputted commands? Currently I can make it find the command I want, and run the script based on that, but it doesn't let any commands reach the game. Seems a bit pointless to use this method if it prevents you from playing the game.



Top Top
  Profile

Sat Sep 12, 2009 1:02 pm

Offline
Site Admin
Joined: Wed Aug 12, 2009 11:14 am
Posts: 25

If you want the script to forward the command to the server, make it return the actual String that should be sent onwards.

If the onCommand() method returns null it will gag the command and never send it to the server.

This way you can modify the command in the script before it it sent if you for some reason want it to be changed. Alias scripts or similar could be done this way.



Top Top
  Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

    Foruzstyleshout