I'm currently messing around with a script that generates magical items (Indestructible leather tunic of Invulnerability, anyone?), but without a way of creating items without supplying a valid socket, I'm stuck.
Spawning an item without socket, possible?
- Xuri
- Site Admin
- Posts: 3704
- Joined: Mon Jun 02, 2003 9:11 am
- Location: Norway
- Has thanked: 48 times
- Been thanked: 8 times
- Contact:
Spawning an item without socket, possible?
Is it possible to spawn an item through the JS engine without a socket? Both CreateDFNItem and CreateBlankItem seem to require a socket (or UOX3 will crash
), but it would be very useful to have another way of creating items (or to allow using those methods without supplying a valid socket).
I'm currently messing around with a script that generates magical items (Indestructible leather tunic of Invulnerability, anyone?), but without a way of creating items without supplying a valid socket, I'm stuck.
I'm currently messing around with a script that generates magical items (Indestructible leather tunic of Invulnerability, anyone?), but without a way of creating items without supplying a valid socket, I'm stuck.
-= Ho Eyo He Hum =-
I'm not familiar enough with network protocols to understand the advtages/limitations of creating items with or without sockets,
however your post hinted at magic items, especially armour.
It reminded me that we need to fix the 'tweak and/or 'set commands to properly adjust an items DEF function. This would allow easy creating by a GM of the above mentioned "indestructible leather tunic of invulnerability".
however your post hinted at magic items, especially armour.
It reminded me that we need to fix the 'tweak and/or 'set commands to properly adjust an items DEF function. This would allow easy creating by a GM of the above mentioned "indestructible leather tunic of invulnerability".
- Xuri
- Site Admin
- Posts: 3704
- Joined: Mon Jun 02, 2003 9:11 am
- Location: Norway
- Has thanked: 48 times
- Been thanked: 8 times
- Contact:
Well, I already have a script written which can pour out random pre-AoS magic armors (quality/power depends on the fame of the creature). Not being able to spawn items without a socket is the only major roadblock remaining, I think.
When used as a global script in UOX3, it will (randomly, depending on fame of creature and some general randomness) spawn a (random) piece of magic armor in the backpacks of newly spawned creatures.
If I can get it working properly, it shouldn't take too much effort to also use it for magic weapons (accurate silver katana of vanquishing, anyone?).
When used as a global script in UOX3, it will (randomly, depending on fame of creature and some general randomness) spawn a (random) piece of magic armor in the backpacks of newly spawned creatures.
If I can get it working properly, it shouldn't take too much effort to also use it for magic weapons (accurate silver katana of vanquishing, anyone?).
-= Ho Eyo He Hum =-
- Xuri
- Site Admin
- Posts: 3704
- Joined: Mon Jun 02, 2003 9:11 am
- Location: Norway
- Has thanked: 48 times
- Been thanked: 8 times
- Contact:
That did the trick, thanks
The script is now producing magic armor! Wee.
Though I'm not sure what to do now that the names are restricted to 30 characters only again :/ I'm getting magic armor which identifies as Indestructible platemail of I, for instance.
Not to mention that several signs in the various towns no longer display their entire names. Example:
The sign outside the conservatory of music in Britain displays, on the official shards, "Lord British's Conservatory Of Music" (36 characters) - while in UOX3 it currently (0.98-3.6f) says "Lord British's Conservatory Of" (30 characters). That's just one of many examples.
Though I'm not sure what to do now that the names are restricted to 30 characters only again :/ I'm getting magic armor which identifies as Indestructible platemail of I, for instance.
Not to mention that several signs in the various towns no longer display their entire names. Example:
The sign outside the conservatory of music in Britain displays, on the official shards, "Lord British's Conservatory Of Music" (36 characters) - while in UOX3 it currently (0.98-3.6f) says "Lord British's Conservatory Of" (30 characters). That's just one of many examples.
-= Ho Eyo He Hum =-