Jump to content
  • 0

Vote NPC


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

anyone can make script like poll vote npc

gm can add question example like this

-should we make no delay?

and gm can add 2 answer

-Yes

-No

gm also can reset the question after finish the vote

thx

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Here try this, Vote NPC v1.0!!!

Features:

  • Config has been made as dynamically as possible.
  • Delay, Max Answers, Max Votes at once, Max letters per Vote,
  • Max letters per Answers can be set too.

Settings Overview:

set .votes,3; // Max Votes at the same time, Maximum 128!!!
set .vote_q_max,15; // Maxium letters for the question
set .vote_a,2; // Max Answers possible
set .vote_a_max,5; // Maxium letters for the answers
set .vote_delay,86400; // Delay in seconds, default 1 day (86400 Seconds)
set .vote_limit,1; // Each player can only once per Vote: 1 = On / 0 = Off
set .gm,60; // GM Access Level

I hope I was able to satisfy you :).

I will also release this script as public, so that you know, I kinda liked the idea^^.

Regards,

Chris

Edited by llchrisll
  • 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:  

sir, in this script , the gm access level is not well-functioning i think?

i set it to 60, and login a normal player account, and I can delete the votes lol, what's wrong in this one ? /hmm

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:  

how you load the script ? are you using rAthena ?

if you are not using rAthena, you have to restart or @reloadscript

because, by default rAthena will load the OnInit part even though you load the npc using @loadnpc

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:  

Yap. I am using rAthena.

It loads the OnInit by default, indeed. now i know. lol =) thx for the tip.

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
Answer this question...

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