Intri in Query Analyzer
- Start>Run>Microsoft SQL Server>Query Analyzer
- Dai sus pe MuOnline
- Bagi scriptul in chenaru ala
- Parse Query (Ctrl+F5) (daca nu-ti da nici o eroare e bine)
- Execute Query (F5) Ok
Asta trebuie sa bagi :
Cod:
CREATE TRIGGER [Update_IntLUP] ON [dbo].[Character]
after Insert
as
Update [Character] set [Character].LevelUpPoint=300
From Inserted
Where Inserted.LevelUpPoint=0 and
[Character].accountid=inserted.accountid
and [Character].name=inserted.name
Unde scrie LevelUpPoint=300 in codul de mai sus .. inlocuiesti 300 cu cate puncte vrei tu sa iti dea cand creeti un caracter de la 0 pana la cat vrei