Jump to content
  • 0

Question

Posted

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

4 answers to this question

Recommended Posts

Posted (edited)

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
Posted

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

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...