UO-Dev Arama


Geliştirilmiş potion sistemi

Yazar: akkkk
Tarih: 29-07-2009 13:11


Paylaş : Paylaş

Kod:
/////////////////////////////////////////////////////////////////////////////////
// Scripter Name: Akillis
// Shard Name: The Rosario Game
// Shard Adress : www.rosario.gen.tr
// Sphere Version: 56b
//
// Bu dosya içindeki kodlar TheRaskol tarafından yazılmış veya editlenmiştir.
// The codes was writting or editing by Raskol Serna
/////////////////////////////////////////////////////////////////////////////////

[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.sysmessage @0845,1,1 Bunu kullanabilmeniz için çantanızda olmalıdır!
return 1
endif

if (<src.restest i_pot_transform_delay>)
src.sysmessage @0845,1,1 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.sysmessage @666,1,1 Dönüştürmek istediğiniz potionu seçiniz.
  src.sysmessage @0845,1,1 Aynı potiondan <eval <def.pot_amount>> adet olmalıdır!
else
  src.sysmessage @0845,1,1 Bunu yapabilmeniz için 100.0 Alchemy skilline ihtiyacınız vardır!
  return 1
endif
else
target
src.sysmessage @666,1,1 Dönüştürmek istediğiniz potionu seçiniz.
src.sysmessage @0845,1,1 Aynı potiondan <eval <def.pot_amount>> adet olmalıdır!
endif
return 1

on=@targon_char
src.sysmessage @0845,1,1 Sadece potionları seçebilirsiniz!
return 1

on=@targon_ground
src.sysmessage @0845,1,1 Sadece potionları seçebilirsiniz!
return 1

on=@targon_cancel
return 1

on=@targon_item
if !(<src.targ.type>==t_potion)
src.sysmessage @0845,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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.sysmessage @0845,1,1 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.sysmessage @0845,1,1 Ç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.sysmessage @666,1,1 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]



Yorumlar

Henüz yorum yapılmamıştır.

Oylamalar

Oylama :
Üyelerin oylama ortalaması (10 dışında) : Henüz Oylanmamış   
Oylar: 0

Benzer Sayfalar

SayfalarYorumlarGönderenTarih
Guild sistemi0Mrs.xariyla04-03-2012
House sistemi0Mrs.xariyla04-03-2012
Maaş Sistemi0Kraagnar17-11-2011
Potion Stone0Roes13-10-2011
Flash üyelik sistemi0Culum25-09-2011


Keywords:

ultima online, RunUO, ultima online download, sphere scripting, role play, uo grafik, second age ultima, uo loop, macroman, pvp server, server kurulumu, sphere, multool, ml mulls, 56b 55r 55i, htmlgumps, client 4x, client edit, sphere release, osi, rp server, sunucular, ghost mouse, inside uo, kingdom reborn, stygian abyss, uo nasıl oynanır, mondain's legacy, age of shadows, world build, grandmaster, ultima online pvp, player dosyaları, ultima online indir, frp game, RunUO 1.0.0, razor, uo rice, hue editör, skill tools, ultima online patch, axis, world build, verdata, verdata patcher, map editör, gump editör, mul patcher, aos mulls, scriptler, anim edit, anim publish, hues mul, hosting vps, event dialog, account sistemi, skill gain, static yapımı,