• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

tantra enhancement

Initiate Mage
Joined
Mar 18, 2013
Messages
2
Reaction score
1
I have written a server side dll for Zone 5.1.7.1

1.reduce memory

void SetValidUser(int num){


for (int i=0;i<50;i++)//jams
1 - tantra enhancement - RaGEZONE Forums 2 - tantra enhancement - RaGEZONE Forums



2.command for second job change

if (!strcmp(szCmd,"/2ndjob"))
{
int iTribe = pMob[conn].MOB.snTribe;
int ndclassed = 0;
if (!strcmp(szArgument1,"1"))
{
if( (TRIBE_NAGA==iTribe) || (TRIBE_KINNARA==iTribe) ) { pMob[conn].MOB.byClass2 = 1; ndclassed = 1; pMob[conn].MOB.byClass1=2;}
}
if (!strcmp(szArgument1,"2"))
{
if( (TRIBE_NAGA==iTribe) || (TRIBE_KINNARA==iTribe) ) { pMob[conn].MOB.byClass2 = 0; ndclassed = 1; pMob[conn].MOB.byClass1=2;}
}
if (!strcmp(szArgument1,"1"))
{
if( (TRIBE_ASURA==iTribe) || (TRIBE_RAKSHASA==iTribe) ) { pMob[conn].MOB.byClass2 = 2; ndclassed = 1; pMob[conn].MOB.byClass1=2; }
}
if (!strcmp(szArgument1,"2"))
{
if( (TRIBE_ASURA==iTribe) || (TRIBE_RAKSHASA==iTribe) ){ pMob[conn].MOB.byClass2 = 3; ndclassed = 1; pMob[conn].MOB.byClass1=2; }
}
if (!strcmp(szArgument1,"1"))
{
if( (TRIBE_YAKSA==iTribe) || (TRIBE_GANDHARVA==iTribe) ) { pMob[conn].MOB.byClass2 = 4; ndclassed = 1; pMob[conn].MOB.byClass1=2;}
}
if (!strcmp(szArgument1,"2"))
{
if( (TRIBE_YAKSA==iTribe) || (TRIBE_GANDHARVA==iTribe) ){ pMob[conn].MOB.byClass2 = 5; ndclassed = 1; pMob[conn].MOB.byClass1=2;}
}
if (!strcmp(szArgument1,"1"))
{
if( (TRIBE_DEVA==iTribe) || (TRIBE_GARUDA==iTribe) ) { pMob[conn].MOB.byClass2 = 6; ndclassed = 1; pMob[conn].MOB.byClass1=2;}
}
if (!strcmp(szArgument1,"2"))
{
if( (TRIBE_DEVA==iTribe) || (TRIBE_GARUDA==iTribe) ){ pMob[conn].MOB.byClass2 = 7; ndclassed = 1; pMob[conn].MOB.byClass1=2;}
}
if ( ndclassed == 1)
{
pMob[conn].MOB.byQuest[6] = 255;
pMob[conn].MOB.byQuest[31] = 255;
pMob[conn].MOB.byQuest[32] = 255;
pMob[conn].MOB.byQuest[33] = 255;
pMob[conn].MOB.byQuest[34] = 255;
pMob[conn].MOB.byQuest[35] = 255;
pMob[conn].ResetSkill();
pMob[conn].ResetStat();
SendQuestHistory( conn );
pMob[conn].NotifyUpdateUIMsg();
example:
/2ndjob 2

how to use the dll:

withdll.exe /d:versioo.dll zone.exe
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Jun 26, 2009
Messages
88
Reaction score
12
Nice....permission to try bro.tq:thumbup:

Sent using Tapatalk 2
 
Newbie Spellweaver
Joined
Jan 1, 2014
Messages
9
Reaction score
0
Can you tell me how to write this

in zone 10,
Get after the blessing,The system randomly send items.

Or help me to write a DLL。
Thank you very much
 
Tantra Freelancer
Joined
Apr 9, 2014
Messages
541
Reaction score
23
Anyone successfully implemented the 2nd job change for K5?
 
Newbie Spellweaver
Joined
Apr 16, 2014
Messages
32
Reaction score
3
hi can someone teach me how to use this dll? i tried it but it says memory could not be read.
 
Newbie Spellweaver
Joined
Feb 17, 2014
Messages
71
Reaction score
2
when i used 127.0.0.1 as my ip it actually works but when i change my ip to my local-ip it cannot connect to the db-server.
 
Back
Top