PenUltima Online

It is currently Fri Sep 05, 2008 1:07 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [097] OSI Clone Champion Spawn
PostPosted: Wed Aug 09, 2006 10:17 am 
Offline

Joined: Mon Jun 19, 2006 4:48 pm
Posts: 79
this is one 100% osi clone, standalone package, pretty much plug and play, all you will need to edit is spawns.cfg (or change some timings in control.src, the consts in the top)

Its scripted to be an osi clone, i didnt added the real osi champs/spawns tho cause the distro 097 doesnt have em in yet

btw this is an distro wanabe, and if the scripting is good enought i will be doing other osi-like packages for it

well, contact me incase of any bug (posting here is good enought :) )

oh, and if you use it in your shard, please let me know :)

btw this is a link for uo.stratics champions data: http://uo.stratics.com/content/guides/c ... uide.shtml

and this is an screenshot of it :)
http://i16.photobucket.com/albums/b48/d ... 0b9f5e.jpg


Attachments:
File comment: OSI-clone Champion Spawn
champspawn.rar [4.02 KiB]
Downloaded 204 times
Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 4:11 am 
Offline

Joined: Mon Jun 19, 2006 4:48 pm
Posts: 79
no coments? noone tested this yet? :'(


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 10, 2007 1:39 pm 
Offline

Joined: Fri Jul 21, 2006 9:58 pm
Posts: 61
R u have full worked system
or maybe Manual how to start work that pkg .
thnx


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 03, 2007 2:53 am 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 545
DeiviD,
I works very well. I just finished settling it in to my shard.

To be Distro compatible you'd have to put the consts from control.src into a settings.cfg. No big deal, but they sure do like their settings files.

One other thing I'd suggest. You need to have an altar reset at shard startup otherwise the nextLVLDownCheck time gets out of sync with the skulls. You could do it in the deactivateAltar function or simply pop a few lines right near the top of control.src.
eg:
Code:
var numRedSkulls := CInt(GetObjProperty(altar, "lrskull"));
for i := 1 to numRedSkulls
   destroyLastRedSkull(altar);
endfor


Because I am NOT OSI compliant I also decided to do a few other things like nuke all the monsters when you have levelled all the way down. This also lets players get to the altar and start at the beginning.

Eg:
Code:
function destroyLastRedSkull(altar)
   var lskull := CInt(GetObjProperty(altar, "lrskull"));
   var skulls := array;
   skulls := GetObjProperty(altar, "rskulls");
   if ( !lskull )
      // no skulls, lets nuke the area
      nukeArea(altar);
      return 0;
   endif
   var skull := skulls[lskull];
   DestroyItem(SystemFindObjectBySerial(skull));
   skulls.erase(lskull);

   SetObjProperty(altar, "lrskull", lskull - 1);
   SetObjProperty(altar, "rskulls", skulls);

   return 1;
endfunction

function nukeArea(altar)
   foreach npc in ListMobilesNearLocationEx(altar.x, altar.y, LIST_IGNORE_Z, 32, LISTEX_FLAG_NORMAL + LISTEX_FLAG_HIDDEN, altar.realm)
      if ( npc.npctemplate and GetObjProperty(npc, "champspawn") )
         KillNPC(npc);
         sleepms(20);
      endif
   endforeach
endfunction


The "champspawn" cprop is set when you Create thenpc.


But thanks for the code. I had no idea how it was done and I found your scripts good and easy to follow and certainly would not disgrace the distro.
Well done.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 9:45 am 
Offline

Joined: Mon Jun 19, 2006 4:48 pm
Posts: 79
wow thanks Old :)

means a lot to have something like that said by you :)

been some time i dont pol script (and it was a hella surprise to see my topic first place in the forum) so i guess i wont be doing the changes - fell free to do so if you want to try to get it to distro :)

also, after playing on osi, i noticed its not a 100% osi close - osi handles activation and deactivation diferently - i like my way of doing it tho :) (osi changes the whole altar color - i just hide the pentagram)

_________________
Image
http://www.neverlands.org Neverlands Shard


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl