Resource Erklärung

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Resource Erklärung

      [FELD="Inhaltsverzeichnis"]
      [COLOR="Red"]0.1.0.0[/COLOR] - [COLOR="Lime"]Vorwort[/COLOR]
      [COLOR="#ff0000"]0.2.0.0[/COLOR] - [COLOR="#00ff00"]LuaFunc Ordner[/COLOR]
      [COLOR="#ff0000"]0.2.0.1[/COLOR] - [COLOR="#00ff00"]CreateMonsterFunc.lua[/COLOR]
      [COLOR="#ff0000"]0.2.0.2[/COLOR] - [COLOR="#00ff00"]EventFunc.lua[/COLOR]
      [COLOR="#ff0000"]0.2.0.3[/COLOR] - [COLOR="#00ff00"]EventMonsterFunc.lua[/COLOR]
      [COLOR="#ff0000"]0.2.0.4[/COLOR] - [COLOR="#00ff00"]InstanceDungeonBase.lua[/COLOR]
      [COLOR="#ff0000"]0.2.0.5[/COLOR] - [COLOR="#00ff00"]MonsterSkillFunc.lua[/COLOR]
      [COLOR="#ff0000"]0.2.0.6[/COLOR] - [COLOR="#00ff00"]PartyDungeon.lua[/COLOR]
      [COLOR="#ff0000"]0.2.0.7[/COLOR] - [COLOR="#00ff00"]PCBang.lua[/COLOR]
      [COLOR="#ff0000"]0.2.0.8[/COLOR] - [COLOR="#00ff00"]RainbowRaceFunc.lua[/COLOR]
      [COLOR="#ff0000"]0.2.0.9[/COLOR] - [COLOR="#00ff00"]SecretRoomFunc.lua[/COLOR]
      [COLOR="#ff0000"]0.2.1.0[/COLOR] - [COLOR="#00ff00"]Tax.lua[/COLOR]
      [COLOR="#ff0000"]0.2.1.1[/COLOR] - [COLOR="#00ff00"]TaxFunc.lua[/COLOR]
      [/FELD]


      [SIZE="1"][COLOR="#ff0000"]0.1.0.0[/COLOR] - [COLOR="Lime"]Vorwort[/COLOR]:
      [COLOR="Cyan"]
      Daher viele nach einer "Resourcen"-Erklärung verlangen, schreibe ich hier mal eine, Stück für Stück! Diese wird sich nach der Zeit füllen und ich würde mich sehr über Ratschlage und Verbesserungsvorschlägen freuen! Hierbei gehts mir keinerlei um Thanks oder Karma. Dieser Theard dient nur dazu, um zu verstehen, was die verschiedenen "Resource"-Datein bewirken oder was diese für bedeuten haben.[/COLOR][/SIZE]

      [SIZE="1"][COLOR="Red"]0.2.0.0[/COLOR] - [COLOR="Lime"]LuaFunc Ordner[/COLOR]:[/SIZE]
      [SIZE="1"][COLOR="Cyan"]
      Daher ich die "Resource"-Datein Ordner für Ordner erkären will und im Ordner LuaFunc die ersten Datein sind, die Intressant wären, fange ich auch gleich in diesem Ordner an, auf Wunsch fange ich soger von ganz Oben an! :)[/COLOR][/SIZE]

      [SIZE="1"][COLOR="Red"]0.2.0.1[/COLOR] - [COLOR="Lime"]CreateMonsterFunc.lua[/COLOR]:[/SIZE]

      "Code"
      [SIZE="1"][COLOR="Cyan"]Zuersteinmal widmen wir uns dieser Datei! Hier der Datei Source wie ich ihn habe:

      Quellcode

      1. tCreateMonster = {}
      2. function SEC( n ) return n * 1000 end
      3. function MIN( n ) return n * SEC( 60 ) end
      4. function AddItem( strItemId, dwKeepTime )
      5. local nSize = table.getn( tCreateMonster ) + 1
      6. tCreateMonster[nSize] = {}
      7. tCreateMonster[nSize].strItemId = strItemId
      8. tCreateMonster[nSize].dwKeepTime = dwKeepTime
      9. tCreateMonster[nSize].tMonster = {}
      10. end
      11. function AddMonster( strMonsterId, nProbability )
      12. local n = table.getn( tCreateMonster )
      13. nSize = table.getn( tCreateMonster[n].tMonster ) + 1
      14. tCreateMonster[n].tMonster[nSize] = {}
      15. tCreateMonster[n].tMonster[nSize].strMonsterId = strMonsterId
      16. tCreateMonster[n].tMonster[nSize].nProbability = nProbability
      17. end
      Alles anzeigen
      [/COLOR][/SIZE]

      [SIZE="1"][COLOR="Red"]0.2.0.2[/COLOR] - [COLOR="Lime"]EventFunc.lua[/COLOR]:[/SIZE]

      [SIZE="1"][COLOR="#00ffff"]Als nächstes widmen wir uns dieser Datei! Hier der Datei Source wie ich ihn habe:

      Brainfuck-Quellcode

      1. tEvent = {} -- À̺¥Æ® ÀúÀå Å×À̺í
      2. function SEC( n )
      3. return n*1000
      4. end
      5. function MIN( n )
      6. return n*SEC(60)
      7. end
      8. -----------------------------------------------------------------------------------
      9. ------- C¿¡¼* È£ÃâÇÒ ·ç¾Æ ÇÔ¼ö ----------------------------------------------------
      10. -----------------------------------------------------------------------------------
      11. -- º¯°æµÈ À̺¥Æ® ¸®½ºÆ® (DBSERVER)
      12. function GetEventState()
      13. local tReturn = {}
      14. local nCount = 1
      15. for i in pairs(tEvent) do
      16. local OldState = tEvent[i].State
      17. for j in pairs(tEvent[i].Time) do
      18. if( tEvent[i].Time[j].nStart <= tonumber(os.date("%Y%m%d%H%M")) ) then
      19. if( tEvent[i].Time[j].nEnd > tonumber(os.date("%Y%m%d%H%M")) ) then
      20. if( tEvent[i].State == 0 ) then
      21. tEvent[i].State = 1
      22. end
      23. else
      24. if( tEvent[i].State == 1 ) then
      25. tEvent[i].State = 0
      26. end
      27. end
      28. end
      29. end
      30. if( OldState ~= tEvent[i].State ) then
      31. tReturn[nCount] = {}
      32. tReturn[nCount].nId = i
      33. tReturn[nCount].State = tEvent[i].State
      34. nCount = nCount + 1
      35. end
      36. end
      37. return tReturn
      38. end
      39. -- WORLDSERVER¿¡¼* ½ÇÇàµÈ ½ºÅ©¸³Æ® ÆÄÀÏ¿¡µµ º¯°æµÈ state¸¦ Àû¿ëÇϱâ À§ÇÑ ÇÔ¼ö
      40. function SetState( nId, nState )
      41. tEvent[nId].State = nState
      42. TRACE( string.format( "Event - ID:%d, Title:%s, State:%d", nId, tEvent[nId].Desc, tEvent[nId].State ) )
      43. ERROR( string.format( "Event - ID:%d, Title:%s, State:%d", nId, tEvent[nId].Desc, tEvent[nId].State ) )
      44. end
      45. -- ÁøÇàÁßÀÎ À̺¥Æ® ¸®½ºÆ®
      46. function GetEventList()
      47. local tList = {}
      48. local nCount = 1
      49. for i in pairs(tEvent) do
      50. if( tEvent[i].State == 1 ) then
      51. tList[nCount] = i
      52. nCount = nCount + 1
      53. end
      54. end
      55. return tList
      56. end
      57. -- À̺¥Æ® Å×ÀÌºí¿¡ ÀÖ´Â ¸ðµç ¸®½ºÆ®
      58. function GetAllEventList()
      59. local tAllList = {}
      60. local nCount = 1
      61. for i in pairs(tEvent) do
      62. tAllList[nCount] = {}
      63. tAllList[nCount].nId = i
      64. tAllList[nCount].strTitle = tEvent[i].Desc
      65. tAllList[nCount].nState = tEvent[i].State
      66. nCount = nCount + 1
      67. end
      68. return tAllList
      69. end
      70. -- À̺¥Æ® »ó¼¼ Á¤º¸ Å×À̺íÀ» ¸®ÅÏ
      71. function GetEventInfo( nId )
      72. local tEventInfo = {}
      73. if( tEvent[nId] == nil ) then
      74. tEventInfo[1] = "No EventInfo ID = "..nId
      75. return tEventInfo
      76. end
      77. local nCount = 3
      78. tEventInfo[1] = "Title = " .. tEvent[nId].Desc
      79. tEventInfo[2] = "State = " .. tEvent[nId].State
      80. for i in pairs(tEvent[nId].Time) do
      81. local strTime = tEvent[nId].Time[i].nStart .. ", " ..tEvent[nId].Time[i].nEnd
      82. tEventInfo[nCount] = "Time["..i.."] = " .. strTime
      83. nCount = nCount + 1
      84. end
      85. for i in pairs(tEvent[nId].Item) do
      86. local strItem = tEvent[nId].Item[i].ItemId ..", ".. tEvent[nId].Item[i].ItemMaxNum ..", ".. tEvent[nId].Item[i].ItemNum ..", ".. tEvent[nId].Item[i].nLevel
      87. tEventInfo[nCount] = "Item["..i.."] = " .. strItem
      88. nCount = nCount + 1
      89. end
      90. if( tEvent[nId].fExpFactor ~= 1 ) then
      91. tEventInfo[nCount] = "ExpFactor = " .. tEvent[nId].fExpFactor
      92. nCount = nCount + 1
      93. end
      94. if( tEvent[nId].fItemDropRate ~= 1 ) then
      95. tEventInfo[nCount] = "ItemDropRate = " .. tEvent[nId].fItemDropRate
      96. nCount = nCount + 1
      97. end
      98. if( tEvent[nId].fPieceItemDropRate ~= 1 ) then
      99. tEventInfo[nCount] = "fPieceItemDropRate = " .. tEvent[nId].fPieceItemDropRate
      100. nCount = nCount + 1
      101. end
      102. if( tEvent[nId].fGoldDropFactor ~= 1 ) then
      103. tEventInfo[nCount] = "fGoldDropFactor = " .. tEvent[nId].fGoldDropFactor
      104. nCount = nCount + 1
      105. end
      106. if( tEvent[nId].nAttackPower ~= 0 ) then
      107. tEventInfo[nCount] = "nAttackPower = " .. tEvent[nId].nAttackPower
      108. nCount = nCount + 1
      109. end
      110. if( tEvent[nId].nDefensePower ~= 0 ) then
      111. tEventInfo[nCount] = "nDefensePower = " .. tEvent[nId].nDefensePower
      112. nCount = nCount + 1
      113. end
      114. if( tEvent[nId].nCouponEvent ~= 0 ) then
      115. if( tEvent[nId].nCouponEvent < MIN(1) ) then
      116. tEventInfo[nCount] = "nCouponEventTime = " .. tEvent[nId].nCouponEvent / SEC(1) .. "Sec"
      117. else
      118. tEventInfo[nCount] = "nCouponEventTime = " .. tEvent[nId].nCouponEvent / MIN(1) .. "Min"
      119. end
      120. nCount = nCount + 1
      121. end
      122. for i in pairs(tEvent[nId].Gift) do
      123. local strGift = tEvent[nId].Gift[i].nLevel ..", ".. tEvent[nId].Gift[i].strAccount ..", ".. tEvent[nId].Gift[i].strItemId ..", ".. tEvent[nId].Gift[i].nItemNum
      124. tEventInfo[nCount] = "Gift["..i.."] = " .. strGift
      125. nCount = nCount + 1
      126. end
      127. return tEventInfo
      128. end
      129. -- À̺¥Æ® ¼³¸í
      130. function GetDesc( nId )
      131. local strDesc = tEvent[nId].Desc
      132. return strDesc
      133. end
      134. -- ½Ã°£À» ¼ýÀÚ·Î ¹Ù²ãÁÖ´Â ÇÔ¼ö
      135. function GetTimeToNumber( strTime )
      136. local strTemp = ""
      137. local j = 0
      138. for i in string.gfind( strTime, "%d+" ) do
      139. j = j + 1
      140. if( (j~=1) and (tonumber(i)<10) ) then
      141. i = "0"..tonumber(i)
      142. end
      143. strTemp = strTemp..i
      144. end
      145. return tonumber( strTemp )
      146. end
      147. ---------------------------------------------------------------------------
      148. ------ µ¥ÀÌÅÍ Ãß°¡ ÇÔ¼ö ---------------------------------------------------
      149. ---------------------------------------------------------------------------
      150. -- »õ·Î¿î À̺¥Æ® Ãß°¡
      151. function AddEvent( strDesc )
      152. local nEventId = table.getn(tEvent) + 1
      153. tEvent[nEventId] = {}
      154. tEvent[nEventId].Item = {}
      155. tEvent[nEventId].Time = {}
      156. tEvent[nEventId].Desc = strDesc
      157. tEvent[nEventId].fExpFactor = 1
      158. tEvent[nEventId].fItemDropRate = 1
      159. tEvent[nEventId].fPieceItemDropRate = 1
      160. tEvent[nEventId].fGoldDropFactor = 1
      161. tEvent[nEventId].State = 0
      162. tEvent[nEventId].nAttackPower = 0
      163. tEvent[nEventId].nDefensePower = 0
      164. tEvent[nEventId].nCouponEvent = 0
      165. tEvent[nEventId].Gift = {}
      166. end
      167. -- ½ÃÀ۽ð£, ³¡½Ã°£
      168. function SetTime( strStart, strEnd )
      169. local nEventId = table.getn(tEvent)
      170. local nSize = table.getn( tEvent[nEventId].Time ) + 1
      171. tEvent[nEventId].Time[nSize] = {}
      172. tEvent[nEventId].Time[nSize].nStart = GetTimeToNumber( strStart )
      173. tEvent[nEventId].Time[nSize].nEnd = GetTimeToNumber( strEnd )
      174. end
      175. -- ¾ÆÀÌÅÛ
      176. function SetItem( ItemId, nItemMaxNum, nItemNum, nLevel )
      177. local nEventId = table.getn(tEvent)
      178. local nSize = table.getn(tEvent[nEventId].Item)
      179. tEvent[nEventId].Item[nSize+1] = {}
      180. tEvent[nEventId].Item[nSize+1].ItemId = ItemId
      181. tEvent[nEventId].Item[nSize+1].ItemMaxNum = nItemMaxNum
      182. tEvent[nEventId].Item[nSize+1].ItemNum = nItemNum
      183. tEvent[nEventId].Item[nSize+1].nLevel = nLevel
      184. tEvent[nEventId].Item[nSize+1].TimeOut = 0
      185. tEvent[nEventId].Item[nSize+1].Skip = 0
      186. local tInterval = {}
      187. local nTotal = 0
      188. for i in pairs(tHour) do
      189. nTotal = nTotal + tHour[i]
      190. end
      191. for i in pairs(tHour) do
      192. tInterval[i] = 3600000 / ( nItemMaxNum * tHour[i] / nTotal )
      193. tInterval[i] = math.floor(tInterval[i])
      194. end
      195. tEvent[nEventId].Item[nSize+1].tInterval = tInterval
      196. end
      197. -- µå·ÓµÉ ¾ÆÀÌÅÛ ¸ñ·Ï
      198. function GetItem( nTickCount, nLevel )
      199. local nHour = tonumber(os.date("%H")) + 1
      200. local tList = GetEventList()
      201. local tReturn = {}
      202. local nCount = 1
      203. for i in pairs(tList) do
      204. local tItem = tEvent[tList[i]].Item
      205. for j in pairs(tItem) do
      206. if( (nTickCount >= tItem[j].TimeOut) and (tItem[j].nLevel <= nLevel) ) then
      207. tItem[j].TimeOut = tItem[j].tInterval[nHour] + nTickCount
      208. if( tItem[j].Skip == 0 ) then
      209. local nRandom = math.random(1, tItem[j].ItemNum)
      210. tReturn[nCount] = {}
      211. tReturn[nCount].ItemId = tItem[j].ItemId
      212. tReturn[nCount].ItemNum = nRandom
      213. tItem[j].Skip = nRandom - 1
      214. nCount = nCount + 1
      215. TRACE( "Event.lua : GetItem() - Drop - "..tItem[j].ItemId..", "..nRandom.."°³, Skip:"..tItem[j].Skip.." ½Ã°£´ë:"..(nHour-1).." ~ "..nHour )
      216. else
      217. tItem[j].Skip = tItem[j].Skip - 1
      218. TRACE( "Event.lua : GetItem() - Skip - "..tItem[j].ItemId..", ³²Àº Skip:"..tItem[j].Skip.." ½Ã°£´ë:"..(nHour-1).." ~ "..nHour )
      219. end
      220. end
      221. end
      222. end
      223. return tReturn
      224. end
      225. -- °æÇèÄ¡ ¹è¼ö
      226. function SetExpFactor( fExpFactor )
      227. local nEventId = table.getn(tEvent)
      228. tEvent[nEventId].fExpFactor = fExpFactor
      229. end
      230. function GetExpFactor()
      231. local tList = GetEventList()
      232. local fExpFactor = 5
      233. for i in pairs(tList) do
      234. if( tEvent[tList[i]].fExpFactor ~= nil ) then
      235. fExpFactor = fExpFactor * tEvent[tList[i]].fExpFactor
      236. end
      237. end
      238. return fExpFactor
      239. end
      240. -- ¾ÆÀÌÅÛ µå·Ó·ü ¹è¼ö
      241. function SetItemDropRate( fItemDropRate )
      242. local nEventId = table.getn(tEvent)
      243. tEvent[nEventId].fItemDropRate = fItemDropRate
      244. end
      245. function GetItemDropRate()
      246. local tList = GetEventList()
      247. local fItemDropRate = 15
      248. for i in pairs(tList) do
      249. if( tEvent[tList[i]].fItemDropRate ~= nil ) then
      250. fItemDropRate = fItemDropRate * tEvent[tList[i]].fItemDropRate
      251. end
      252. end
      253. return fItemDropRate
      254. end
      255. -- °³º° ¾ÆÀÌÅÛ µå·Ó·ü ¹è¼ö
      256. function SetPieceItemDropRate( fPieceItemDropRate )
      257. local nEventId = table.getn(tEvent)
      258. tEvent[nEventId].fPieceItemDropRate = fPieceItemDropRate
      259. end
      260. function GetPieceItemDropRate()
      261. local tList = GetEventList()
      262. local fPieceItemDropRate = 5
      263. for i in pairs(tList) do
      264. if( tEvent[tList[i]].fPieceItemDropRate ~= nil ) then
      265. fPieceItemDropRate = fPieceItemDropRate * tEvent[tList[i]].fPieceItemDropRate
      266. end
      267. end
      268. return fPieceItemDropRate
      269. end
      270. -- Æä³Ä µå·Ó ¹è¼ö
      271. function SetGoldDropFactor( fGoldDropFactor )
      272. local nEventId = table.getn(tEvent)
      273. tEvent[nEventId].fGoldDropFactor = fGoldDropFactor
      274. end
      275. function GetGoldDropFactor()
      276. local tList = GetEventList()
      277. local fGoldDropFactor = 20
      278. for i in pairs(tList) do
      279. if( tEvent[tList[i]].fGoldDropFactor ~= nil ) then
      280. fGoldDropFactor = fGoldDropFactor * tEvent[tList[i]].fGoldDropFactor
      281. end
      282. end
      283. return fGoldDropFactor
      284. end
      285. -- °ø°Ý·Â Áõ°¡
      286. function SetAttackPower( nAttackPower )
      287. local nEventId = table.getn(tEvent)
      288. tEvent[nEventId].nAttackPower = nAttackPower
      289. end
      290. function GetAttackPower()
      291. local tList = GetEventList()
      292. local nAttackPower = 0
      293. for i in pairs(tList) do
      294. if( tEvent[tList[i]].nAttackPower ~= nil ) then
      295. nAttackPower = nAttackPower + tEvent[tList[i]].nAttackPower
      296. end
      297. end
      298. return nAttackPower
      299. end
      300. -- ¹æ¾î·Â Áõ°¡
      301. function SetDefensePower( nDefensePower )
      302. local nEventId = table.getn(tEvent)
      303. tEvent[nEventId].nDefensePower = nDefensePower
      304. end
      305. function GetDefensePower()
      306. local tList = GetEventList()
      307. local nDefensePower = 0
      308. for i in pairs(tList) do
      309. if( tEvent[tList[i]].nDefensePower ~= nil ) then
      310. nDefensePower = nDefensePower + tEvent[tList[i]].nDefensePower
      311. end
      312. end
      313. return nDefensePower
      314. end
      315. -- ÄíÆù À̺¥Æ®
      316. function SetCouponEvent( nTime )
      317. local nEventId = table.getn(tEvent)
      318. tEvent[nEventId].nCouponEvent = nTime
      319. end
      320. function GetCouponEvent()
      321. local tList = GetEventList()
      322. for i in pairs(tList) do
      323. if( tEvent[tList[i]].nCouponEvent ~= 0 ) then
      324. return tEvent[tList[i]].nCouponEvent
      325. end
      326. end
      327. return 0
      328. end
      329. function SetLevelUpGift( nLevel, strAccount, strItemId, nItemNum )
      330. local nEventId = table.getn(tEvent)
      331. local nSize = table.getn(tEvent[nEventId].Gift)
      332. tEvent[nEventId].Gift[nSize+1] = {}
      333. tEvent[nEventId].Gift[nSize+1].nLevel = nLevel
      334. tEvent[nEventId].Gift[nSize+1].strAccount = strAccount
      335. tEvent[nEventId].Gift[nSize+1].strItemId = strItemId
      336. tEvent[nEventId].Gift[nSize+1].nItemNum = nItemNum
      337. end
      338. function GetLevelUpGift( nLevel, strAccount )
      339. local nCount = 1
      340. local tGiftList = {}
      341. local tList = GetEventList()
      342. for i in pairs(tList) do
      343. local tGift = tEvent[tList[i]].Gift
      344. for j in pairs(tGift) do
      345. local nTemp = string.find( strAccount, tGift[j].strAccount )
      346. if( (tGift[j].strAccount == "all") or (nTemp ~= nil) ) then
      347. if( tGift[j].nLevel == nLevel ) then
      348. tGiftList[nCount] = {}
      349. tGiftList[nCount].strItemId = tGift[j].strItemId
      350. tGiftList[nCount].nItemNum = tGift[j].nItemNum
      351. nCount = nCount + 1
      352. end
      353. end
      354. end
      355. end
      356. return tGiftList
      357. end
      Alles anzeigen
      [/COLOR][/SIZE]



      [SIZE="1"][COLOR="Red"]0.2.0.3[/COLOR] - [COLOR="Lime"]EventMonsterFunc.lua[/COLOR]:[/SIZE]

      [SIZE="1"][COLOR="Cyan"]Als drittes widmen wir uns nun diesem Datei Source:

      Quellcode

      1. tEventMonster = {}
      2. function AddMonster( strMonsterId, nLevel, nLootTime, fItemDropRange, bPet, bGiftBox )
      3. local nSize = table.getn( tEventMonster ) + 1
      4. tEventMonster[nSize] = {}
      5. tEventMonster[nSize].strMonsterId = strMonsterId
      6. tEventMonster[nSize].nLevel = nLevel
      7. tEventMonster[nSize].nLootTime = nLootTime
      8. tEventMonster[nSize].fItemDropRange = fItemDropRange
      9. tEventMonster[nSize].bPet = bPet
      10. tEventMonster[nSize].bGiftBox = bGiftBox
      11. end
      Alles anzeigen

      [/COLOR][/SIZE]


      [SIZE="1"][COLOR="Red"]0.2.0.4[/COLOR] - [COLOR="Lime"]InstanceDungeonBase.lua[/COLOR]:[/SIZE]
      [SIZE="1"][COLOR="#00ffff"]Als Viertes widme wir uns diesen Datei Source:

      Brainfuck-Quellcode

      1. nMaxInstanceDungeon = 100
      2. tDungeon = {}
      3. --------------------------------------------------------------------
      4. -- ½Ã°£ ¼³Á¤ °ü·Ã ÇÔ¼ö ---------------------------------------------
      5. --------------------------------------------------------------------
      6. function SEC( a ) return a * 1000 end
      7. function MIN( a ) return SEC( a ) * 60 end
      8. function AddDungeon( strWorldId )
      9. local nIndex = table.getn( tDungeon ) + 1
      10. tDungeon[nIndex] = {}
      11. tDungeon[nIndex].strWorldId = strWorldId
      12. tDungeon[nIndex].dwClass = 65535
      13. tDungeon[nIndex].nMinLevel = 1 [COLOR="Red"]<-- Mindestlevel[/COLOR]
      14. tDungeon[nIndex].nMaxLevel = 120 [COLOR="#ff0000"]<-- Maximallevel[/COLOR]
      15. tDungeon[nIndex].dwCoolTime = MIN( 30 ) [COLOR="#ff0000"]<-- Zeit in Minuten[/COLOR]
      16. tDungeon[nIndex].tMonster = {}
      17. tDungeon[nIndex].tTeleport = {}
      18. end
      19. CLASS_NORMAL = 1
      20. CLASS_MASTER = 2
      21. CLASS_HERO = 4
      22. function SetClass( ... )
      23. local nIndex = table.getn( tDungeon )
      24. local dwClass = 0
      25. if( arg.n > 0 ) then
      26. for indx = 1, arg.n do
      27. dwClass = dwClass + arg[indx]
      28. end
      29. end
      30. tDungeon[nIndex].dwClass = dwClass
      31. end
      32. function SetLevel( nMinLevel, nMaxLevel )
      33. local nIndex = table.getn( tDungeon )
      34. tDungeon[nIndex].nMinLevel = nMinLevel
      35. tDungeon[nIndex].nMaxLevel = nMaxLevel
      36. end
      37. function SetCoolTime( dwCoolTime )
      38. local nIndex = table.getn( tDungeon )
      39. tDungeon[nIndex].dwCoolTime = dwCoolTime
      40. end
      41. ID_NORMAL = 0 [COLOR="#ff0000"]<-- Monster Stufe Normal[/COLOR]
      42. ID_MIDBOSS = 1 [COLOR="#ff0000"]<-- Monster Stufe Mittlerer Boss[/COLOR]
      43. ID_BOSS = 2 [COLOR="#ff0000"]<-- Monster Stufe Boss[/COLOR]
      44. function SetMonster( nType, strMonsterId, bRed, x, y, z )
      45. local nPDIndex = table.getn( tDungeon )
      46. local nMTIndex = table.getn( tDungeon[nPDIndex].tMonster ) + 1
      47. tDungeon[nPDIndex].tMonster[nMTIndex] = {}
      48. tDungeon[nPDIndex].tMonster[nMTIndex].nType = nType
      49. tDungeon[nPDIndex].tMonster[nMTIndex].strMonsterId = strMonsterId
      50. tDungeon[nPDIndex].tMonster[nMTIndex].bRed = bRed
      51. tDungeon[nPDIndex].tMonster[nMTIndex].x = x
      52. tDungeon[nPDIndex].tMonster[nMTIndex].y = y
      53. tDungeon[nPDIndex].tMonster[nMTIndex].z = z
      54. end
      55. function SetTeleportPos( nType, x, y, z )
      56. local nPDIndex = table.getn( tDungeon )
      57. local nTPIndex = table.getn( tDungeon[nPDIndex].tTeleport ) + 1
      58. tDungeon[nPDIndex].tTeleport[nTPIndex] = {}
      59. tDungeon[nPDIndex].tTeleport[nTPIndex].nType = nType
      60. tDungeon[nPDIndex].tTeleport[nTPIndex].x = x
      61. tDungeon[nPDIndex].tTeleport[nTPIndex].y = y
      62. tDungeon[nPDIndex].tTeleport[nTPIndex].z = z
      63. end
      Alles anzeigen
      [/COLOR][/SIZE]

      [SIZE="1"][COLOR="Red"]0.2.0.5[/COLOR] - [COLOR="Lime"]MonsterSkillFunc.lua[/COLOR]:[/SIZE]
      [SIZE="1"][COLOR="#00ffff"]Als fünftes widmen wir unsere Aufmerksameit diesem Datei Source:

      Quellcode

      1. tMonsterSkill = {}
      2. ATK_MELEE = 1
      3. ATK_RANGE = 2
      4. function AddMonster( strMonsterId )
      5. local nSize = table.getn( tMonsterSkill ) + 1
      6. tMonsterSkill[nSize] = {}
      7. tMonsterSkill[nSize].strMonsterId = strMonsterId
      8. tMonsterSkill[nSize].tSkill = {}
      9. end
      10. function AddSkill( nAtkMethod, strSkillId, nSkillLv, nHitCount, nRange, nProb, dwSkillTime, bIgnore )
      11. local n = table.getn( tMonsterSkill )
      12. nSize = table.getn( tMonsterSkill[n].tSkill ) + 1
      13. tMonsterSkill[n].tSkill[nSize] = {}
      14. tMonsterSkill[n].tSkill[nSize].nAtkMethod = nAtkMethod
      15. tMonsterSkill[n].tSkill[nSize].strSkillId = strSkillId
      16. tMonsterSkill[n].tSkill[nSize].dwSkillLv = nSkillLv
      17. tMonsterSkill[n].tSkill[nSize].nHitCount = nHitCount - 1
      18. tMonsterSkill[n].tSkill[nSize].nRange = nRange
      19. tMonsterSkill[n].tSkill[nSize].nProb = nProb
      20. tMonsterSkill[n].tSkill[nSize].dwSkillTime = dwSkillTime * 1000
      21. tMonsterSkill[n].tSkill[nSize].bIgnore = bIgnore
      22. end
      Alles anzeigen
      [/COLOR][/SIZE]

      [SIZE="1"][COLOR="Red"]0.2.0.6[/COLOR] - [COLOR="Lime"]PartyDungeon.lua[/COLOR]:[/SIZE]
      [SIZE="1"][COLOR="Cyan"]Nun widmen wir unsere Aufmerksamkeit diesem Datei-Source:

      Brainfuck-Quellcode

      1. --------------------------------------------------------------------
      2. -- ÃʱâÈ* ----------------------------------------------------------
      3. --------------------------------------------------------------------
      4. dofile( ".\\LuaFunc\\InstanceDungeonBase.lua" )
      5. --------------------------------------------------------------------
      6. --[[
      7. AddDungeon( "WI_DUNGEON_SECRET_L" )
      8. --{
      9. SetClass( dwClass )
      10. SetLevel( nMinLevel, nMaxLevel )
      11. SetCoolTime( dwCoolTime )
      12. SetMonster( nType, strMonsterId, bRed, x, y, z )
      13. :
      14. :
      15. SetTeleportPos( nType, x, y, z )
      16. :
      17. :
      18. --}
      19. --]]
      20. --[[
      21. -- Sample
      22. AddDungeon( "WI_DUNGEON_FL_MAS" )
      23. --{
      24. SetClass( CLASS_NORMAL, CLASS_MASTER, CLASS_HERO )
      25. SetLevel( 80, 120 )
      26. SetCoolTime( MIN(1) )
      27. SetTeleportPos( ID_NORMAL, 695, 90, 684 ) -- Á¤ÀÇÇÏÁö ¾ÊÀ¸¸é ¸Ê¿¡¼* ¼³Á¤ÇÑ ÁÂÇ¥·Î À̵¿ÇÑ´Ù.
      28. SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
      29. SetTeleportPos( ID_BOSS, 695, 100, 684 )
      30. SetMonster( ID_NORMAL, "MI_CAITSITH04_1", false, 695, 90, 684 )
      31. SetMonster( ID_NORMAL, "MI_CAITSITH04_1", false, 695, 90, 684 )
      32. SetMonster( ID_NORMAL, "MI_CAITSITH04_1", false, 695, 90, 684 )
      33. SetMonster( ID_MIDBOSS, "MI_AIBATT1", false, 695, 90, 684 )
      34. SetMonster( ID_BOSS, "MI_AIBATT1", true, 695, 100, 684 )
      35. --}
      36. --]]
      37. AddDungeon( "WI_INSTANCE_OMINOUS" ) [COLOR="#ff0000"]<-- Dungeon der Dazu kommt[/COLOR]
      38. --{
      39. SetClass( CLASS_NORMAL )
      40. SetLevel( 1, 130 )
      41. SetCoolTime( MIN(30) )
      42. --SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
      43. --SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
      44. --SetTeleportPos( ID_BOSS, 695, 100, 684 )
      45. SetMonster( ID_NORMAL, "MI_PRICKANT04", true, 1280, 101, 1640 )
      46. SetMonster( ID_NORMAL, "MI_MAULMOUSE04", true, 1234, 101, 1393 )
      47. SetMonster( ID_NORMAL, "MI_CRIPESCENTIPEDE04", true, 1089, 101, 1590 )
      48. SetMonster( ID_MIDBOSS, "MI_LYCANOS01", true, 1078, 101, 1359 )
      49. SetMonster( ID_BOSS, "MI_VEMPAIN01", true, 1079, 101, 1457 )
      50. --}
      51. AddDungeon( "WI_INSTANCE_OMINOUS_1" ) [COLOR="#ff0000"]<-- Dungeon der Hinzukommt[/COLOR]
      52. --{
      53. SetClass( CLASS_MASTER, CLASS_HERO )
      54. SetLevel( 1, 130 )
      55. SetCoolTime( MIN(30) )
      56. --SetTeleportPos( ID_NORMAL, 1358, 102, 1315 )
      57. --SetTeleportPos( ID_MIDBOSS, 695, 90, 684 )
      58. --SetTeleportPos( ID_BOSS, 695, 100, 684 )
      59. SetMonster( ID_NORMAL, "MI_PRICKANT04_1", true, 1280, 101, 1640 )
      60. SetMonster( ID_NORMAL, "MI_MAULMOUSE04_1", true, 1234, 101, 1393 )
      61. SetMonster( ID_NORMAL, "MI_CRIPESCENTIPEDE04_1", true, 1089, 101, 1590 )
      62. SetMonster( ID_MIDBOSS, "MI_LYCANOS01_1", true, 1078, 101, 1359 )
      63. SetMonster( ID_BOSS, "MI_VEMPAIN01_1", true, 1079, 101, 1457 )
      64. --}
      65. [COLOR="#ff0000"]Monster die beim eintreten hinzugefügt werden.[/COLOR]
      Alles anzeigen
      [/COLOR][/SIZE]


      [SIZE="1"][COLOR="Red"]0.2.0.7[/COLOR] - [COLOR="Lime"]PCBang.lua[/COLOR]:[/SIZE]
      [SIZE="1"][COLOR="#00ffff"]Als siebtes geben wir nun der Datei PCBang.lua unsere Aufmerksamkeit:

      Brainfuck-Quellcode

      1. --------------------------------------------------------
      2. tExp = {}
      3. tDropRate = {}
      4. function AddExp( fFactor )
      5. local nIndex = table.getn( tExp ) + 1
      6. tExp[nIndex] = fFactor
      7. end
      8. function AddDropRate( fFactor )
      9. local nIndex = table.getn( tDropRate ) + 1
      10. tDropRate[nIndex] = fFactor
      11. end
      12. --------------------------------------------------------
      13. --------------------------------------------------------
      14. -- Begin Script ----------------------------------------
      15. --------------------------------------------------------
      16. AddExp( 1.1 )
      17. AddExp( 1.2 )
      18. AddExp( 1.3 )
      19. AddExp( 1.35 )
      20. AddExp( 1.4 )
      21. AddExp( 1.45 )
      22. AddExp( 1.5 )
      23. AddDropRate( 1.1 )
      Alles anzeigen
      [/COLOR][/SIZE]


      [SIZE="1"][COLOR="Red"]0.2.0.8[/COLOR] - [COLOR="Lime"]RainbowRaceFunc.lua[/COLOR]:[/SIZE]
      [SIZE="1"][COLOR="#00ffff"]Als achtes und fast am Ende des EventFunc Ordners angekommen bieten wir unsere Aufmerksamkeit diesem Datei-Source:

      Quellcode

      1. tTime = {}
      2. tNPC = {}
      3. tPrize = {}
      4. tMiniGamePrize = {}
      5. function MIN( nMin )
      6. return nMin * 60 * 1000
      7. end
      8. function SetTime( strWeekDay, strStartTime, strEndTime, strOpenTime, nPayPenya )
      9. local strTemp
      10. local tTemp = {}
      11. strTemp = ""
      12. for i in string.gfind( strStartTime, "%d+" ) do
      13. strTemp = strTemp..i
      14. end
      15. tTemp.nStartTime = tonumber(strTemp)
      16. strTemp = ""
      17. for i in string.gfind( strEndTime, "%d+" ) do
      18. strTemp = strTemp..i
      19. end
      20. tTemp.nEndTime = tonumber(strTemp)
      21. strTemp = ""
      22. for i in string.gfind( strOpenTime, "%d+" ) do
      23. strTemp = strTemp..i
      24. end
      25. tTemp.nOpenTime = tonumber(strTemp)
      26. tTemp.nPayPenya = nPayPenya
      27. tTime[strWeekDay] = tTemp
      28. end
      29. function IsApplicationTime()
      30. local nNowTime = tonumber( os.date( "%H%M" ) )
      31. local tTemp = tTime[os.date("%a")]
      32. if( tTemp ~= nil ) then
      33. if( (nNowTime >= tTemp.nStartTime) and (nNowTime < tTemp.nEndTime) ) then
      34. return true
      35. end
      36. end
      37. return false
      38. end
      39. function IsOpenTime()
      40. local nNowTime = tonumber( os.date( "%H%M" ) )
      41. local tTemp = tTime[os.date("%a")]
      42. if( tTemp ~= nil ) then
      43. if( nNowTime == tTemp.nOpenTime ) then
      44. return true
      45. end
      46. end
      47. return false;
      48. end
      49. function GetPayPenya()
      50. local tTemp = tTime[os.date("%a")]
      51. if( tTemp ~= nil ) then
      52. return tTemp.nPayPenya
      53. end
      54. return 1000000
      55. end
      56. function SetNPC( strNPCId, strCharKey, xPos, yPos, zPos )
      57. local nIndex = table.getn( tNPC ) + 1
      58. tNPC[nIndex] = {}
      59. tNPC[nIndex].strNPCId = strNPCId
      60. tNPC[nIndex].strCharKey = strCharKey
      61. tNPC[nIndex].xPos = xPos
      62. tNPC[nIndex].yPos = yPos
      63. tNPC[nIndex].zPos = zPos
      64. end
      65. function SetPrize( strWeek, strItemId, nItemNum, byFlag, nPenyaRate )
      66. if( tPrize[strWeek] == nil ) then tPrize[strWeek] = {} end
      67. local tTemp = tPrize[strWeek]
      68. local nIndex = table.getn( tTemp ) + 1
      69. tTemp[nIndex] = {}
      70. tTemp[nIndex].strItemId = strItemId
      71. tTemp[nIndex].nItemNum = nItemNum
      72. tTemp[nIndex].byFlag = byFlag
      73. if( tTime[strWeek] ~= nil ) then
      74. tTemp[nIndex].nPenya = tTime[strWeek].nPayPenya * ( nPenyaRate / 100 )
      75. else
      76. tTemp[nIndex].nPenya = 1000000 * ( nPenyaRate / 100 )
      77. end
      78. end
      79. function GetPrize()
      80. return tPrize[os.date("%a")]
      81. end
      82. function SetMiniGamePrize( strWeek, nIndex, strItemId, nItemNum, byFlag )
      83. if( tMiniGamePrize[strWeek] == nil ) then tMiniGamePrize[strWeek] = {} end
      84. local tTemp = tMiniGamePrize[strWeek]
      85. tTemp[nIndex] = {}
      86. tTemp[nIndex].strItemId = strItemId
      87. tTemp[nIndex].nItemNum = nItemNum
      88. tTemp[nIndex].byFlag = byFlag
      89. end
      90. function GetMiniGamePrize( nCompletedNum )
      91. local tTemp = tMiniGamePrize[os.date("%a")]
      92. if( tTemp == nil ) then return nil end
      93. return tMiniGamePrize[os.date("%a")][nCompletedNum]
      94. end
      Alles anzeigen
      [/COLOR][/SIZE]


      [SIZE="1"][COLOR="Red"]0.2.0.9[/COLOR] - [COLOR="Lime"]SecretRoomFunc.lua[/COLOR]:[/SIZE]
      [SIZE="1"][COLOR="#00ffff"]Nun bieten wir noch dieser Datei hier, unsere Aufmersamkeit:

      Brainfuck-Quellcode

      1. --------------------------------------------------------------------
      2. -- ½Ã°£ ¼³Á¤ °ü·Ã ÇÔ¼ö ---------------------------------------------
      3. --------------------------------------------------------------------
      4. function SEC( a ) return a*1000 end
      5. function MIN( a ) return SEC(a)*60 end
      6. function CheckOpenTime()
      7. local Time = OpenTime..":00"
      8. if( Time == os.date("%a %H:%M:%S") ) then
      9. return true
      10. end
      11. return false
      12. end
      13. function GetNextOpenTime()
      14. local nNowDay = tonumber( os.date("%w") )
      15. local nNowHour = tonumber( os.date("%H") )
      16. local nNowMin = tonumber( os.date("%M") )
      17. local nNowSec = tonumber( os.date("%S") )
      18. local a, b, c = GetWeekDayStrToNum()
      19. if( a > nNowDay ) then
      20. return ((a-nNowDay)*24*3600)+((b-nNowHour)*3600)+((c-nNowMin)*60)-nNowSec
      21. elseif( (a == nNowDay) and (b > nNowHour) ) then
      22. return ((b-nNowHour)*3600)+((c-nNowMin)*60)-nNowSec
      23. elseif( (a == nNowDay) and (b == nNowHour) and (c > nNowMin) ) then
      24. return ((c-nNowMin)*60)-nNowSec
      25. elseif( (a == nNowDay) and (b == nNowHour) and (c == nNowMin) ) then
      26. return nNowSec
      27. else
      28. return ((7-nNowDay+a)*24*3600)+((b-nNowHour)*3600)+((c-nNowMin)*60)-nNowSec
      29. end
      30. end
      31. function GetWeekDayStrToNum()
      32. local a = 0
      33. local nTemp1, nTemp2 = string.find(OpenTime, "%d%d:")
      34. local b = tonumber( string.sub(OpenTime, nTemp1, nTemp2-1) )
      35. nTemp1, nTemp2 = string.find(OpenTime, ":%d%d")
      36. local c = tonumber( string.sub(OpenTime, nTemp1+1, nTemp2) )
      37. local strDay = string.sub(OpenTime, string.find(OpenTime, "%a+"))
      38. if( strDay == "Sun" ) then a=0
      39. elseif( strDay == "Mon" ) then a=1
      40. elseif( strDay == "Tue" ) then a=2
      41. elseif( strDay == "Wed" ) then a=3
      42. elseif( strDay == "Thu" ) then a=4
      43. elseif( strDay == "Fri" ) then a=5
      44. elseif( strDay == "Sat" ) then a=6
      45. end
      46. return a, b, c
      47. end
      48. --------------------------------------------------------------------
      49. -- ¸ó½ºÅÍ ¸®Á¨ °ü·Ã ÇÔ¼ö -------------------------------------------
      50. --------------------------------------------------------------------
      51. -- ÇÔ¼ö (¼öÁ¤ ±ÝÁö)
      52. MONSTER_NORMAL = 1 [COLOR="#ff0000"]<-- Normal[/COLOR]
      53. MONSTER_MIDBOSS = 2 [COLOR="#ff0000"]<-- Mittel Boss[/COLOR]
      54. MONSTER_BOSS = 3 [COLOR="#ff0000"]<-- Boss[/COLOR]
      55. tMonster = {}
      56. function AddMonster( nType, strMonsterId, nNum, bRed, x1, z1, x2, z2, y )
      57. nIndex = table.getn( tMonster ) + 1
      58. tMonster[nIndex] = {}
      59. tMonster[nIndex].nType = nType
      60. tMonster[nIndex].dwId = strMonsterId
      61. tMonster[nIndex].nNum = nNum
      62. tMonster[nIndex].bRed = bRed
      63. tMonster[nIndex].x1 = x1
      64. tMonster[nIndex].z1 = z1
      65. tMonster[nIndex].x2 = x2
      66. tMonster[nIndex].z2 = z2
      67. tMonster[nIndex].y = y
      68. end
      Alles anzeigen
      [/COLOR][/SIZE]

      [SIZE="1"][COLOR="Red"]0.2.1.0[/COLOR] - [COLOR="Lime"]Tax.lua[/COLOR]:[/SIZE]
      [SIZE="1"][COLOR="#00ffff"]Als vorletztes des Ordner EventFunc bieten wir nun noch diesem Datei-Source unsere Aufmerksamkeit:

      Brainfuck-Quellcode

      1. ----------------------------------------------------------------------------
      2. dofile( ".\\LuaFunc\\TaxFunc.lua" )
      3. ----------------------------------------------------------------------------
      4. MinTaxRate = 5 [COLOR="#ff0000"]<-- Minimale Steuerrate[/COLOR] -- ÃÖ¼Ò ¼¼À²
      5. MaxTaxRate = 20 [COLOR="#ff0000"]<-- Maximale Steuerrate [/COLOR] -- ÃÖ´ë ¼¼À²
      6. TaxSecretRoomRate = 45 [COLOR="#ff0000"]<-- Maximale Steuerrate (Secret Room)[/COLOR] -- ´ë·ú Á¡·É ±æµå ¼öÀÍ·ü(%)
      7. TaxLordRate = 45 [COLOR="#ff0000"]<-- Maximale Steuerrate (Lord)[/COLOR] -- ±ºÁÖ ¼öÀÍ·ü(%)
      8. AdmissionSecretRoomRate = 45 -- ÀÔÀå·á ¼öÀÍ·ü(%)
      9. AdmissionLordRate = 45 -- ±ºÁÖ ÀÔÀå·á ¼öÀÍ·ü(%)
      10. PayTime = "00:00" -- ¼¼±Ý Áö±Þ ½Ã°£
      11. ChangeTaxTime = "Mon 00:00" -- ¼¼À² º¯°æ ½Ã°£
      12. DBSaveCount = 10 [COLOR="#ff0000"][COLOR="#ff0000"]<-- Accounts mit den Höchsten Gebot können hier eingestellt werden[/COLOR][/COLOR] -- DB ÀúÀå ºóµµ(°Ç¼ö)
      13. ----------------------------------------------------------------------------
      14. -- Á¡·É±æµå Àü¿ë ±¸¸Å ¾ÆÀÌÅÛ ¼³Á¤ ------------------------------------------
      15. ----------------------------------------------------------------------------
      16. AddOccupationShopItem( "II_CHP_RED" ) [COLOR="Red"]<-- Item nach dem gewinn eines Guild Wars[/COLOR]
      Alles anzeigen
      [/COLOR][/SIZE]

      [SIZE="1"][COLOR="Red"]0.2.1.1[/COLOR] - [COLOR="Lime"]TaxFunc.lua[/COLOR]:[/SIZE]

      [SIZE="1"][COLOR="#00ffff"]Und nun, endlich am Ende angekommen, bieten wir noch dieser Datei unsere Aufmerksamkeit und kommen somit, vorrübergehend zum Schluss:

      Brainfuck-Quellcode

      1. tOccupationShopItem = {}
      2. -------------------------------------------------------------
      3. --- ¼¼À² º¯°æ ½Ã°£ üũ ÇÔ¼ö --------------------------------
      4. -------------------------------------------------------------
      5. function CheckChangeTime( strDate ) -- strDate ´Â °¡Àå ÃÖ±Ù¿¡ ¼¼À²ÀÌ Àû¿ëµÈ ½Ã°£
      6. local strNowDate = os.date("%a %H:%M")
      7. local nNowDate = tonumber( GetNowDate() ) -- ÇöÀç ³¯Â¥ ¹× ½Ã°£
      8. local nNextDate = tonumber( GetNextDate( strDate ) ) -- ´ÙÀ½ Àû¿ëµÉ ³¯Â¥ ¹× ½Ã°£
      9. if( ChangeTaxTime == strNowDate ) then -- ChangeTaxTime¿¡ ¼³Á¤ÇÑ ½Ã°£ÀÌ¸é º¯°æ
      10. return true, tostring( nNowDate )
      11. elseif( nNowDate >= nNextDate ) then -- ´ÙÀ½ Àû¿ëÇÒ ½Ã°£ÀÌ Áö³µÀ¸¸é º¯°æ
      12. return true, tostring( nNowDate ) -- (ChangeTaxTime¿¡ ±ºÁÖ°¡ ¾ÆÁ÷ ¼³Á¤µÇÁö ¾ÊÀº °æ¿ì)
      13. end
      14. return false, tostring( nNowDate )
      15. end
      16. function CheckPayTime() -- ¼¼±Ý Áö±Þ½Ã°£
      17. if( PayTime == os.date("%H:%M") ) then
      18. return true
      19. end
      20. return false
      21. end
      22. function GetNowDate()
      23. return os.date("%Y%m%d%H%M")
      24. end
      25. ----------------------------------------------------------------
      26. -- ¿©±âºÎÅÍ´Â lua¿¡¼*¸¸ »ç¿ëÇÏ´Â ÇÔ¼ö ------------------
      27. ----------------------------------------------------------------
      28. function GetNextDate( strDate )
      29. local nYear = tonumber( string.sub( strDate, 1, 4 ) )
      30. local nMonth = tonumber( string.sub( strDate, 5, 6 ) )
      31. local nDay = tonumber( string.sub( strDate, 7, 8 ) )
      32. local nWDay, nHour, nMin = GetCheckTime()
      33. -- ´ÙÀ½ Àû¿ëµÉ ³¯Â¥¸¦ ±¸ÇÑ´Ù.(strDate·Î ºÎÅÍ ´ÙÀ½ ¼³Á¤ ½Ã°£)
      34. local temp = os.date( "*t", os.time{year=nYear, month=nMonth, day=nDay, hour=nHour, min=nMin} )
      35. if( temp.wday >= nWDay ) then
      36. temp.day = temp.day + ( 7 - ( temp.wday - nWDay ) )
      37. elseif( temp.wday < nWDay ) then
      38. temp.day = temp.day + ( nWDay - temp.wday )
      39. end
      40. return os.date( "%Y%m%d%H%M", os.time(temp) )
      41. end
      42. function GetCheckTime()
      43. local strWDay = string.sub( ChangeTaxTime, 1, 3 )
      44. local nHour = string.sub( ChangeTaxTime, 5, 6 )
      45. local nMin = string.sub( ChangeTaxTime, 8, 9 )
      46. local nWDay = 2
      47. if( strWDay == "Sun" ) then nWDay = 1
      48. elseif( strWDay == "Mon" ) then nWDay = 2
      49. elseif( strWDay == "Tue" ) then nWDay = 3
      50. elseif( strWDay == "Wed" ) then nWDay = 4
      51. elseif( strWDay == "Thu" ) then nWDay = 5
      52. elseif( strWDay == "Fri" ) then nWDay = 6
      53. elseif( strWDay == "Sat" ) then nWDay = 7
      54. end
      55. return nWDay, nHour, nMin
      56. end
      57. function AddOccupationShopItem( strItemId )
      58. local nIndex = table.getn( tOccupationShopItem ) + 1
      59. tOccupationShopItem[nIndex] = strItemId
      60. end
      Alles anzeigen
      [/COLOR][/SIZE]

      [SIZE="5"][COLOR="Red"]Dieser Theard ist in Bearbeitung und ist daher noch nicht fertig, ich bitte euch noch keine Kommentare oder Kritik abzugeben! Wenn du es trotzdem tu möchtest, kannst du das über PN machen! :D[/COLOR][/SIZE]
    • Werbung zur Unterstützung des Forums ( Bitte AddBlocker deaktivieren )

    • [COLOR="Red"][SIZE="4"]Ich bitte hier, ein bisschen Hilfe-Stellung zu beziehen.
      Daher auch ich nicht "Mister Perfekt" oder "Allwissend" bin, bitte ich euch, mir ein bisschen Rat & Schlag zu den Resource-Datein zu geben!

      Wer mir helfen kann, der wird natürlich unter den Credits erscheinen und einen persöhnlichen Dank von mir bekommen, auch wenn der nicht sehr viel Wert ist!

      mfg "netw0rk cl0bber"

      Und schonmal im vorraus, DANKE![/SIZE][/COLOR]
    • Ja das stimmt schon aber er hat nicht überall was erklärt manche Teile sind auch nur eingefügt aber was ich überlesen habe:

      Dieser Theard ist in Bearbeitung und ist daher noch nicht fertig, ich bitte euch noch keine Kommentare oder Kritik abzugeben! Wenn du es trotzdem tu möchtest, kannst du das über PN machen! :D


      Also ist doch alles bei bester Ordnung.

      mfg
    • guardian;75290 schrieb:

      AddOccupationShopItem( "II_CHP_RED" ) <-- Item nach dem gewinn eines Guild Wars

      DAS ist falsch ^^
      Das ist das Was die Besitzergilde von Darkon bei ihrem Offizier da kaufen können ^^


      Nein, das stimmt nicht.
      Ob du mit Red Chips bezahlst oder nicht wird nicht da eingestelt, da stellst du in der PropItem.txt ein.
      Ich schätze wirklich das das da, dafür gut ist was du nach dem gw bekommst. Getestet ist es aber nicht von mir.
      Mfg
      Till aka. Angelsboy
    • [FONT="Tahoma"][COLOR="LemonChiffon"][SIZE="2"]

      Angelsboy;75330 schrieb:

      Nein, das stimmt nicht.
      Ob du mit Red Chips bezahlst oder nicht wird nicht da eingestelt, da stellst du in der PropItem.txt ein.
      Ich schätze wirklich das das da, dafür gut ist was du nach dem gw bekommst. Getestet ist es aber nicht von mir.
      Mfg
      Till aka. Angelsboy


      guardian meint volgendes:
      Die Gilde die Darkon besetz, kann bei dem SecretRoom Verwalzer RedChips kaufen.
      guardian hat dise funktion nun so gedeutet, das man dort einstellt WAS die Gilde dort kaufen kann.

      (als kleine definierung :) )
      mfg
      cross[/SIZE][/COLOR][/FONT]