Jump to content

Request NPC [1.4.1]


tr0n

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

@tr0n will there be any chance you can add a Reply function? for the Requests?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

I'm busy at the moment but I think about it.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

can you make 1 but txt i not using sql pls make 1 for txt ty

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

UPDATE 1.4.1

Changelogs:

- Added Answer feature for GMs

- Added "My Requests" for player

__________________________________________________________________________

can you make 1 but txt i not using sql pls make 1 for txt ty

Sry I won't support a txt version for this script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

To everyone who uses @loadnpc to load up an NPC, you can do so now to trigger the OnInit event as this new feature was recently added to rAthena.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   7
  • Joined:  04/24/12
  • Last Seen:  

Thank you~! Works as intended.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  9
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

Also usable script for player that lazy post problem / error / suggestion at Forum Website.. Thanks again tr0n for sharing the script.. /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   5
  • Joined:  06/25/12
  • Last Seen:  

This script works flawlessly. Awesome work tr0n! /no1

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  311
  • Reputation:   46
  • Joined:  11/06/11
  • Last Seen:  

 DB Error - Field 'answer' doens't have a default value? i'm using 3CeaM/eathena any help ?s
Edited by vBrenth
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

 DB Error - Field 'answer' doens't have a default value? i'm using 3CeaM/eathena any help ?s
[/quote]
try change
[code]
`answer` TINYTEXT NOT NULL
[/code]

into this

[code]
`answer` TINYTEXT NOT NULL DEFAULT ''
[/code]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  311
  • Reputation:   46
  • Joined:  11/06/11
  • Last Seen:  

Emistry it gives me new error..

saying 'answer' cannot have default value.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

previous versions working fine, but got prob with this 1.4.1

 DB Error - Field 'answer' doens't have a default value?

same, but using rAthena ofc.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

previous versions working fine, but got prob with this 1.4.1

 DB Error - Field 'answer' doens't have a default value?

same, but using rAthena ofc.

read emistry answer

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

previous versions working fine, but got prob with this 1.4.1

 DB Error - Field 'answer' doens't have a default value?

same, but using rAthena ofc.

read emistry answer

read the post after emistry's answer. xD

Emistry it gives me new error..

saying 'answer' cannot have default value.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

erm...vBrenth had solved his problem by switching to this...

https://rathena.org/board/index.php?/files/file/2498-%7B?%7D/

Sorry tr0n >.<

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

sorry too sir, tr0n. >.> cuz i just got errors.. sorry again! >.<

thanks emistry!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

which error do you exactly experience now on rAthena with 1.4.1 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  198
  • Reputation:   47
  • Joined:  08/01/12
  • Last Seen:  

vBrenth stated it sir..

 DB Error - Field 'answer' doens't have a default value? i'm using 3CeaM/eathena any help ? 

but mine, ofc, is rAthena..

Emistry it gives me new error..

saying 'answer' cannot have default value.

Edited by Sperm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   1
  • Joined:  08/15/12
  • Last Seen:  

To fix your 'answer' problem,

Replace

query_sql "INSERT INTO `request` (`account_id`, `char_name`, `time`, `type`, `message`) " +
"VALUES ("+getcharid(3)+", '"+strcharinfo(0)+"', '"+gettimestr("%Y-%m-%d %H:%M:%S",21)+"', 'Ingame Question', '"+.@requestinput$+"')";

With

query_sql "INSERT INTO `request` (`account_id`, `char_name`, `time`, `type`, `message`,`answer`) " +
"VALUES ("+getcharid(3)+", '"+strcharinfo(0)+"', '"+gettimestr("%Y-%m-%d %H:%M:%S",21)+"', 'Ingame Question', '"+.@requestinput$+"', 'Not Yet Answered')";

The problem is when the INSERT query is called, the `answer` field is not being filled in. (It is Null)

I suggest in the future revisions, `answer` should be able to be left null.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

To fix your 'answer' problem,

Replace

query_sql "INSERT INTO `request` (`account_id`, `char_name`, `time`, `type`, `message`) " +
"VALUES ("+getcharid(3)+", '"+strcharinfo(0)+"', '"+gettimestr("%Y-%m-%d %H:%M:%S",21)+"', 'Ingame Question', '"+.@requestinput$+"')";

With

query_sql "INSERT INTO `request` (`account_id`, `char_name`, `time`, `type`, `message`,`answer`) " +
"VALUES ("+getcharid(3)+", '"+strcharinfo(0)+"', '"+gettimestr("%Y-%m-%d %H:%M:%S",21)+"', 'Ingame Question', '"+.@requestinput$+"', 'Not Yet Answered')";

The problem is when the INSERT query is called, the `answer` field is not being filled in. (It is Null)

I suggest in the future revisions, `answer` should be able to be left null.

good idea, I think I will add this.

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