on=@targon_item
if ((<src.targ.baseid> == i_dagger) <src.targ.type> == t_spell) || (<src.targ.type> == t_clothing) || (<src.targ.type> == t_corpse) || (<src.targ.type> == t_explosion) || (<src.targ.type> == t_door) || (<src.targ.type> == t_deed) || (<src.targ.type> == t_light_out) || (<src.targ.type> == t_spawn_char) || (<src.targ.type> == t_forge) || (<src.targ.type> == t_anvil) || (<src.targ.type> == t_chair) || (<src.targ.type> == t_telepad) || (<src.targ.type> == t_container) || (<src.targ.type> == t_eq_script) || (<src.targ.type> == t_crops) || (<src.targ.type> == t_light_lit) || (<src.targ.type> == t_door_locked) || (<src.targ.type> == t_sign_gump) || (<src.targ.type> == t_door_locked) || (<src.targ.type> == t_sign_gump) || (<src.targ.type> == t_fire) || (<src.targ.type> == t_potion) || (<src.targ.type> == t_normal) || (<src.targ.type> == t_wall) || (<src.targ.type> == t_weapon_mace_staff)
src.sysmessage @07a1 Bunlar Olmaz!
return 1
endif
if !(<src.restest 5 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 5 i_silver
elseif (rand(1) == 1)
src.sysmessage @07a1 +3 e Basarken Patladi
src.targ.remove
elseif (<src.targ.dispid> == <src.targ.baseid>)
src.newitem <src.targ.dispid>_ruin
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +3 Yapmayi Basardiniz.
src.targ.remove
elseif !(<src.restest 10 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 10 i_silver
elseif (rand(2) == 1)
src.act.bounce
src.sysmessage @07a1 +6 e Basarken Patladi
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_ruin)
src.newitem <src.targ.dispid>_might
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +6 Yapmayi Basardiniz.
src.targ.remove
if !(<src.restest 20 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 20 i_silver
elseif(rand(3) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{6,10}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_might)
src.newitem <src.targ.dispid>_force
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +9 Yapmayi Basardiniz.
src.targ.remove
elseif !(<src.restest 40 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 40 i_silver
elseif (rand(4) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{8,12}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_force)
src.newitem <src.targ.dispid>_power
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +12 Yapmayi Basardiniz.
src.targ.remove
elseif !(<src.restest 60 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 60 i_silver
elseif (rand(5) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{10,16}
src.act.bounce
src.targ.remove
elseif !(<src.restest 95 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 95 i_silver
elseif (rand(6) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{15,20}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_power)
src.newitem <src.targ.dispid>_vanq
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +15 Yapmayi Basardiniz.
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_vanq)
src.sysmessage @07a1 Daha fazla yukseltemezsiniz!
return 1
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
on=@targon_item
if ((<src.targ.baseid> == i_dagger) <src.targ.type> == t_spell) || (<src.targ.type> == t_clothing) || (<src.targ.type> == t_corpse) || (<src.targ.type> == t_explosion) || (<src.targ.type> == t_door) || (<src.targ.type> == t_deed) || (<src.targ.type> == t_light_out) || (<src.targ.type> == t_spawn_char) || (<src.targ.type> == t_forge) || (<src.targ.type> == t_anvil) || (<src.targ.type> == t_chair) || (<src.targ.type> == t_telepad) || (<src.targ.type> == t_container) || (<src.targ.type> == t_eq_script) || (<src.targ.type> == t_crops) || (<src.targ.type> == t_light_lit) || (<src.targ.type> == t_door_locked) || (<src.targ.type> == t_sign_gump) || (<src.targ.type> == t_door_locked) || (<src.targ.type> == t_sign_gump) || (<src.targ.type> == t_fire) || (<src.targ.type> == t_potion) || (<src.targ.type> == t_normal) || (<src.targ.type> == t_wall) || (<src.targ.type> == t_weapon_mace_staff)
src.sysmessage @07a1 Bunlar Olmaz!
return 1
endif
if !(<src.restest 5 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 5 i_silver
elseif (rand(1) == 1)
src.sysmessage @07a1 +3 e Basarken Patladi
src.targ.remove
elseif (<src.targ.dispid> == <src.targ.baseid>)
src.newitem <src.targ.dispid>_ruin
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +3 Yapmayi Basardiniz.
src.targ.remove
elseif !(<src.restest 10 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 10 i_silver
elseif (rand(2) == 1)
src.act.bounce
src.sysmessage @07a1 +6 e Basarken Patladi
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_ruin)
src.newitem <src.targ.dispid>_might
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +6 Yapmayi Basardiniz.
src.targ.remove
elseif (<src.restest 20 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 20 i_silver
elseif(rand(3) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{6,10}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_might)
src.newitem <src.targ.dispid>_force
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +9 Yapmayi Basardiniz.
src.targ.remove
elseif !(<src.restest 40 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 40 i_silver
elseif (rand(4) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{8,12}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_force)
src.newitem <src.targ.dispid>_power
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +12 Yapmayi Basardiniz.
src.targ.remove
elseif !(<src.restest 60 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 60 i_silver
elseif (rand(5) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{10,16}
src.act.bounce
src.targ.remove
elseif !(<src.restest 95 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 95 i_silver
elseif (rand(6) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{15,20}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_power)
src.newitem <src.targ.dispid>_vanq
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +15 Yapmayi Basardiniz.
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_vanq)
src.sysmessage @07a1 Daha fazla yukseltemezsiniz!
return 1
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
on=@targon_item
if ((<src.targ.baseid> == i_dagger) <src.targ.type> == t_spell) || (<src.targ.type> == t_clothing) || (<src.targ.type> == t_corpse) || (<src.targ.type> == t_explosion) || (<src.targ.type> == t_door) || (<src.targ.type> == t_deed) || (<src.targ.type> == t_light_out) || (<src.targ.type> == t_spawn_char) || (<src.targ.type> == t_forge) || (<src.targ.type> == t_anvil) || (<src.targ.type> == t_chair) || (<src.targ.type> == t_telepad) || (<src.targ.type> == t_container) || (<src.targ.type> == t_eq_script) || (<src.targ.type> == t_crops) || (<src.targ.type> == t_light_lit) || (<src.targ.type> == t_door_locked) || (<src.targ.type> == t_sign_gump) || (<src.targ.type> == t_door_locked) || (<src.targ.type> == t_sign_gump) || (<src.targ.type> == t_fire) || (<src.targ.type> == t_potion) || (<src.targ.type> == t_normal) || (<src.targ.type> == t_wall) || (<src.targ.type> == t_weapon_mace_staff)
src.sysmessage @07a1 Bunlar Olmaz!
return 1
endif
if !(<src.restest 5 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
else
src.consume 5 i_silver
elseif (rand(1) == 1)
src.sysmessage @07a1 +3 e Basarken Patladi
src.targ.remove
elseif (<src.targ.dispid> == <src.targ.baseid>)
src.newitem <src.targ.dispid>_ruin
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +3 Yapmayi Basardiniz.
src.targ.remove
endif
endif
endif
if !(<src.restest 10 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif (<src.restest 10 i_silver>)
src.consume 10 i_silver
elseif (rand(2) == 1)
src.sysmessage @07a1 +6 e Basarken Patladi
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_ruin)
src.newitem <src.targ.dispid>_might
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +6 Yapmayi Basardiniz.
src.targ.remove
endif
endif
endif
if !(<src.restest 20 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif (<src.restest 20 i_silver>)
src.consume 20 i_silver
elseif(rand(3) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{6,10}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_might)
src.newitem <src.targ.dispid>_force
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +9 Yapmayi Basardiniz.
src.targ.remove
endif
endif
endif
if !(<src.restest 40 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif (<src.restest 40 i_silver>)
src.consume 40 i_silver
elseif (rand(4) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{8,12}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_force)
src.newitem <src.targ.dispid>_power
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +12 Yapmayi Basardiniz.
src.targ.remove
endif
endif
endif
if !(<src.restest 60 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif (<src.restest 60 i_silver>)
src.consume 60 i_silver
elseif (rand(5) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{10,16}
src.act.bounce
src.targ.remove
endif
endif
endif
if !(<src.restest 95 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif (<src.restest 95 i_silver>)
src.consume 95 i_silver
elseif (rand(6) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{15,20}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_power)
src.newitem <src.targ.dispid>_vanq
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +15 Yapmayi Basardiniz.
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_vanq)
src.sysmessage @07a1 Daha fazla yukseltemezsiniz!
return 1
endif
endif
endif
endif
on=@targon_item
if ((<src.targ.baseid> == i_dagger) <src.targ.type> == t_spell) || (<src.targ.type> == t_clothing) || (<src.targ.type> == t_corpse) || (<src.targ.type> == t_explosion) || (<src.targ.type> == t_door) || (<src.targ.type> == t_deed) || (<src.targ.type> == t_light_out) || (<src.targ.type> == t_spawn_char) || (<src.targ.type> == t_forge) || (<src.targ.type> == t_anvil) || (<src.targ.type> == t_chair) || (<src.targ.type> == t_telepad) || (<src.targ.type> == t_container) || (<src.targ.type> == t_eq_script) || (<src.targ.type> == t_crops) || (<src.targ.type> == t_light_lit) || (<src.targ.type> == t_door_locked) || (<src.targ.type> == t_sign_gump) || (<src.targ.type> == t_door_locked) || (<src.targ.type> == t_sign_gump) || (<src.targ.type> == t_fire) || (<src.targ.type> == t_potion) || (<src.targ.type> == t_normal) || (<src.targ.type> == t_wall) || (<src.targ.type> == t_weapon_mace_staff)
src.sysmessage @07a1 Bunlar Olmaz!
return 1
endif
if !(<src.restest 5 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 5 i_silver
elseif (rand(1) == 1)
src.sysmessage @07a1 +3 e Basarken Patladi
src.targ.remove
elseif (<src.targ.dispid> == <src.targ.baseid>)
src.newitem <src.targ.dispid>_ruin
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +3 Yapmayi Basardiniz.
src.targ.remove
elseif !(<src.restest 10 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 10 i_silver
elseif (rand(2) == 1)
src.sysmessage @07a1 +6 e Basarken Patladi
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_ruin)
src.newitem <src.targ.dispid>_might
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +6 Yapmayi Basardiniz.
src.targ.remove
elseif !(<src.restest 20 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 20 i_silver
elseif(rand(3) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{6,10}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_might)
src.newitem <src.targ.dispid>_force
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +9 Yapmayi Basardiniz.
src.targ.remove
elseif !(<src.restest 40 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 40 i_silver
elseif (rand(4) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{8,12}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_force)
src.newitem <src.targ.dispid>_power
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +12 Yapmayi Basardiniz.
src.targ.remove
elseif !(<src.restest 60 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 60 i_silver
elseif (rand(5) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{10,16}
src.act.bounce
src.targ.remove
elseif !(<src.restest 95 i_silver>)
src.sysmessage @07a1 Item'e + basabilmek icin yeterince Silver'iniz yok
elseif
src.consume 95 i_silver
elseif (rand(6) == 1)
src.message Iteminiz Patladi Teselli Parasi Aldiniz
src.newitem i_silver{15,20}
src.act.bounce
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_power)
src.newitem <src.targ.dispid>_vanq
src.act.bounce
src.sysmessage @07a1 <src.targ.name>yi +15 Yapmayi Basardiniz.
src.targ.remove
elseif (<src.targ.baseid> == <src.targ.dispid>_vanq)
src.sysmessage @07a1 Daha fazla yukseltemezsiniz!
return 1
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
Localated : maşşallah iflere bak
iki for 5-10 def ile hepsini o iflerin olduğu kadar satırda yapardınız