Jump to content

Market Bulletin (SQL)


Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   23
  • Joined:  11/29/11
  • Last Seen:  

This is my 2nd script release /meh

Market Bulletin (SQL)

Version 1.9

Compatibility

- rAthena SVN

Requirement

- MySQL

- run this SQL on your RO database or import the attached .sql file

CREATE TABLE IF NOT EXISTS `market_bulletin` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `type` varchar(1) NOT NULL DEFAULT 'O',
 `char_name` varchar(23) NOT NULL,
 `message` varchar(70) NOT NULL,
 `post_time` datetime NOT NULL DEFAULT '2012-01-01 00:00:00',
 PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `market_bulletin`
--

INSERT INTO `market_bulletin` (`id`, `type`, `char_name`, `message`, `post_time`) VALUES
(1, 'S', 'Testing', 'Test message', '2012-01-01 00:00:00');

Description

- A bulletin where players can read and post market offers like buying, selling, trading and others.

Additional Info

- Player can have a maximum of 5 posts by default.

- Posting fee is 1M. Player can also post and broadcast at the same time. Broadcasting fee is 3M zeny.

- Includes managing of posts where the player can edit, delete or broadcast their posts.

- Also includes search function.

- Posts will be deleted after 72 hours (3 days) by default.

Special Thanks

- Venom

---

Please report bugs here if you found any.

Market_Bulletin_SQL.txt

mbsql.sql

  • Upvote 7
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  74
  • Reputation:   16
  • Joined:  05/08/12
  • Last Seen:  

@ Enzo0714

Thank you for this, testing now & so far all is functioning properly, I really like this script a lot and appreciate the share! If I were

to make a suggestion to make this even more excellent it would be to add a GM Menu for deletion of posts without having to edit

SQL Tables manually. Players could potentially abuse the message input on servers who do not use chat and textual filters.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   23
  • Joined:  11/29/11
  • Last Seen:  

Thanks GM Djinsu. Nice suggestion /no1 I'll try adding a separate NPC within the file.

Link to comment
Share on other sites

  • 6 months later...

  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

sir how to use this? sorry newbie here

This is my 2nd script release ani_ok.gif

Market Bulletin (SQL)

Version 1.9

Compatibility

- rAthena SVN

Requirement

- MySQL

- run this SQL on your RO database or import the attached .sql file

CREATE TABLE IF NOT EXISTS `market_bulletin` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `type` varchar(1) NOT NULL DEFAULT 'O',
 `char_name` varchar(23) NOT NULL,
 `message` varchar(70) NOT NULL,
 `post_time` datetime NOT NULL DEFAULT '2012-01-01 00:00:00',
 PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--
-- Dumping data for table `market_bulletin`
--

INSERT INTO `market_bulletin` (`id`, `type`, `char_name`, `message`, `post_time`) VALUES
(1, 'S', 'Testing', 'Test message', '2012-01-01 00:00:00');

Description

- A bulletin where players can read and post market offers like buying, selling, trading and others.

Additional Info

- Player can have a maximum of 5 posts by default.

- Posting fee is 1M. Player can also post and broadcast at the same time. Broadcasting fee is 3M zeny.

- Includes managing of posts where the player can edit, delete or broadcast their posts.

- Also includes search function.

- Posts will be deleted after 72 hours (3 days) by default.

Special Thanks

- Venom

---

Please report bugs here if you found any.

sir how to use this? sorry newbie here

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  74
  • Reputation:   16
  • Joined:  05/08/12
  • Last Seen:  

You Paste the SQL Syntax into your SQL directory within a New Query and commit it to

your directory to change tables to accommodate the SQL within the textual script provided.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

You Paste the SQL Syntax into your SQL directory within a New Query and commit it to

your directory to change tables to accommodate the SQL within the textual script provided.

ill paste it in the SQL directory where tha Main.SQL is in??

then ill make a new schema for the market bulletin.sql?

then paste the market bulletin.txt in the NPC custom folder???

correct me sir if i mistaken...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  209
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

You Paste the SQL Syntax into your SQL directory within a New Query and commit it to

your directory to change tables to accommodate the SQL within the textual script provided.

ill paste it in the SQL directory where tha Main.SQL is in??

then ill make a new schema for the market bulletin.sql?

then paste the market bulletin.txt in the NPC custom folder???

correct me sir if i mistaken...

open phpmyadmin

open your ragnarok table

import new sql ( market bulletin.sql )

open your custom npc folder

insert market bulletin npc there

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

You Paste the SQL Syntax into your SQL directory within a New Query and commit it to

your directory to change tables to accommodate the SQL within the textual script provided.

ill paste it in the SQL directory where tha Main.SQL is in??

then ill make a new schema for the market bulletin.sql?

then paste the market bulletin.txt in the NPC custom folder???

correct me sir if i mistaken...

open phpmyadmin

open your ragnarok table

import new sql ( market bulletin.sql )

open your custom npc folder

insert market bulletin npc there

what if i only use my SQL database.. and im running my server on LAN?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  74
  • Reputation:   16
  • Joined:  05/08/12
  • Last Seen:  

You import the SQL Code provided with this script directly into your main directory, the same directory all of your other ragnarok SQL files were originally imported to.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

You import the SQL Code provided with this script directly into your main directory, the same directory all of your other ragnarok SQL files were originally imported to.

sir im confused sorry! ill put the SQL in the SQL files.. then i will add a new schema for the MARKET.SQL? or ill repeat making a schema for main.sql?

sorry newbie T_T

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:  

@2834, u should import the sql files on the ragnarok database. then u execute. after that pastu the script. and load it on your game .done.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

thanks for the help done! ^^

Trial and error method

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Working! 5/5 Rated

Link to comment
Share on other sites

  • 4 years later...

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   0
  • Joined:  05/27/17
  • Last Seen:  

how to change broadcast color to a different one ? for example white

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...