Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-27-2015, 11:16 AM
rockstar rockstar is offline
Zone iPhone Gani
rockstar's Avatar
Join Date: Aug 2014
Location: Australia
Posts: 21
rockstar is an unknown quantity at this point
Send to irc tab assistance

hey all, im not script ninja so ill need some assistance here if ya's don't mind.
Ive got a report system working (thanks to another staff member) and a tab system working (thanks Carlito).
Ive created a tab specifically for reports but am unaware on how to echo the report to the other tab.
any help is appreciated.
TIA
__________________
GraalOnline Code of Conduct || GraalOnline User Agreement
Need any assistancce with your GraalOnline account? Go to the support page.
Contact Me:
Email
Reply With Quote
  #2  
Old 01-27-2015, 02:09 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
it's pretty easy (using temp.flags for better understanding)

PHP Code:
temp.pl findPlayer(player2receiveMessage);
temp.nick temp.pl.nick;
temp.tab "Reports";
temp.message "Incomming report!";

temp.pl.sendtoirc("privmsg"temp.nicktemp.tabtemp.message); 
The message 'Incomming report!' would appear in the 'Reports' tab with a nick (the green part at the beginning) of your 'temp.pl.nick'.

Additional info:

PHP Code:
TServerPlayer.sendtoirc(strstr) - sends an irc message to the player/RC,
parameters are command and parameterspossible commands are join (channel),
part (channel), topic (channel,topic), privmsg (source,channel,message),
notice (source,channel,message
__________________
MEEP!
Reply With Quote
  #3  
Old 01-28-2015, 12:21 AM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
What your looking for is

PHP Code:
  temp.message "Test";
  (
"RC_Tabs").tabecho("Reports""Report:"temp.message); 
RC_Tabs is the database the public function is located at. The first param is the tab name, second param is the name of your echo sorta like "[NPC-Control]:". The last param is the the message you want to be displayed in the tab. Its best to use this method because it works with client-rc on your server into specific tabs.
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote
  #4  
Old 01-28-2015, 10:17 AM
rockstar rockstar is offline
Zone iPhone Gani
rockstar's Avatar
Join Date: Aug 2014
Location: Australia
Posts: 21
rockstar is an unknown quantity at this point
Thanks MD.
__________________
GraalOnline Code of Conduct || GraalOnline User Agreement
Need any assistancce with your GraalOnline account? Go to the support page.
Contact Me:
Email
Reply With Quote
  #5  
Old 01-28-2015, 10:36 AM
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
Quote:
Originally Posted by MysticalDragon View Post
What your looking for is

PHP Code:
  temp.message "Test";
  (
"RC_Tabs").tabecho("Reports""Report:"temp.message); 
RC_Tabs is the database the public function is located at. The first param is the tab name, second param is the name of your echo sorta like "[NPC-Control]:". The last param is the the message you want to be displayed in the tab. Its best to use this method because it works with client-rc on your server into specific tabs.
Oh wow, never knew that existed. Does it provide any more functions for us to use?
__________________
MEEP!
Reply With Quote
  #6  
Old 01-29-2015, 02:44 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
@Callimuc - he made a DB on his server with the function in.

It's not an actual global script
__________________
Reply With Quote
Reply


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 07:06 AM.


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