View difference between Paste ID: 26GwwGWr and JSzzKDVt
SHOW: | | - or go back to the newest paste.
1
Begin Item_in_start_sct
2
3
short doOnce
4
5
if ( GetJournalIndex ... ) ; отслеживаем стартовую запись после выхода от Селлуса Гравиуса,
6
	if ( doOnce == 0 )
7
		player->additem ITEMID 1
8
		set doOnce to 1
9
	endif
10
endif
11
12
stopscript Item_in_start_sct
13
14
END
15
16
Begin only_one_Equip_ring_sct
17
18
short PCSkipEquip
19
short Equipped
20
short Unequipped
21-
if ( OnPCEquip ITEMID == 1 )
21+
if ( OnPCEquip == 1 )
22
	if ( Equipped == 0 )
23
		set PCSkipEquip to 1 ; надеюсь, эта функция работает так, как я и предполагаю
24-
		set Equpped to 1
24+
		set Equipped to 1
25-
		set Unequipped to 0
25+
		set Unequipped to 0'
26
	endif
27
else
28
	if ( UnEquipped == 0 )	
29
		set PCSkipEquip to 0
30
		set UnEquipped to 1
31
		set Equipped to 0
32
	endif
33
endif
34
35
END
36
37
Begin Player_cannot_Equip_sct
38
39
short doOnce
40
short PCSkipEquip
41
42
if ( doOnce == 0 )
43
	set PCCskipEquip to 1
44
	set doOnce to 1
45
endif
46
47
END ; возможно, другим НПЦ придется надевать предмет скриптом через NPCID->Equip ITEMID