<?php
/*
* Etunia Voting System Lite
* Copyright 2009, Kimmy Andersson.
* Edited by TCxAlexsh
*
*/
//The itemName must be the EXACT same name as the item in-game. itemId is the ID of the item, amount is how many they will be getting.
$voteReward = array("itemId" => "penya", "itemId" => 0, "itemAmount" => 3000000);
$vote_allow = '1'
$mssqlServer = "***\SQLEXPRESS";
$mssqlUser = "sa";
$mssqlPass = "***";
$mssqlAccountDBF = "ACCOUNT_DBF";
$mssqlCharacterDBF = "CHARACTER_01_DBF";
?>
<?php
/*
* Etunia Voting System Lite
* Copyright 2009, Kimmy Andersson.
*
*/
if(isset($_POST['doVote']))
{
include_once("class/class.vote.php");
include_once("inc/inc.class_initiate.php");
include_once("inc/inc.config.php");
$mssqlcon = mssql_connect($mssqlServer, $mssqlUser, $mssqlPass);
$eVoteHEAD = "Error!";
if($_POST['etCharacter'] && $eVote->checkIP() && $eVote->checkCharacter($_POST['etCharacter']))
{
$eVote->removeLog($_POST['etCharacter']);
$itemSendResult = $eVote->sendItem($_POST['etCharacter']);
if($itemSendResult)
{
$eVoteHEAD = "Link generated!";
$eVoteMSG = "Click <a href=\"javascript:etOpenVoteWindow()\">here</a> to open the vote window.<br/>The reward will be sent to you after you voted.<br/>If it doesn't appear however, try relogging.";
}
else
$eVoteMSG = "The character doesn't exist!<br/>Please refresh the browser and try again.";
}
else
$eVoteMSG = "Either you left the character field blank, or you are trying to vote from the same character more than once within 12 hours.<br/>Please refresh the browser and try again.";
echo("<p>{$eVoteHEAD}</p>{$eVoteMSG}");
}
else
{
include_once("class/class.vote.php");
include_once("inc/inc.class_initiate.php");
include_once("inc/inc.config.php");
$mssqlcon = mssql_connect($mssqlServer, $mssqlUser, $mssqlPass);
if($eVote->checkIP())
{
?>
<script type="text/javascript" src="vote/js/jquery.js"></script>
<script type="text/javascript" src="vote/js/vote.js"></script>
<div id="et_vbutton" onclick="etLiteGetVoteDialog();" style="background-image: url('vote/images/votenow.png'); text-align: center; width: 250px; height: 150px; position: absolute; top: 0px; right: 20px; cursor: pointer;">
<div id="et_vcharenter" style="background-color: #F8F8F8; margin: 10px auto; width: 200px; height: 70px; text-align: center; display: none;">
Character Name:<br/>
<input type="text" id="etCharField"/><br/>
<input type="submit" id="etCharSubmit" onclick="etLiteDoVoteDialog();" value="Vote!"/>
</div>
</div>
<?php
}
}
?>
<?php
/*
* Etunia Voting System Lite
* Copyright 2009, Kimmy Andersson.
* Edited by TCxAlexsh
*
*/
//The itemName must be the EXACT same name as the item in-game. itemId is the ID of the item, amount is how many they will be getting.
$voteReward = array("itemId" => "penya", "itemId" => 0, "itemAmount" => 3000000);
$vote_allow = '1'
[COLOR="Red"]$mssqlServer = "***\SQLEXPRESS";
$mssqlUser = "sa";
$mssqlPass = "***";
$mssqlAccountDBF = "ACCOUNT_DBF";
$mssqlCharacterDBF = "CHARACTER_01_DBF";[/COLOR]
?>
Du musst statt dem Rotem Text deine MSSSQL Daten eintragen.
Script Problem 12/19/2010 - WoW Private Server - 2 Replies Guten Tag!
Core: ArcEmu
Rev. 3930
Scripts: ArcScripts
Script: Habe ein Script erstellt welches wie ein Buzzer Spiel funktioniert. Es sind mehrere GO's statisch da und wer einen dieser Buzzer drückt löst ein Event aus welches einen NPC Spawnt der dann den Namen des Spieler sagt welcher gedrückt hat. Nach 5 Sekunden despawnt der wieder und das Event ist gesperrt bis ein GM auf nen eigenen buzzer drückt um es zu reseten.
Problem: Das Script funktioniert einwandfrei, zumindest die...
Problem VB 10 Patcher Script Problem 09/20/2010 - .NET Languages - 8 Replies Hayho liebe Com.
ich habe mal wieder einen ganz netten Patcher gescriptet, für einen metin2 P Server,
da es nicht mein erster is, hab ich echt kp was da vorliegt, Hier der Script an sich:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles...
[HOW-TO]Hp-Script+Admin-script (weekly-updatet) problem! 06/21/2010 - Metin2 Private Server - 11 Replies hallo leute ich hab ein problem und zwar bei dem hp script von masterboss kommt der fehler :
http://img541.imageshack.us/img541/8140/24955249. png
und wenn ich dann die datei öffne und in die zeile gehe kommt:
while($row = mysql_fetch_array($ergebnis))
kann mir jmd helfen?
Script problem 06/10/2010 - AutoIt - 2 Replies hi..
ich wollte mir nen bot für nostale schreiben... doch i.wo haperts da bei mir bzw autoit will das ding nich so wirklich ausführen und gibt mir folgenden fehler:
Er sagt:Variable used without being declared ( zeile 49)
deutsch: Variable verwendet, ohne dass erklärt
hier mal mein script:
Hoffe mir kann jmd hfeln...
MySQL error for voting script & register page 04/27/2010 - Dekaron Private Server - 2 Replies well this just happen it was working fine then it just went bad
then the register page messed up to
idk why it did this it was working fine for days then it just does this