ID:141273
 
Code:
obj/Bird
icon = 'scroll.dmi'
icon_state = ""
layer=2
verb/LearnJutsu()
usr<<"You Learn To Make Clay Birds"
usr.verbs += new /mob/Clay/verb/ClaysBird()
verb/Get()
set src in oview(1)
src.loc = usr
usr<<"You picked up a [src]"
mob/var/owner
mob
Clay
verb
ClaysBird()
set category="Ninjutsu"
set name="Make Clay Bird"
usr.Bird()
mob/proc
Bird()
if(usr.Chakra<=1000)
usr<<"You Need More Chakra"
return
else
var/mob/ClayBird/B = new()
B.owner=src
B.name = "[usr] Bird"
B.loc = locate(src.x, src.y - 1, src.z)
B.MTaijutsu = src.MTaijutsu*5
B.health = 50000
src.Chakra -= 10000
return
/* else
var/mob/failedfrog/F = new()
F.loc=usr.loc
F.y-=1
view() << "<font size=1><font face=verdana><b><font color=white>[usr]<font color=green> Says: Oops.."
sleep(50)
del(F)*/


obj
part2
icon='deidara mount.dmi'
icon_state="-1,1"
name="1"
density=1
New()
..()
src.CreateOverlays()
obj
part3
icon='deidara mount.dmi'
icon_state="1,1"
name="2"
density=1
New()
..()
src.CreateOverlays()
obj
part4
icon='deidara mount.dmi'
icon_state="-1,0"
name="3"
density=1
New()
..()
src.CreateOverlays()
obj
part5
icon='deidara mount.dmi'
icon_state="0,1"

name="4"
density=1
New()
..()
src.CreateOverlays()
obj
part6
icon='deidara mount.dmi'
icon_state="1,0"
name="5"
density=1
New()
..()
src.CreateOverlays()

mob/var/ride
mob
ClayBird
icon='deidara mount.dmi'
icon_state="0,0"
density=1
layer=0
New()
..()
overlays+=/obj/part2
overlays+=/obj/part3
overlays+=/obj/part4
overlays+=/obj/part5
overlays+=/obj/part6
..()
verb/Ride()
set src in oview(1)
set category="Commandds"
for(var/mob/ClayBird/G in oview(2,usr))
if(G.owner==usr)
if(!usr.ride&&!G.ride)
usr.ride=1
if(G)
G.ride=1
usr.Fighting=1
else
usr.ride=0
usr.Fighting=0
if(G)
G.ride=0
Move()
..()
var/mob/O = src.owner
if(O.ride&&src.ride)
O.loc=src.loc
O.dir=src.dir
O.y+=1

atom/proc
CreateOverlays()
for(var/xi=1,xi<=3,xi++)
for(var/yi=1,yi<=3,yi++)
if(xi||yi)
var/obj/O = new()
O.icon=src.icon
O.icon_state="[xi],[yi]"
O.density=src.density
O.dir=src.dir
O.layer=11
O.pixel_x=-64
O.pixel_y=-64
if(xi)O.pixel_x += (32*xi)
if(yi)O.pixel_y += (32*yi)
src.overlays+=O


Problem description: OK i Got this But when use Jutsu It Goes all over place and 2 to 4 parts don't show

http://www.zshare.net/download/59386832e2d2a31d/
is icon


Bump
New is wrongly intended, and when creating a new object it calls the same proc over and over again.

You're calling new even when it's just supposed to be in your inventory.

Setting same pixel_y and pixel_x for every darn thing.

Making normal /obj/ objects.

Commands is 1 "d".

You should stop ripping source codes.

An astronomical scale is 93 million miles (150 million kilometers)
In response to Mysame
This Really Don't Help Me
In response to Jub369
bump
I know for a fact you didn't create. Try consulting the person who did, if you know him/he, first. Then try the forums. Also, if you have no intention of learning to program, then don't ask how to fix "your" programming on the forums. >_>

Mysame wrote:
New is wrongly intended, and when creating a new object it calls the same proc over and over again.

Calling new() to create the same object as the parent inside the parent's New() override creates an infinite loop, thus creating lag.

You're calling new even when it's just supposed to be in your inventory.

new() has no effect with verbs, so it's pointless to use it with them is what I think Mysame means.

Setting same pixel_y and pixel_x for every darn thing.

He means you've set their pixel_x and pixel_y vars to the same thing, so they all appear on the same spot, if not in all the wrong ones.

You should stop ripping source codes.

I strongly recommend this...