Salut,
unde pot gasi si eu o restrictie sa nu mai poata ataca si folosi skill-urile in map2 sau desert.
Am caut pe net, dar nu am gasit ce imi trebuie 40k +sursa!
Cerere restrictie skil-uri
- BeauDeCiuda
-

- Mesaje: 1915
- Membru din: 24 Mar 2014, 16:25
- Server: http://infomanii.ro
- Regat: Chunjo
- Aprecieri: 169
- Mulţumiri: 225
- Contact:
adaugi sub functie
import background
if background.GetCurrentMapName() == "numele mapei din atlasinfo":
chat.AppendChat(chat.CHAT_TYPE_INFO, "textul afixat")
return
import background
if background.GetCurrentMapName() == "numele mapei din atlasinfo":
chat.AppendChat(chat.CHAT_TYPE_INFO, "textul afixat")
return
- Moț
-

- Mesaje: 2825
- Membru din: 03 Apr 2017, 15:00
- Aprecieri: 216
- Mulţumiri: 3040
- Discord: Copiază ID
Cod: Selectaţi tot
bool CHARACTER::UseSkill(DWORD dwVnum, LPCHARACTER pkVictim, bool bUseGrandMaster)
{
if (GetMapIndex() == 113)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Skill-urile au fost restrictionate in aceasta mapa."));
return false;
}
if (false == CanUseSkill(dwVnum))
return false;- Moț
-

- Mesaje: 2825
- Membru din: 03 Apr 2017, 15:00
- Aprecieri: 216
- Mulţumiri: 3040
- Discord: Copiază ID
in loc deValentin A. [E46] scrie: ↑25 Ian 2020, 23:03In afara de mapa 113, mai vreau si 104 sa restrictioneze skilurile, am incercat eu sa modific liniile, dar nu mi-a iesit, las pe cineva care se pricepeCod: Selectaţi tot
bool CHARACTER::UseSkill(DWORD dwVnum, LPCHARACTER pkVictim, bool bUseGrandMaster) { if (GetMapIndex() == 113) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Skill-urile au fost restrictionate in aceasta mapa.")); return false; } if (false == CanUseSkill(dwVnum)) return false;
Cod: Selectaţi tot
if (GetMapIndex() == 113)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Skill-urile au fost restrictionate in aceasta mapa."));
return false;
}Cod: Selectaţi tot
switch(this->GetMapIndex())
{
case 113:
case 104:
// case /* index_mapa */ 61:
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Skill-urile au fost restrictionate in aceasta mapa."));
return false;
}
break;
}- Pentru acest mesaj, Moț for the post:
- Valentin A. [E46]
Multumesc frumos !
T/C!
T/C!
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 9 vizitatori





