Silindi
Legend(Umur) benim yakın bi arkadaşımdır sorun yok :D manyak herif benim avatarımuı koymuş herkes ben sanıyo nicke bakın :D

Ayrıca ben avatarımı değiştirdim 8)
Isiniz gucunuz topic dagitmak haa, baska bir seyini yok...

@Raskol
Timer'i dusuk yaptim yukseltirsen eger sorun olmaz. Bende sorun yok cunku... Bir kac potion ekledim. Istediginizi kendiniz eklersiniz, eklemesi cok basit inceledigin zaman.
Silindi
Members
2
@Akillis
delay dediğim yanlış anlaşılmış.
yada ben yanlış anlatmışım.

Mesela potion'a tıkladığında hemen yapıyor.
O arada bir delay verirsen daha iyi olur diye düşündüm.

Ayrıca mesela çantada 25 tane i_potion_poisongreater var.
Fakat tıkladığımda yeteri kadar mevcut değil diyor :)

Birde o nightsight'ta falan uyarı olursa daha güzel olur.
Onlarda dediğin gibi eklenir.

Tekrar eyvallah.
Defname'de delay var dikkat edersen onu arttir diyorum bende :)

Amountable olmus olabilir sistem bilmiyorum, benim Generic oldugu icin :D
Silindi
Members
2
La ben o delay'ı demiyorum.
Yine anlamadın neyse ^^'

msn'de bazı ayrıntıları konuştuk biraz fix attım.
Sorun varsa yazabilirsiniz buraya!

Aşağıdaki bölümde biraz oynama yaptım.
if !(<src.restest <def.pot_amount> <def.pot_cure_normal>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet cure potion bulunmamaktadır!
  return 1
endif


/////////////////////////////////////////////////////////////////////////////////
// Scripter Name: Akillis
/////////////////////////////////////////////////////////////////////////////////

[defname potion_congig]
pot_gm 1 // Playerin 100.0 alchemy ile kullanabilmesi. (0=Hayir 1=Evet)
pot_use_delay 1 // potionları degistirmek için sure kullan? (0=Hayir 1=Evet)
pot_delay_time 5 // saniyede
pot_amount 2 // Playerin ne kadar potion degistirecegi Ornek: 10 (Greater heal potion yapabilmek için 10 heal potion gerekli.)

// Bu konfigurasyon sadece functionlar eger playerin potion degisikligi yapmasi için 100.0 alchemy gerekiyorsa.
pot_lesser_normal 500 // Lesser potioni, Normal potion degistirmek için gereken minimum skill
pot_normal_Greater 750 // Normal potioni, Greater potion degistirmek için gereken minimum skill
pot_greater_deadly 1000 // Greater potioni, Deadly potion degistirmek için gereken minimum skill

// Potion ID ayarlari

// Cure Potions
pot_cure_lesser i_potion_cureless
pot_cure_normal i_potion_cure
pot_cure_greater i_potion_curegreat

// Agility Potions
pot_agility_normal i_potion_agility
pot_agility_greater i_potion_agilitygreat

// Explosion Potions
pot_Explosion_lesser i_potion_Explosionless
pot_Explosion_normal i_potion_Explosion
pot_Explosion_greater i_potion_Explosiongreat

// Heal Potions
pot_Heal_lesser i_potion_Healless
pot_Heal_normal i_potion_Heal
pot_Heal_greater i_potion_Healgreat

// Poison Potions
pot_Poison_lesser i_potion_Poisonless
pot_Poison_normal i_potion_Poison
pot_Poison_greater i_potion_Poisongreat
pot_Poison_deadly i_potion_PoisonDeadly

// Refresh Potions
pot_Refresh_normal i_potion_Refresh
pot_Refresh_greater i_potion_RefreshTotal

// Strength Potions
pot_Strength_normal i_potion_Strength
pot_Strength_greater i_potion_StrengthGreat

[itemdef i_potion_laboratory]
id 6237
type t_normal
name potion laboratory
value 98000

on=@create
color 02e
attr attr_newbie

on=@dclick
if <cont> != <src.findlayer(21)> 
	src.sms Bunu kullanabilmeniz için çantanızda olmalıdır!
	return 1
endif

if (<src.restest i_pot_transform_delay>)
src.sms Tekrar kullanabilmek için <eval <def.pot_delay_time>> saniye beklemelisiniz.
return 1
endif

if (<def.pot_gm>==1)
if (<src.alchemy>==1000)
  target
  src.smy Dönüştürmek istediğiniz potionu seçiniz.
  src.sms Aynı potiondan <eval <def.pot_amount>> adet olmalıdır!
else
  src.sms Bunu yapabilmeniz için 100.0 Alchemy skilline ihtiyacınız vardır!
  return 1
endif
else
target
src.smy Dönüştürmek istediğiniz potionu seçiniz.
src.sms Aynı potiondan <eval <def.pot_amount>> adet olmalıdır!
endif
return 1

on=@targon_char
src.sms Sadece potionları seçebilirsiniz!
return 1

on=@targon_ground
src.sms Sadece potionları seçebilirsiniz!
return 1

on=@targon_cancel
return 1

on=@targon_item
if !(<src.targ.type>==t_potion)
src.sms Sadece potionları seçebilirsiniz!
return 1
endif

var.created 0

// Lesser Cure potionları donustur
if (<src.targ.defname>==<def.pot_cure_lesser>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_lesser_normal>)
   src.sms Dönüştürmek için <fval <def.pot_lesser_normal>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_cure_lesser>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet lesser cure potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_cure_lesser>
src.newitem <def.pot_cure_normal>
new.bounce
var.created 1
src.smy Lesser cure potionları, 1 Cure potiona çevirdiniz.
endif

// Cure potionları donusturme
if (<src.targ.defname>==<def.pot_cure_normal>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sms Dönüştürmek için <fval <def.pot_normal_greater>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_cure_normal>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet cure potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_cure_normal>
src.newitem <def.pot_cure_greater>
new.bounce
var.created 1
src.smy Cure potionları, 1 Greater cure potiona çevirdiniz.
endif

// Agility potionları donusturme
if (<src.targ.defname>==<def.pot_agility_normal>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sms Dönüştürmek için <fval <def.pot_normal_greater>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_agility_normal>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet agility potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_agility_normal>
src.newitem <def.pot_agility_greater>
new.bounce
var.created 1
src.smy Agility potionları, 1 Greater agility potiona çevirdiniz.
endif

// Lesser Explosion potionları donusturme
if (<src.targ.defname>==<def.pot_Explosion_lesser>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_lesser_normal>)
   src.sms Dönüştürmek için <fval <def.pot_lesser_normal>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_Explosion_lesser>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet lesser explosion potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_Explosion_lesser>
src.newitem <def.pot_Explosion_normal>
new.bounce
var.created 1
src.smy Lesser explosion potionları, 1 Explosion potiona çevirdiniz.
endif

// Explosion potionları donusturme
if (<src.targ.defname>==<def.pot_Explosion_normal>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sms Dönüştürmek için <fval <def.pot_normal_greater>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_Explosion_normal>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet explosion potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_Explosion_normal>
src.newitem <def.pot_Explosion_greater>
new.bounce
var.created 1
src.smy Explosion potionları, 1 Greater explosion potiona çevirdiniz.
endif

// Lesser Heal potionları donusturme
if (<src.targ.defname>==<def.pot_Heal_lesser>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_lesser_normal>)
   src.sms Dönüştürmek için <fval <def.pot_lesser_normal>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_Heal_lesser>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet lesser heal potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_Heal_lesser>
src.newitem <def.pot_Heal_normal>
new.bounce
var.created 1
src.smy Lesser heal potionları, 1 Heal potiona çevirdiniz.
endif

// Heal potionları donusturme
if (<src.targ.defname>==<def.pot_Heal_normal>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sms Dönüştürmek için <fval <def.pot_normal_greater>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_Heal_normal>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet heal potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_Heal_normal>
src.newitem <def.pot_Heal_greater>
new.bounce
var.created 1
src.smy Heal potionları, 1 Greater heal potiona çevirdiniz. <def.pot_txt_13>
endif

// Lesser Poison potionları donusturme
if (<src.targ.defname>==<def.pot_Poison_lesser>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_lesser_normal>)
   src.sms Dönüştürmek için <fval <def.pot_lesser_normal>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_Poison_lesser>>)
  src.sms Çantanızda<eval <def.pot_amount>> adet lesser poison potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_Poison_lesser>
src.newitem <def.pot_Poison_normal>
new.bounce
var.created 1
src.smy Lesser poison potionları, 1 Poison potiona çevirdiniz.
endif

// Poison potionları donusturme
if (<src.targ.defname>==<def.pot_Poison_normal>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sms Dönüştürmek için <fval <def.pot_normal_greater>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_Poison_normal>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet poison potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_Poison_normal>
src.newitem <def.pot_Poison_greater>
new.bounce
var.created 1
src.smy Poison potionları, 1 Greater poison potiona çevirdiniz.
endif

// Greater Poison potionları donusturme
if (<src.targ.defname>==<def.pot_Poison_greater>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_greater_deadly>)
   src.sms Dönüştürmek için <fval <def.pot_greater_deadly>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_Poison_normal>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet poison potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_Poison_greater>
src.newitem <def.pot_Poison_deadly>
new.bounce
var.created 1
src.smy Greater poison potionları, 1 Deadly poison potion çevirdiniz.
endif

// Refresh potionları donusturme
if (<src.targ.defname>==<def.pot_Refresh_normal>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sms Dönüştürmek için <fval <def.pot_normal_greater>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_Refresh_normal>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet refresh potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_Refresh_normal>
src.newitem <def.pot_Refresh_greater>
new.bounce
var.created 1
src.smy Refresh potionları, 1 Greater refresh potiona çevirdiniz.
endif

// Strength potionları donusturme
if (<src.targ.defname>==<def.pot_Strength_normal>)
if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sms Dönüştürmek için <fval <def.pot_normal_greater>> Alchemy skilline ihtiyacınız vardır!
   return 1
  endif
endif
if !(<src.restest <def.pot_amount> <def.pot_Strength_normal>>)
  src.sms Çantanızda <eval <def.pot_amount>> adet strength potion bulunmamaktadır!
  return 1
endif
src.consume <def.pot_amount> <def.pot_Strength_normal>
src.newitem <def.pot_Strength_greater>
new.bounce
var.created 1
src.smy Strength potionları, 1 Greater strength potiona çevirdiniz.
endif

if (<var.created>==1)
if (<def.pot_use_delay>==1)
  src.newitem i_pot_transform_delay
  new.timer <def.pot_delay_time>
  new.equip
endif
endif

return 1

[itemdef i_pot_transform_delay]
id i_memory
type t_eq_script
name Transform Delay

on=@timer
remove
return 1

[eof]



Üye Ol veya Giriş Yap

Bu forum başlığına mesaj atmak istiyorsanız hemen üye olun veya giriş yapın.