Hesabına erişemeyen eski üyeler Discord üzerinden yardım alabilir.



Biliyorsunuz ki bir kac gun once ARGTXT ile ilgili bir topic vardi bu potion sistemi hakkinda ve zaman bulunca yazicagimi soylemistim... Umarim anladigim ve istenildigi gibi olmustur...

Gule gule kullanin ...


// Scripter: Akillis
// Tarih: Kasim 2007
// Emege saygi lutfen ... Bu header silinmez ise minnettar kalirim.

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

// Bu konfigurasyon sadece functionlar eger playerin potion degisikligi yapmasi icin 100.0 alchemy gerekiyorsa.
pot_lesser_normal 400	// Lesser potioni, Normal potion degistirmek icin gereken minimum skill
pot_normal_Greater 600	// Normal potioni, Greater potion degistirmek icin gereken minimum skill
pot_greater_deadly 900	// Greater potioni, Deadly potion degistirmek icin 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 2000

on=@create
color 02e
attr attr_newbie

on=@dclick
if (<src.restest i_pot_transform_delay>)
 src.sysmessage @38,,1 Hata: Tekrar kullanabilmek icin <eval <def.pot_delay_time>> saniye beklemelisiniz.
 return 1
endif

if (<def.pot_gm>==1)
 if (<src.alchemy>==1000)
  target @03b2,,1, Donusturmek istediginiz potion seciniz?
  src.sysmessage @47,,1 Donusturmek icin cantanizda <eval <def.pot_amount>> tane potion olmali.
 else
  src.sysmessage @38,,1 Hata: Bunu yapabilmeniz icin 100.0 Alchemy skilline ihtiyaciniz var.
  return 1
 endif
else
 target @03b2,,1, Donusturmek istediginiz potion seciniz?
 src.sysmessage @47,,1 Donusturmek icin cantanizda <eval <def.pot_amount>> tane potion olmali.
endif
return 1

on=@targon_char
src.sysmessage @38,,1 Hata: Sadece potionlari secebilirsiniz.
return 1

on=@targon_ground
src.sysmessage @38,,1 Hata: Sadece potionlari secebilirsiniz.
return 1

on=@targon_cancel
return 1

on=@targon_item
if !(<src.targ.type>==t_potion)
 src.sysmessage @38,,1 Hata: Sadece potionlari secebilirsiniz.
 return 1
endif

var.created 0

// Lesser Cure Potionlari donustur
if (<src.targ.defname>==<def.pot_cure_lesser>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_lesser_normal>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_lesser_normal>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_cure_lesser>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_cure_lesser>
 src.newitem <def.pot_cure_normal>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Lesser cure potionlari, 1 Cure potiona cevirdiniz.
endif

// Cure Potionlari donusturme
if (<src.targ.defname>==<def.pot_cure_normal>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_normal_greater>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_cure_normal>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_cure_normal>
 src.newitem <def.pot_cure_greater>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Cure potionlari, 1 Greater cure potiona cevirdiniz.
endif

// Agility Potionlari donusturme
if (<src.targ.defname>==<def.pot_agility_normal>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_normal_greater>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_agility_normal>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_agility_normal>
 src.newitem <def.pot_agility_greater>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Agility potionlari, 1 Greater agility potiona cevirdiniz.
endif

// Lesser Explosion Potionlari donusturme
if (<src.targ.defname>==<def.pot_Explosion_lesser>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_lesser_normal>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_lesser_normal>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_Explosion_lesser>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_Explosion_lesser>
 src.newitem <def.pot_Explosion_normal>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Lesser explosion potionlari, 1 Explosion potiona cevirdiniz.
endif

// Explosion Potionlari donusturme
if (<src.targ.defname>==<def.pot_Explosion_normal>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_normal_greater>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_Explosion_normal>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_Explosion_normal>
 src.newitem <def.pot_Explosion_greater>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Explosion potionlari, 1 Greater explosion potiona cevirdiniz.
endif

// Lesser Heal Potionlari donusturme
if (<src.targ.defname>==<def.pot_Heal_lesser>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_lesser_normal>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_lesser_normal>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_Heal_lesser>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_Heal_lesser>
 src.newitem <def.pot_Heal_normal>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Lesser heal potionlari, 1 Heal potiona cevirdiniz.
endif

// Heal Potionlari donusturme
if (<src.targ.defname>==<def.pot_Heal_normal>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_normal_greater>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_Heal_normal>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_Heal_normal>
 src.newitem <def.pot_Heal_greater>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Heal potionlari, 1 Greater heal potiona cevirdiniz. <def.pot_txt_13>
endif

// Lesser Poison Potionlari donusturme
if (<src.targ.defname>==<def.pot_Poison_lesser>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_lesser_normal>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_lesser_normal>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_Poison_lesser>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_Poison_lesser>
 src.newitem <def.pot_Poison_normal>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Lesser poison potionlari, 1 Poison potiona cevirdiniz.
endif

// Poison Potionlari donusturme
if (<src.targ.defname>==<def.pot_Poison_normal>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_normal_greater>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_Poison_normal>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_Poison_normal>
 src.newitem <def.pot_Poison_greater>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Poison potionlari, 1 Greater poison potiona cevirdiniz.
endif

// Greater Poison Potionlari donusturme
if (<src.targ.defname>==<def.pot_Poison_greater>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_greater_deadly>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_greater_deadly>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_Poison_normal>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_Poison_greater>
 src.newitem <def.pot_Poison_deadly>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Greater poison potionlari, 1 Deadly poison potion cevirdiniz.
endif

// Refresh Potionlari donusturme
if (<src.targ.defname>==<def.pot_Refresh_normal>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_normal_greater>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_Refresh_normal>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_Refresh_normal>
 src.newitem <def.pot_Refresh_greater>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Refresh potionlari, 1 Greater refresh potiona cevirdiniz.
endif

// Strength Potionlari donusturme
if (<src.targ.defname>==<def.pot_Strength_normal>)
 if !(0<def.gm>)
  if (<src.alchemy> < <def.pot_normal_greater>)
   src.sysmessage @38,,1 Hata: Bu potion donusturmek icin <fval <def.pot_normal_greater>> Alchemy skilline ihtiyaciniz var.
   return 1
  endif
 endif
 if !(<src.restest <def.pot_amount> <def.pot_Strength_normal>>)
  src.sysmessage @38,,1 Hata: Cantanizda yeteri kadar potion yok.
  return 1
 endif
 src.consume <def.pot_amount> <def.pot_Strength_normal>
 src.newitem <def.pot_Strength_greater>
 new.bounce
 var.created 1
 src.sysmessage @03b2,,1, Strength potionlari, 1 Greater strength potiona cevirdiniz.
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]
Eline sağlık Çok yararlı olucaktır eminim ama emeğe saygı konusunda biraz endişeliyim
Silindi
Expert
1.7
eline sağlık güzel bir paylaşım olmuş =)
çok te$ekkürler..
konuyu up'ladığım için üzgünüm. bu sistemi isteyen bendim.
$u an linux'tayım o yüzden test etme $ansım yok (sphere kursam bile ultima ile ilgili sıkıntı var malum) ama en kısa zamanda testini yapıp eksiğini gediğini ya da güzelle$tirilebilir bi yanı var ise (ne haddimize ise) düzenlemeyi sonra da görü$lerimi bildirmeyi dü$ünüyorum.

çok te$ekkürler tekrar..
eksigi gedigi yok sanrm akill gusel bi script
Sağolasın Tebrikler
Eline sağlık..
Silindi
Expert
14.3
Şu ana kadar farkettiğim sadece delay kısmında sorun var Emircim.

Birde potion'a tıkladığında eğer nightshight potion gibi greater'ı vs.
yapılamayan bir potion ise uyarı vermesi daha hoş olur.

Güzel ama tebrikler!
O diilde bi açıklayında ifler mifler 'e bakmak zorunda kalmasak hoş olurdu yaa :D ne işe yarıo bu şinciq




EMİR ELLERİN DERT GÖRMESİN (gerçi nasır bağlamıştır ama neyse :P)
Legend Michaell'in resminimi kullaniyorsun ..
Silindi
Expert
14.3
aa ben onu Micheall zannetmiştim =)
Bende ilk bakinca oyle zannetmistim.. :)
Silindi
Expert
14.3
Ağlamak istiyorum xD
xD
Ağlayabilirsin RaskolxD



Üye Ol veya Giriş Yap

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