Jump to content

Utility: Changelog NPC


whitesn

Recommended Posts


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

This script will help your player not to lose track from the changes you have made. Code is still messy though, I'm still learning the basics and I hope you guys can give me some feedbacks /ok

 

5bF3SB7.gif

 

 

Features

• Display Changelog in sequence 1.1, 1.2, 1.3, until 1.9 then 2.0, 2.1.....

• Edit a specific log

• Remove a specific log

• Remove all the logs

• Some simple configuration

• to be added later....

 

How to use ?

1. Open your phpmyadmin and execute this SQL Query

 

CREATE TABLE `changelog` (
  `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
  `changelog` VARCHAR(300) NOT NULL,
  `date` VARCHAR(30) NOT NULL,
  `author` VARCHAR(24) NOT NULL,
  PRIMARY KEY (`id`)
)
ENGINE = InnoDB;
 

2. Download the attachment below, put it in your npc folder and add it to scripts_custom.conf

 

3. Configuration (optional)

 

// ------------- Inline Configuration -----------------
set .npcname$,"[ ^3a68ffChangelog^000000 ]";
set .minGMLevel,99;        // The minimum level of GM to make, edit, or remove a log.
set .broadcast,1;        // 0=Disabled || 1=Enabled, broadcast when a GM edit / add a Change Log.
set .loglimit,5;        // The Limit of Changelogs displayed
end;
// ----------------------------------------------------
 

4. Restart your server or just type @reloadscript in game.

 

changelog.txt

changelog.txt

Edited by 2essy2killu
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

post-12126-0-70243800-1376383465_thumb.png

 

hello sir.

i have a problem.

after i add new log.

there is no exit button there. so i have to use @go 0 to back to hometown.

please help me.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

attachicon.gifnobutton.png

 

hello sir.

i have a problem.

after i add new log.

there is no exit button there. so i have to use @go 0 to back to hometown.

please help me.

Can you give me the error message on your map server?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

attachicon.gifnobutton.png

 

hello sir.

i have a problem.

after i add new log.

there is no exit button there. so i have to use @go 0 to back to hometown.

please help me.

Can you give me the error message on your map server?

 

no error. but weird no button there sir. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

no error. but weird no button there sir. 

 

Uhh, I tested it already and it's working fine, try restart the server or reloadscript

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

no error. but weird no button there sir. 

 

Uhh, I tested it already and it's working fine, try restart the server or reloadscript

 

i have try @reloadscript.

but restart server not yet.

i will restart on this saturday and give you a feedback. thanks alot sir :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  193
  • Reputation:   14
  • Joined:  12/02/11
  • Last Seen:  

 

i have try @reloadscript.

but restart server not yet.

i will restart on this saturday and give you a feedback. thanks alot sir :)

 

I've updated the file, but I think it's the latest file I've tried and it's working fine on me o.o

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

make sure you add "close;" or "end;" in your respective line of NPC script.

Edited by jordan
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...