Lord Aufstellung nicht möglich

    • Werbung zur Unterstützung des Forums ( Bitte AddBlocker deaktivieren )

    • Darki1;115149 schrieb:

      Jetzt denk doch mal selber nach in der Table wird geregelt wann Lord gewählt werden kann


      Hast völlig Recht Twilight Owned :P

      @Twilight


      Das is ne Table, du Idiot.

      Nehmt doch einfach die V15 Datenbank von Ankashi, zomfg ~~


      Musst hier keine als Idioten bezeichen..

      Hier den kannste beleidigen:

      Motbot Dein Chat Freund <-- Der hat immer Zeit und ist immer Online!Ich glaube er steht auf Twilights!
    • Darki1;115149 schrieb:

      Jetzt denk doch mal selber nach in der Table wird geregelt wann Lord gewählt werden kann


      Das wird in der election.inc geregelt.

      @Doubleowned.

      Quellcode

      1. USE [CHARACTER_01_DBF]
      2. GO
      3. /****** Object: Table [dbo].[tblElection] Script Date: 05/01/2010 14:44:40 ******/
      4. SET ANSI_NULLS ON
      5. GO
      6. SET QUOTED_IDENTIFIER ON
      7. GO
      8. SET ANSI_PADDING ON
      9. GO
      10. CREATE TABLE [dbo].[tblElection](
      11. [s_week] [char](6) NULL,
      12. [chrcount] [int] NULL
      13. ) ON [PRIMARY]
      14. GO
      15. SET ANSI_PADDING OFF
      16. GO
      17. ALTER TABLE [dbo].[tblElection] ADD CONSTRAINT [DF_tblElection_chrcount] DEFAULT ((0)) FOR [chrcount]
      18. GO
      19. /****** Object: Table [dbo].[tblLord] Script Date: 05/01/2010 14:45:04 ******/
      20. SET ANSI_NULLS ON
      21. GO
      22. SET QUOTED_IDENTIFIER ON
      23. GO
      24. CREATE TABLE [dbo].[tblLord](
      25. [nServer] [int] NOT NULL,
      26. [idElection] [int] NOT NULL,
      27. [idLord] [int] NOT NULL,
      28. [s_date] [datetime] NULL
      29. ) ON [PRIMARY]
      30. GO
      31. ALTER TABLE [dbo].[tblLord] ADD CONSTRAINT [DF_tblLod_s_date] DEFAULT (getdate()) FOR [s_date]
      32. GO
      33. /****** Object: Table [dbo].[tblLordCandidates] Script Date: 05/01/2010 14:45:23 ******/
      34. SET ANSI_NULLS ON
      35. GO
      36. SET QUOTED_IDENTIFIER ON
      37. GO
      38. SET ANSI_PADDING ON
      39. GO
      40. CREATE TABLE [dbo].[tblLordCandidates](
      41. [nServer] [int] NOT NULL,
      42. [idElection] [int] NOT NULL,
      43. [idPlayer] [int] NOT NULL,
      44. [iDeposit] [bigint] NOT NULL,
      45. [nVote] [int] NOT NULL,
      46. [szPledge] [varchar](255) NOT NULL,
      47. [IsLeftOut] [char](1) NOT NULL,
      48. [s_date] [datetime] NULL,
      49. [tCreate] [int] NULL
      50. ) ON [PRIMARY]
      51. GO
      52. SET ANSI_PADDING OFF
      53. GO
      54. ALTER TABLE [dbo].[tblLordCandidates] ADD CONSTRAINT [DF_tblLordCandidates_iDeposit] DEFAULT ((0)) FOR [iDeposit]
      55. GO
      56. ALTER TABLE [dbo].[tblLordCandidates] ADD CONSTRAINT [DF_tblLordCandidates_nVote] DEFAULT ((0)) FOR [nVote]
      57. GO
      58. ALTER TABLE [dbo].[tblLordCandidates] ADD CONSTRAINT [DF_tblLordCandidates_szPledge] DEFAULT ('') FOR [szPledge]
      59. GO
      60. ALTER TABLE [dbo].[tblLordCandidates] ADD CONSTRAINT [DF_tblLordCandidates_IsLeftOut] DEFAULT ('F') FOR [IsLeftOut]
      61. GO
      62. ALTER TABLE [dbo].[tblLordCandidates] ADD CONSTRAINT [DF_tblLordCandidates_s_date] DEFAULT (getdate()) FOR [s_date]
      63. GO
      64. ALTER TABLE [dbo].[tblLordCandidates] ADD CONSTRAINT [DF_tblLordCandidates_tCreate] DEFAULT ((0)) FOR [tCreate]
      65. GO
      66. /****** Object: Table [dbo].[tblLordElection] Script Date: 05/01/2010 14:45:38 ******/
      67. SET ANSI_NULLS ON
      68. GO
      69. SET QUOTED_IDENTIFIER ON
      70. GO
      71. SET ANSI_PADDING ON
      72. GO
      73. CREATE TABLE [dbo].[tblLordElection](
      74. [nServer] [int] NOT NULL,
      75. [idElection] [int] NOT NULL,
      76. [eState] [int] NOT NULL,
      77. [s_date] [datetime] NULL,
      78. [szBegin] [varchar](16) NULL
      79. ) ON [PRIMARY]
      80. GO
      81. SET ANSI_PADDING OFF
      82. GO
      83. ALTER TABLE [dbo].[tblLordElection] ADD CONSTRAINT [DF_tblLordElection_s_date] DEFAULT (getdate()) FOR [s_date]
      84. GO
      85. /****** Object: Table [dbo].[tblLordElector] Script Date: 05/01/2010 14:45:54 ******/
      86. SET ANSI_NULLS ON
      87. GO
      88. SET QUOTED_IDENTIFIER ON
      89. GO
      90. CREATE TABLE [dbo].[tblLordElector](
      91. [nServer] [int] NOT NULL,
      92. [idElection] [int] NOT NULL,
      93. [idElector] [int] NOT NULL,
      94. [s_date] [datetime] NULL
      95. ) ON [PRIMARY]
      96. GO
      97. ALTER TABLE [dbo].[tblLordElector] ADD CONSTRAINT [DF_tblLordElector_s_date] DEFAULT (getdate()) FOR [s_date]
      98. GO
      99. /****** Object: Table [dbo].[tblLordEvent] Script Date: 05/01/2010 14:46:07 ******/
      100. SET ANSI_NULLS ON
      101. GO
      102. SET QUOTED_IDENTIFIER ON
      103. GO
      104. CREATE TABLE [dbo].[tblLordEvent](
      105. [nServer] [int] NOT NULL,
      106. [idPlayer] [int] NOT NULL,
      107. [nTick] [int] NOT NULL,
      108. [fEFactor] [float] NOT NULL,
      109. [fIFactor] [float] NOT NULL,
      110. [s_date] [datetime] NULL
      111. ) ON [PRIMARY]
      112. GO
      113. ALTER TABLE [dbo].[tblLordEvent] ADD CONSTRAINT [DF_tblLordEvent_nTick] DEFAULT ((0)) FOR [nTick]
      114. GO
      115. ALTER TABLE [dbo].[tblLordEvent] ADD CONSTRAINT [DF_tblLordEvent_fEFactor] DEFAULT ((0.0)) FOR [fEFactor]
      116. GO
      117. ALTER TABLE [dbo].[tblLordEvent] ADD CONSTRAINT [DF_tblLordEvent_fIFactor] DEFAULT ((0.0)) FOR [fIFactor]
      118. GO
      119. ALTER TABLE [dbo].[tblLordEvent] ADD CONSTRAINT [DF_tblLordEvent_s_date] DEFAULT (getdate()) FOR [s_date]
      120. GO
      121. /****** Object: Table [dbo].[tblLordSkill] Script Date: 05/01/2010 14:46:22 ******/
      122. SET ANSI_NULLS ON
      123. GO
      124. SET QUOTED_IDENTIFIER ON
      125. GO
      126. CREATE TABLE [dbo].[tblLordSkill](
      127. [nServer] [int] NOT NULL,
      128. [nSkill] [int] NOT NULL,
      129. [nTick] [int] NOT NULL,
      130. [s_date] [datetime] NULL
      131. ) ON [PRIMARY]
      132. GO
      133. ALTER TABLE [dbo].[tblLordSkill] ADD CONSTRAINT [DF_tblLordSkill_nTick] DEFAULT ((0)) FOR [nTick]
      134. GO
      135. ALTER TABLE [dbo].[tblLordSkill] ADD CONSTRAINT [DF_tblLordSkill_s_date] DEFAULT (getdate()) FOR [s_date]
      136. GO
      137. /****** Object: StoredProcedure [dbo].[uspElectionAddDeposit] Script Date: 05/01/2010 14:37:39 ******/
      138. SET ANSI_NULLS ON
      139. GO
      140. SET QUOTED_IDENTIFIER ON
      141. GO
      142. CREATE proc [dbo].[uspElectionAddDeposit]
      143. @nServer int,
      144. @idElection int,
      145. @idPlayer int,
      146. @iDeposit bigint,
      147. @tCreate int
      148. AS
      149. SET NOCOUNT ON
      150. IF EXISTS ( SELECT * FROM tblLordCandidates WHERE nServer = @nServer AND idElection = @idElection AND idPlayer = @idPlayer )
      151. BEGIN
      152. UPDATE tblLordCandidates
      153. SET iDeposit = iDeposit + @iDeposit
      154. WHERE nServer = @nServer AND idElection = @idElection AND idPlayer = @idPlayer
      155. END
      156. ELSE
      157. BEGIN
      158. INSERT INTO tblLordCandidates ( nServer, idElection, idPlayer, iDeposit, szPledge, nVote, tCreate)
      159. VALUES ( @nServer, @idElection, @idPlayer, @iDeposit, '', 0, @tCreate )
      160. END
      161. SET ANSI_NULLS ON
      162. GO
      163. SET QUOTED_IDENTIFIER OFF
      164. GO
      165. /****** Object: StoredProcedure [dbo].[uspElectionBeginCandidacy] Script Date: 05/01/2010 14:38:04 ******/
      166. SET ANSI_NULLS ON
      167. GO
      168. SET QUOTED_IDENTIFIER ON
      169. GO
      170. CREATE proc [dbo].[uspElectionBeginCandidacy]
      171. @nServer int,
      172. @idElection int
      173. AS
      174. SET NOCOUNT ON
      175. IF EXISTS ( SELECT * FROM tblLordElection WHERE nServer = @nServer AND idElection = @idElection )
      176. BEGIN
      177. UPDATE tblLordElection
      178. SET eState = 1
      179. WHERE nServer = @nServer AND idElection = @idElection
      180. END
      181. ELSE
      182. BEGIN
      183. INSERT tblLordElection ( nServer, idElection, eState )
      184. VALUES ( @nServer, @idElection, 1 )
      185. END
      186. SET ANSI_NULLS ON
      187. GO
      188. SET QUOTED_IDENTIFIER OFF
      189. GO
      190. /****** Object: StoredProcedure [dbo].[uspElectionBeginVote] Script Date: 05/01/2010 14:38:17 ******/
      191. SET ANSI_NULLS ON
      192. GO
      193. SET QUOTED_IDENTIFIER ON
      194. GO
      195. CREATE proc [dbo].[uspElectionBeginVote]
      196. @nServer int,
      197. @idElection int
      198. AS
      199. SET NOCOUNT ON
      200. UPDATE tblLordElection
      201. SET eState = 2
      202. WHERE nServer = @nServer AND idElection = @idElection
      203. --SELECT top 1 nRequirement = chrcount from tblElection order by s_week desc
      204. -- 테섭용
      205. SELECT top 1 nRequirement = 0 from tblElection order by s_week desc
      206. SET ANSI_NULLS ON
      207. GO
      208. SET QUOTED_IDENTIFIER OFF
      209. GO
      210. /****** Object: StoredProcedure [dbo].[uspElectionEndVote] Script Date: 05/01/2010 14:38:32 ******/
      211. SET ANSI_NULLS ON
      212. GO
      213. SET QUOTED_IDENTIFIER ON
      214. GO
      215. CREATE proc [dbo].[uspElectionEndVote]
      216. @nServer int,
      217. @idElection int,
      218. @idPlayer int,
      219. @szBegin varchar(16)
      220. AS
      221. SET NOCOUNT ON
      222. UPDATE tblLordElection
      223. SET eState = 3
      224. WHERE nServer = @nServer AND idElection = @idElection
      225. UPDATE tblLordSkill
      226. SET nTick =0
      227. WHERE nServer = @nServer
      228. INSERT INTO tblLord ( nServer, idElection, idLord )
      229. VALUES ( @nServer, @idElection, @idPlayer )
      230. INSERT INTO tblLordElection ( nServer, idElection, eState, szBegin)
      231. VALUES ( @nServer, @idElection + 1, 0, @szBegin)
      232. SET ANSI_NULLS ON
      233. GO
      234. SET QUOTED_IDENTIFIER OFF
      235. GO
      236. /****** Object: StoredProcedure [dbo].[uspElectionIncVote] Script Date: 05/01/2010 14:40:49 ******/
      237. SET ANSI_NULLS ON
      238. GO
      239. SET QUOTED_IDENTIFIER ON
      240. GO
      241. CREATE proc [dbo].[uspElectionIncVote]
      242. @nServer int,
      243. @idElection int,
      244. @idPlayer int,
      245. @idElector int
      246. AS
      247. SET NOCOUNT ON
      248. IF EXISTS ( SELECT * FROM tblLordElector WHERE nServer = @nServer AND idElection = @idElection AND idElector = @idElector )
      249. BEGIN
      250. SELECT bResult = 0
      251. END
      252. ELSE
      253. BEGIN
      254. INSERT tblLordElector ( nServer, idElection, idElector )
      255. VALUES ( @nServer, @idElection, @idElector )
      256. UPDATE tblLordCandidates
      257. SET nVote = nVote + 1
      258. WHERE nServer = @nServer AND idElection = @idElection AND idPlayer = @idPlayer
      259. SELECT bResult = 1
      260. END
      261. SET ANSI_NULLS ON
      262. GO
      263. SET QUOTED_IDENTIFIER OFF
      264. GO
      265. /****** Object: StoredProcedure [dbo].[uspElectionInitialize] Script Date: 05/01/2010 14:42:47 ******/
      266. SET ANSI_NULLS ON
      267. GO
      268. SET QUOTED_IDENTIFIER ON
      269. GO
      270. CREATE PROCEDURE [dbo].[uspElectionInitialize]
      271. @nServer int,
      272. @idElection int,
      273. @szBegin varchar( 16 )
      274. AS
      275. SET NOCOUNT ON
      276. INSERT INTO tblLordElection ( nServer, idElection, eState, szBegin )
      277. VALUES ( @nServer, @idElection, 0, @szBegin )
      278. SET ANSI_NULLS ON
      279. GO
      280. SET QUOTED_IDENTIFIER OFF
      281. GO
      282. /****** Object: StoredProcedure [dbo].[uspElectionLeaveOut] Script Date: 05/01/2010 14:43:19 ******/
      283. SET ANSI_NULLS ON
      284. GO
      285. SET QUOTED_IDENTIFIER ON
      286. GO
      287. CREATE PROCEDURE [dbo].[uspElectionLeaveOut]
      288. @nServer int,
      289. @idElection int,
      290. @idPlayer int
      291. AS
      292. SET NOCOUNT ON
      293. UPDATE tblLordCandidates
      294. SET IsLeftOut = 'D'
      295. WHERE nServer = @nServer AND idElection = @idElection AND idPlayer = @idPlayer
      296. SET ANSI_NULLS ON
      297. GO
      298. SET QUOTED_IDENTIFIER OFF
      299. GO
      300. /****** Object: StoredProcedure [dbo].[uspElectionSetPledge] Script Date: 05/01/2010 14:43:41 ******/
      301. SET ANSI_NULLS ON
      302. GO
      303. SET QUOTED_IDENTIFIER ON
      304. GO
      305. CREATE proc [dbo].[uspElectionSetPledge]
      306. @nServer int,
      307. @idElection int,
      308. @idPlayer int,
      309. @szPledge varchar(255)
      310. AS
      311. SET NOCOUNT ON
      312. UPDATE tblLordCandidates
      313. SET szPledge = @szPledge
      314. WHERE nServer = @nServer AND idElection = @idElection AND idPlayer = @idPlayer
      315. SET ANSI_NULLS ON
      316. GO
      317. SET QUOTED_IDENTIFIER OFF
      318. GO
      Alles anzeigen


      So, da habt ihr, Heulsusen.
    • Eure ganzen dummen Kommentare lasst mal schön stecken , nicht jeder Mensch ist fehlerfrei und man darf auch mal was nicht wissen?

      @Till Du meinst auch du wärst perfekt , aber genau das Gegenteil ist du bist es eben nicht.

      @Ultimate Dein Schlaues "Bild" kannste dir sonstwo anzeigen , wenn du nichts weißt solltest du mal ruhig sein.
    • Darki1;116971 schrieb:

      Eure ganzen dummen Kommentare lasst mal schön stecken , nicht jeder Mensch ist fehlerfrei und man darf auch mal was nicht wissen?

      @Till Du meinst auch du wärst perfekt , aber genau das Gegenteil ist du bist es eben nicht.

      @Ultimate Dein Schlaues "Bild" kannste dir sonstwo anzeigen , wenn du nichts weißt solltest du mal ruhig sein.


      Ich habe niemals in diesem Forum gesagt ich sei perfekt oder könne alles, wenn bitte ein Zitat und den Link dazu!
      Aber wie du dich aufführst finde ich einfach nur lächerlich :>
      Und ich denke sehr sehr viele hier denken genauso, selbst die Mods!

      Mfg
      Till
    • Till1993;116982 schrieb:

      Ich habe niemals in diesem Forum gesagt ich sei perfekt oder könne alles, wenn bitte ein Zitat und den Link dazu!
      Aber wie du dich aufführst finde ich einfach nur lächerlich :>
      Und ich denke sehr sehr viele hier denken genauso, selbst die Mods!

      Mfg
      Till


      Du meinst ja natürlich jetzt andere runter zu machen , weil sie nicht das Wissen besitzen was du besitzt? Obwohl ich das jetzt eigentlich ungerne sage du bist schlimmer wie TwiLight.

      So und jetzt bitte ich hier mal einen den Spam zu entfernen ....
    • Till1993;116982 schrieb:

      Ich habe niemals in diesem Forum gesagt ich sei perfekt oder könne alles, wenn bitte ein Zitat und den Link dazu!
      Aber wie du dich aufführst finde ich einfach nur lächerlich :>
      Und ich denke sehr sehr viele hier denken genauso, selbst die Mods!

      Mfg
      Till

      Selbst erarbeitet, im Gegensatz zur dir Angelz Love :>
      Klar, Till ist einer der Hellsten hier, schaut euch doch ma an :D