Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread Tools Search this Thread Display Modes
Old 07-20-2013, 08:11 AM
Gunderak Gunderak is offline
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Comments change notification

Basically alerts you when your comments change (when you first log on rc).
PHP Code:
public function NewRC(acc){
//Let NC messages send first..
temp.comment this.GetComments(acc);
md5(comment) != this.(@acc)){
acc.sendtorc("Your comments have changed since you last logged on.");
this.(@acc) = md5(comment);
temp.path format("accounts/%s/%s.txt"stac);
temp.file temp.file.tokenize("\r\n");
temp.line temp.file){

This can be used in conjunction with Andrews playercontrol code.
For an example if the npc was named Comments, in the playercontrol code after the line this.rcplayers.add(;
PHP Code:
The NPCServer must have these rights in order for it to work.
NPC Code:
r accounts/*
r accounts/*/*
r accounts/*/*/*


Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion

Last edited by Gunderak; 07-21-2013 at 03:06 AM..
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 09:12 AM.

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