[Help] Voting Reward

10/09/2011 00:08 WolvesMaster#1
i got my NPC for voting in most places in cronus and market in my server but i want to make who vote get a reward E.X : 1 vote = 50k EPs

i searched for it but i can't find anything can help so hope someone help in that

another problem faces me too

i changed the bosses drops in gobi desert as good drops like SpecialEXPballs Bags but i wanted to make an event that the monsters in cata drops the same thing or anything else instead of 2700 EPcards and i changed the drops from cq_dropitemrule but didn't changed so where can i exchange these cards ?

thx :handsdown:
Wo|F[PM]
10/09/2011 00:43 Manly393#2
1. You need to learn about cq_action to make a reward and there are many, many, many, many threads about that exact topic. Search again.

2. Item dropping can be done 2 ways: the normal dropitemrule way, and the secondary cq_action way. Once again you need to search the forums for information about this.

People who make servers need to stop asking for stuff to be given out. It's YOUR server YOU need to figure stuff out on it. The more you learn and sort out on your own the better off you will be.
10/09/2011 01:22 WolvesMaster#3
i searched more and more but can't find anything and i tried to figure it out myself but don't know how so i make a thread in this helping forum if u know so tell me if don't so i don't need advices and thx
10/09/2011 05:20 Marcus*#4
prob something like this
Code:
INSERT INTO `cq_action` VALUES ('5846200', '5846201', '0', '101', '0', 'Hi~there.~You~can~vote~for~us~every~12~hours~');
INSERT INTO `cq_action` VALUES ('5846201', '5846202', '0', '102', '0', 'Vote! 5846203');
INSERT INTO `cq_action` VALUES ('5846202', '4000026', '0', '102', '0', 'Naw~thanks 0');
INSERT INTO `cq_action` VALUES ('5846203', '5846204', '0', '1041', '0', '[YOUR SITE ]');
INSERT INTO `cq_action` VALUES ('5846204', '5846205', '0', '125', '2011', 'Congratulations! %user_name has voted for [YOUR SERVER NAME]');
INSERT INTO `cq_action` VALUES ('5846205', '0', '0', '1001', '0', 'e_money += 50000');


INSERT INTO `cq_task` VALUES ('5846200', '5846200', '0000', '', '', '0', '0', '999', '-100000', '100000', '0999', '0000', '0', '-1', '0');
INSERT INTO `cq_task` VALUES ('5846201', '5846201', '0000', '', '', '0', '0', '999', '-100000', '100000', '0999', '0000', '0', '-1', '0');
INSERT INTO `cq_task` VALUES ('5846202', '5846202', '0000', '', '', '0', '0', '999', '-100000', '100000', '0999', '0000', '0', '-1', '0');
INSERT INTO `cq_task` VALUES ('5846203', '5846203', '0000', '', '', '0', '0', '999', '-100000', '100000', '0999', '0000', '0', '-1', '0');



insert INTO `cq_npc` VALUES ('1235479', '0', '0', 'VotingMinister', '0123', '27600', '0', '0', '-1', '1000', '0316', '0416', '5846200', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '0', '0000', '00', '00', '0000', '01', '0000', '0000', '0000', '0000', '0000');
Note: make back ups be4 doin this as i am not 100% sure

oh n heres client side

Code:
[NpcType2760]
Name=VotingNPC
SimpleObjID=783
StandByMotion=0783000100
BlazeMotion=0783000190
BlazeMotion1=0783000190
BlazeMotion2=0783000190
RestMotion=0783000101
Effect=fieldcenterNPC
ZoomPercent=150
Note=Vote|4|us
credits to T.h.u.n.d.e.r his code i just added the ep part
10/09/2011 05:37 ~*Kronic*~#5
^ Creating a cq_action line doesn't do anything when you don't have anything telling it to run... I assume you just forgot to do that though? lol

Code:
INSERT INTO `cq_action` VALUES ('5846204', '5846205', '0', '125', '2011','Congratulations! %user_name has voted for [YOUR SERVER NAME]');
10/09/2011 05:46 Marcus*#6
fixed it just be4 u posted lmao
10/09/2011 11:42 WolvesMaster#7
thx Marcus but still don't give any EPs when i vote i deleted which was in my DB and put urs and still the same thing..hope another way can help
10/09/2011 16:17 WolvesMaster#8
Death can u explain more where to put this or what is this ?
10/09/2011 17:47 Eurion#9
Deaths info had nothing to do with what you wanted. Marcus's way should work fine. Just make sure you change the [YOURSITE] part to your voting websites link.
10/09/2011 18:02 ~*Kronic*~#10
Really Wolves... that script DOES work if you can't figure it out after it being handed to you so nicely by Marcus then I am afraid all hope is lost for you lolololol
10/09/2011 18:41 WolvesMaster#11
hahah lol i put my voting website and i know it must work but what is the problem ? i want to fix it to make more voting :D
10/09/2011 20:37 ~*Kronic*~#12
1. Log into the game as PM
2. Talk to one of the voting NPCs
3. Watch the cq_action info that comes up in chat
4. Fix the problem yourself like everyone else
10/09/2011 22:05 WolvesMaster#13
i know that and i tried to fix it myself but i don't got that e_money += 50000 in the Param !!
10/10/2011 21:47 .Ash#14
I saw a action for opening your web browser to a webpage.. The parameter is the url, so you can put param as the vote page link.
10/14/2011 03:38 Eurion#15
Just so no one else runs into this problem, you can't process actions after a action type of 2011. So here's the fix for it.

Code:
DELETE FROM `cq_action` WHERE id >= 5846200 AND id <= 5846205;

INSERT INTO `cq_action` VALUES 
('5846200', '5846201', '0', '101', '0', 'Hi~there.~You~can~vote~for~us~every~12~hours~'),
('5846201', '5846202', '0', '102', '0', 'Vote! 5846203'),
('5846202', '4000026', '0', '102', '0', 'Naw~thanks 0'),
('5846203', '5846204', '0', '1041', '0', '[Your Vote Site]'),
('5846204', '5846205', '0', '1001', '0', 'e_money += 50000'),
('5846205', '0', '0', '125', '2011', 'Congratulations! %user_name has voted for [YOUR SERVER NAME]');
Credits still goes to Marcus* I just fixed the issue.