From: <ma...@us...> - 2006-09-26 14:20:48
|
Update of /cvsroot/exult/./exult/content/bgkeyring/src/items In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv31231/content/bgkeyring/src/items Modified Files: fishingrod.uc bucket.uc Log Message: Fixing bugs in Keyring mod. Index: fishingrod.uc =================================================================== RCS file: /cvsroot/exult/./exult/content/bgkeyring/src/items/fishingrod.uc,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- fishingrod.uc 27 Aug 2006 19:35:29 -0000 1.1 +++ fishingrod.uc 26 Sep 2006 14:20:44 -0000 1.2 @@ -122,7 +122,7 @@ //put it near the avatar's feet var avatar_pos = AVATAR->get_object_position(); avatar_pos[X] = avatar_pos[X] + 1; - avatar_pos->update_last_created(); + UI_update_last_created(avatar_pos); UI_play_sound_effect(SOUND_LANDEDFISH); Index: bucket.uc =================================================================== RCS file: /cvsroot/exult/./exult/content/bgkeyring/src/items/bucket.uc,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bucket.uc 27 Aug 2006 19:35:29 -0000 1.1 +++ bucket.uc 26 Sep 2006 14:20:44 -0000 1.2 @@ -67,7 +67,7 @@ spill->set_item_frame(UI_die_roll(min_frame, max_frame)); //choose a random frame spill->set_item_flag(TEMPORARY); //added to the original, prevents them sticking around FOREVER AND EVER - target_pos->update_last_created(); + UI_update_last_created(target_pos); //for FV quest: decrement the quality (ie, remaining spills) of the bucket var bucket_quality = get_item_quality(); @@ -294,7 +294,7 @@ var new_lightsource = UI_create_new_object(new_shape); new_lightsource->set_item_quality(lightsource_quality); new_lightsource->set_item_frame(target_frame); - target_pos->update_last_created(); + UI_update_last_created(target_pos); //play lean-down animation? script AVATAR @@ -501,7 +501,7 @@ target_offsetx = [0, 2, 0, -2]; target_offsety = [2, 0, -2, 0]; - script target wait 50; + script target repeat 50 wait 1;; gotoObject(target, target_offsetx, target_offsety, 0, useBucketOnNPC, target, SCRIPTED); } } @@ -631,10 +631,10 @@ //This strips the object reference from target, making //it a regular X,Y,Z coordinate array - target = removeFromArray(target[1], target); + target = removeFromArray(target, target[1]); target[Y] = target[Y] + 1; - target->path_run_usecode(useBucketOnGround, item, SCRIPTED); + UI_path_run_usecode(target, useBucketOnGround, item, SCRIPTED); } } } |