![]() |
Здравствуйте, гость ( Вход | Регистрация )
![]() |
![]()
Сообщение
#1
|
|
![]() Класс: Пьяный Мастер Характер: Lawful Good Раса: Тварь MySQL, PHP, JavaScript Порядок Времени ![]() |
а это... можно спросить? (IMG:style_emoticons/kolobok_light/blush.gif) а что такое переменная? (IMG:style_emoticons/kolobok_light/blush.gif)
|
![]() |
![]()
Сообщение
#2
|
|
Level 18 ![]() Класс: Страж Тьмы Характер: True Neutral Раса: Человек МАСТЕР D&D ![]() |
Найти не так все сложно
Neverwinter Script Source int GetIsUsedByPlayer( object oCreature ); // не совсем уверен за правильность, но что-то такое сразу всплыло иNeverwinter Script Source void main() { object oUser = GetLastUsedBy(); PrettyDebug( GetName( OBJECT_SELF ) + "'s was used by " + GetName( oUser ) ); // Do something } Neverwinter Script Source // Placeable OnUsed Template /* Required: Static=FALSE, Usable=TRUE, CurrentHP>0, attach script to the OnUsed event Suggested: Plot=TRUE, DefaultActionPreference="Use" */ // #include "ginc_debug" // i_temp_aq /* Template for an Acquire item script. This script will run each time the item is acquired. How to use this script: Replace the word "temp" (in line 1) with the tag of the item. Rename the script with this name. Additional Info: In general, all the item "tag-based" scripts will be named as follows: - a prefix ("i_" by defualt) - the tag of the item - a postfix indicating the item event. This script will be called automatically (by defualt) whether it exists or not. If if does not exist, nothing happens. "_aq" was used for the Acquire postfix because "_ac" was already taken by Activate. Note: this script runs on the module object, an important consideration for assigning actions. -ChazM но вот там где надо выстроить условия и параметы и написать команду и есть проблема Добавлено через 3 минуты 27 секунд с последним примером вообще караул - где там temp? привел его только потому, что у игрока глаза сразу на полтарелки и если хоть что-то приглянулось, то и пойдет скрипт или можно переделать под закрываение/открывание. |
![]() ![]() |
Текстовая версия | Сейчас: 26th April 2025 - 15:35 |