TuZaKK 1
TuZaKK
Mt2Hizmet 1
Mt2Hizmet
[DEV]AB 1
[DEV]AB
R 1
Roksam
farkmt2official 1
farkmt2official
emirhanHCL 1
emirhanHCL
Hikaye Ekle

[Python] - Fast Skill Point Distribute.

Birkac gün önce kendime yazmistim, belki size yardimci olur.

strg basinca 17ye kadar bütün pointler dağıtilir.

VjCBcab.gif


uiCharacter.py ac ve ara:

Fonksiyon
Kod:
def OnPressedSlotButton(

Komple degistir bunun ile:

Kod:
	## Skill Level Up Button
	def OnPressedSlotButton(self, slotNumber):
		srcSlotIndex = self.__RealSkillSlotToSourceSlot(slotNumber)

		skillIndex = player.GetSkillIndex(srcSlotIndex)
		curLevel = player.GetSkillLevel(srcSlotIndex)
		maxLevel = skill.GetSkillMaxLevel(skillIndex)
		curRealLevel = 0 + curLevel
		if app.IsPressed(app.DIK_LCONTROL):
			for i in xrange(17):
				net.SendChatPacket("/skillup " + str(skillIndex))
				curRealLevel += 1
				chat.AppendChat(7, "curLevel = %d" % curRealLevel)
				
				if curRealLevel >= 17:
					return
		else:
			net.SendChatPacket("/skillup " + str(skillIndex))

Kod:
import chat unutmayin
 
Son düzenleme:
It doesnt matter, there is no such as memory issue with this change.
Player's use the same way, at almost the same speed by distrubiting manually.
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst