Permalink
Browse files

Pen and Ink-items will now work similar to using the inscription skil…

…l directly
  • Loading branch information...
xuridabur
xuridabur committed Jan 19, 2009
1 parent 7c63b9d commit a232d3a56c83bcc5d67249a8ebcb9d51f6b90c55
Showing with 22 additions and 0 deletions.
  1. +4 −0 js/jse_objectassociations.scp
  2. +17 −0 js/skill/inscription.js
  3. +1 −0 source/Changelog.txt
@@ -517,6 +517,10 @@
// Bow Repair Tool
0x10E7=4001
+// Inscription Tool
+0x0fbf=815
+0x0fc0=815
+
// Bandage
0x0E21=4000
View
@@ -3,6 +3,23 @@ function SkillRegistration()
RegisterSkill( 23, true ); // Inscription
}
+function onUseChecked( pUser, iUsed )
+{
+ var socket = pUser.socket;
+ if( socket && iUsed && iUsed.isItem )
+ {
+ var itemOwner = GetPackOwner( iUsed, 0 );
+ if( itemOwner == null || itemOwner.serial != pUser.serial )
+ {
+ pUser.SysMessage( "This must be in your backpack or equipped before it can be used." );
+ return false;
+ }
+ else
+ socket.CustomTarget( 0, GetDictionaryEntry( 865, socket.Language ) );
+ }
+ return false;
+}
+
function onSkill( pUser, objType, skillUsed )
{
var pSock = pUser.socket;
View
@@ -7,6 +7,7 @@
Fixed some issues in shoplist.dfn
Fixed an error in tailoring.js where invalid socket and character objects were referenced
Removed a debug-message from taming.js
+ Pen and Ink-items will now work similar to using the inscription skill directly
1/19/2009 - giwo (0.98-4.0b)
Fixed an issue causing smelted iron ore to combine with colored ore already in a players pack.

0 comments on commit a232d3a

Please sign in to comment.