Print Page | Close Window

Attacking Tiredness

Printed From: Mirage Source
Category: Tutorials
Forum Name: Temporary Archive (Read Only)
Forum Discription: Temporary 3.0.3 archive tutorials, will be deleted when converted.
URL: http://ms.shannaracorp.com/backup-forums/forum_posts.asp?TID=204
Printed Date: 20 December 2006 at 5:53pm
Software Version: Web Wiz Forums 8.01 - http://www.webwizforums.com


Topic: Attacking Tiredness
Posted By: Sync
Subject: Attacking Tiredness
Date Posted: 11 February 2006 at 3:29pm
Hey guys this is my first tut

What this does it is makes your sp drop when you attack and when it gets to 0 you cant atack anymore.

First go to server Modgamelogic at the top of AttackNpc put this

' Drop the SP
If GetPlayerSP(Attacker) > 0 Then
Call SetPlayerSP(Attacker, GetPlayerSP(Attacker) - 1)
Call SendSP(Attacker)
End If


Also at the top or AttackPlayer Put this


' Drop the SP
If GetPlayerSP(Attacker) > 0 Then
Call SetPlayerSP(Attacker, GetPlayerSP(Attacker) - 1)
Call SendSP(Attacker)
End If


Now at the top of CanAttackNpc put this after
CanAttackNpc = False


' Check sp
    If GetPlayerSP(Attacker) > 0 Then
    CanAttackNpc = False


also at the top of CanAttackPlayer put this after
CanAttackPlayer = False

' Check sp
    If GetPlayerSP(Attacker) > 0 Then
    CanAttackPlayer = False



I hope you guys like it



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums version 8.01 - http://www.webwizforums.com
Copyright ©2001-2006 Web Wiz Guide - http://www.webwizguide.info