The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LINK
Author Message
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #2
RE: LINK
Try this and give me the errors if it gives any:

Code:
[EVENTS e_repair]
ON=@ContextMenuRequest
src.addcontextentry 111,3000089

ON=@ContextMenuSelect
If <argn>==111    // Repair
If (<Src.Distance> > 3)
  Src.SMsg Too far away from the Vendor
  Return 1
EndIf
Src.SMsg Target the weapon or armor you want to repair.
Src.TargetF fRepair
Return 1
EndIf

[Function fRepair]
If (<ArgO.Distance> > 5)
Src.SMsg You cannot reach the vendor.
Return 1
EndIf

If !(<ArgO.IsWeapon>) || !(<ArgO.IsArmor>)
Src.SMsg You can only repair weapons and armor.
Return 1
EndIf

If (<ArgO.More1> == <ArgO.More1L>)
Src.SMsg This item is already in full repair.
Return 1
EndIf

dLocal.Cost=<Eval (((<ArgO.More1H>-<ArgO.More1L>)*<ArgO.Tag0.Repair>) +1)>
If (<Src.Gold> < <dLocal.Cost>)
Src.SMsg You don't have <dLocal.Cost> gold to repair this.
Return 1
Else
ArgO.More1L=<ArgO.More1H>
Src.Gold -= <dLocal.Cost>
ArgO.Update
Return 1
EndIf
(This post was last modified: 03-14-2016 06:46 PM by Khaos.)
03-14-2016 05:44 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
LINK - Llirik - 03-14-2016, 05:02 AM
RE: LINK - Khaos - 03-14-2016 05:44 AM
RE: LINK - Llirik - 03-14-2016, 05:59 AM
RE: LINK - Khaos - 03-14-2016, 06:50 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)