Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prontera,x,y,z script Bug & Feedback 999,{
- if(getgmlevel > 0) goto GMmenu;
- mes "Hello, you can report any bug and give feedbacks to me";
- menu "Feedback",menu_f,"Bug Report",menu_b;
- menu_f:
- set @type$,"Feedback";
- goto menu_last;
- menu_b:
- set @type$,"Bug Report";
- goto menu_last;
- menu_last:
- next;
- mes "Write your "+@type$+".";
- input @feedback$;
- next;
- mes "This is your "+@type$+" : ";
- mes "----------------------";
- mes @feedback$;
- mes "----------------------";
- next;
- mes "Are you sure this is the right one ?";
- menu "Yes",fb_y,"No",fb_n;
- fb_y:
- next;
- //Simple Check (easily bypassed)
- mes "Please authorize whether you're a BOT";
- set @num1,rand(0,999);
- set @num2,rand(0,999);
- mes "^FF0000"+@num1+"^000000 + ^0000FF"+@num2+"^000000 = ?";
- input @num3;
- if (@num3 != (@num1+@num2)) { end; }
- query_sql "INSERT INTO `feedback` (`report`,`type`,`submitter`) VALUES (`"+@feedback$+"`,`"+@type$+"`,`"+strcharinfo(0)+"`)";
- next;
- mes "We have successfully taken your feedback";
- end;
- fb_n:
- end;
- GMMenu:
- mes "What can I do for you sir ?";
- menu "Check Bug Report",gm_bug,"Check Feedbacks",gm_feed,"Delete Logs",gm_delete,"Nothing",gm_close;
- gm_bug:
- query_sql "SELECT `id`, `report`, `submitter` FROM `f_b_report` WHERE type='Bug Report'", @id, @report$, @submitter$";
- for(set @i, 0; @i < getarraysize(@id); set @i, @i+1)
- {
- mes "From: ^FF0000Player^000000 ^0000FF"+@submitter$[@i]+"^000000";
- mes "Type: Bug Report";
- mes "Report: "+"@report$[@i]+".";
- mes "********************************";
- }
- next;
- goto GMMenu;
- gm_feed:
- query_sql "SELECT `id`, `report`, `submitter` FROM `f_b_report` WHERE type='Feedback'", @id, @report$, @submitter$";
- for(set @i, 0; @i < getarraysize(@bug_id); set @i, @i+1)
- {
- mes "From: ^FF0000Player^000000 ^0000FF"+@submitter$[@i]+"^000000";
- mes "Type: Feedback";
- mes "Report: "+"@report$[@i]+".";
- mes "********************************";
- }
- next;
- goto GMMenu;
- gm_delete:
- next;
- mes "Type the ID of the Reports you want to delete";
- mes "Input 000 to end";
- query_sql "SELECT `id`, `type`, `report`, `submitter` FROM `f_b_report` WHERE type='Feedback'", @id, @type$, @report$, @submitter$";
- for(set @i, 0; @i < getarraysize(@bug_id); set @i, @i+1)
- {
- mes "From: ^FF0000Player^000000 ^0000FF"+@submitter$[@i]+"^000000";
- mes "Type: "+@type$+".";
- mes "Report: "+substr(@report$[@i], 1, 20)+".....";
- mes "********************************";
- }
- input @gm_del;
- if (@gm_del == 000) end;
- query_sql "DELETE from `f_b_report` WHERE id='"+@gm_del+"";
- goto gm_delete;
- gm_close:
- end;
- OnInit:
- if($bugfeedbacksql == 1) end;
- query_sql "CREATE TABLE `f_b_report` (`id` int(9) NOT NULL DEFAULT '0',`type` varchar(11) NOT NULL, `report` varchar(100) NOT NULL,`submitter` varchar(30) NOT NULL,PRIMARY KEY (`id`)) ENGINE=MyISAM;";
- set $bugfeedbacksql,1;
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement