begin playerdiseasescriptshort doonceif ( player -> getdistance = 250 ) if ( doonce = 0 ) player -> addspell "nox vomica" set doonce to 1 endifendifend
begin playerdiseasescriptshort doonceif ( player -> getdistance = 250 ) if ( doonce = 0 ) player -> addspell "nux_vomica" set doonce to 1 endifendifend
Begin PlayerDiseaseScriptshort doOnceif ( doOnce >= 1 ) returnendifplayer->AddSpell "nox vomica" set doOnce to 1End PlayerDiseaseScript
Begin PlayerDiseaseScriptshort doOnceif ( doOnce >= 1 ) returnendifif ( ( player->GetPos y ) >= 300 ) player->AddSpell "nox vomica" set doOnce to 1endifEnd PlayerDiseaseScript
Begin PlayerDiseaseScriptshort doOnceif ( doOnce >= 1 ) returnendifif ( ( player->GetItemCount "chargen statssheet" ) >= 1 ) ; player has identification papers player->AddSpell "nox vomica" ; disease added set doOnce to 1 ; will not happen againendifEnd PlayerDiseaseScript
Begin PlayerDiseaseScriptshort doOncefloat timerif ( doOnce >= 2 ) returnendifif ( menumode == 1 ) ; required for timer to work returnendifif ( doOnce == 0 ) if ( ( player->GetItemCount "chargen statssheet" ) >= 1 ) ; player has identification papers player->AddSpell "nox vomica" ; disease added set doOnce to 1 ; will not happen again endifelseif ( doOnce == 1 ) set timer to ( timer + GetSecondsPassed ) if ( timer < 0.5 ) ; short delay return endif set doOnce to 2 "chargen class"->ForceGreeting endifEnd PlayerDiseaseScript
Begin ICMQ_Chargen_Rapistshort noloreshort greetonceif ( MenuMode ) returnelseif ( onactivate ) ;this triggers when you click on him if ( greetonce == 1 ) ;already done once so don't activate return else set greetonce to 1 activate endifelseif ( GetDisabled == 0 ) if ( CharGenState == -1 ) disable endifendifEnd
Begin PrisonerForceGreetshort noLoreshort doOncefloat timerif ( doOnce == 2 ) returnendifif ( menumode == 1 ) ; required for timer to work returnendifif ( doOnce == 0 ) if ( "chargen boat guard 2".state == 40 ) set doOnce to 1 endifendifif ( doOnce == 1 ) set timer to ( timer + GetSecondsPassed ) if ( timer < 0.7 ) ; short delay return endif set doOnce to 2 ForceGreetingendifEnd PrisonerForceGreet
if ( OnActivate == 1 )endif